宝塔安装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