转自自己的博客:https://www.wygdbb.com/2020/05/centos-install-composer/
宝塔安装PHP环境后,用脚本安装Composer,发现缺少依赖!
- 安装 Composer
curl -sS https://getcomposer.org/installer |php
sudo mv composer.phar /usr/local/bin/composer
- 安装依赖
sudo dnf install php-cli php-json php-zip curl unzip