升级centos自带的PHP5.4到PHP7

2018-03-09  本文已影响0人  打工是不可能打工的1

通过yum安装PHP7

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

然后

yum -y install php70w-devel

报错冲突了

--> Finished Dependency Resolution
Error: php70w-common conflicts with php-common-5.4.16-43.el7_4.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

移除php-common

yum remove php-common

再次执行

yum -y install php70w-devel

成功!!!

上一篇下一篇

猜你喜欢

热点阅读