Linux-CentOS7.6安装composer
确保已经安装了PHP
/usr/local/php/bin/php -v php -v
cd /usr/local/bin/ wget https://getcomposer.org/download/1.8.4/composer.phar mv composer.phar composer123
或
curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer12
可执行权限
chmod +x composer1
查看版本
composer -V1
composer使用说明
安装依赖
composer install1
更新依赖
composer update # 更新全部 composer update cuber/lv # 更新指定12
更新autoload.files
composer dumpauto # 或 composer update nothing123
评论 (0)