我尝试使用命令更新PHP 5.5:
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
检索https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm警告:/var/tmp/rpm-tmp.4xrPQL:标题V3 RSA / SHA256签名,密钥ID 352c64e5: NOKEY错误:失败的依赖关系:epel-release = 6需要(安装)remi-release-6.8-1.el6.remi.noarch epel-release = 6需要安装ius-release-1.0-14.ius .centos6.noarch
我怎样才能解决这个问题?
你应该为CentOS 6而不是7:
sudo yum install php-common sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm sudo yum install php70w php70w-opcache sudo yum install php70w-fpm php70w-opcache sudo yum install yum-plugin-replace sudo yum replace php-common --replace-with=php70w-common sudo yum install php70w-opcache # remove old php-cli sudo yum remove php-cli sudo rm -rf /usr/bin/php sudo yum -y install php70w-cli
有关更多信息,请查看此链接