Linux-CentOS7.6安装composer及简单使用说明
确保已经安装了PHP
/usr/local/php72/bin/php -v
ln -s /usr/local/php72/bin/php /usr/local/bin/php
php -v
1
2
3
4
下载composer
cd /usr/local/bin/
wget https://getcomposer.org/download/1.8.4/composer.phar
mv composer.phar composer
1
2
3
或
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
1
2
可执行权限
chmod +x composer
1
查看版本
composer -V
1
composer使用说明
安装依赖
composer install
1
更新依赖
composer update # 更新全部
composer update cuber/lv # 更新指定
1
2
更新autoload.files
composer dumpauto
# 或
composer update nothing
————————————————
版权声明:本文为CSDN博主「gocuber」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/gocuber/article/details/87480268