首先执行命令
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
可能会报错
error: Failed dependencies:
epel-release >= 7 is needed by webtatic-release-7-3.noarch
根据提示需要先安装epel-release。
1.安装epel-release
通过命令:
rpm -ivh http://dl.fedoraproject.org/pub/epel/7/aarch64/Packages/e/epel-release-7-11.noarch.rpm
此时如果你是centos6.X的系统可能会报confict冲突的错误,
解决办法是可以先卸载掉旧的
yum -y remove epel-release
2、再次重新安装即可
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
3、开始安装php70w
yum -y install php70w
如果之前有安装其他版本的php,请先执行卸载