#curl -sS https://getcomposer.org/installer | php #mv composer.phar /usr/local/bin/composer #composer global require "laravel/installer=~1.1"
然后修改PATH配置
# vim /etc/profile
在后面加一行:
export PATH="/root/.composer/vendor/bin:$PATH"
然后使新的环境变量生效:
# source /etc/profile
创建一个项目:
# laravel new blog
直到出现:Application ready! Build something amazing.
时间: 2024-10-10 17:51:10