以centos为例
- 安装composer
wget https://dl.laravel-china.org/composer.phar -O /usr/local/bin/composer
chmod a+x /usr/local/bin/composer
composer global require "laravel/installer"
- 查看版本
composer -v
______ |
- 环境配置
以zsh为例vim ~/.zshrc
export PATH=$PATH:/root/.config/composer/vendor/bin
- 测试新建文件
laravel new Blog