先安装composer:
curl http://getcomposer.org/installer | php (此命令会下载composer.phar到当前目录下)
显示:
...
cp composer.phar /usr/local/bin/composer
这样, composer就装好了。
composer global require "laravel/installer"
echo 'export PATH=$PATH:/root/.composer/vendor/bin' >> /etc/profile && . /etc/profile
测试新建文件: laravel new Blog
此命令会在当前目录下生成Blog目录。
curl http://getcomposer.org/installer | php (此命令会下载composer.phar到当前目录下)
显示:
...
Downloading...
Composer successfully installed to: /root/composer.phar
Use it: php composer.phar
这样, composer就装好了。
composer global require "laravel/installer"
echo 'export PATH=$PATH:/root/.composer/vendor/bin' >> /etc/profile && . /etc/profile
测试新建文件: laravel new Blog
此命令会在当前目录下生成Blog目录。
root@umh:~# cd Blog
root@umh:~/Blog# ls
app composer.json database public server.php webpack.mix.js
artisan composer.lock package.json resources storage yarn.lock
bootstrap config phpunit.xml routes tests
root@umh:~/Blog# ls public
css favicon.ico index.php js robots.txt svg
root@umh:~/Blog#
No comments:
Post a Comment