curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer config -g repo.packagist composer https://packagist.phpcomposer.com
composer global require "laravel/installer"
php artisan key:generate
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer config -g repo.packagist composer https://packagist.phpcomposer.com
composer global require "laravel/installer"
php artisan key:generate
原文:https://www.cnblogs.com/anjunact/p/8586435.html