美文网首页
升级centos自带的PHP5.4到PHP7

升级centos自带的PHP5.4到PHP7

作者: 打工是不可能打工的1 | 来源:发表于2018-03-09 18:04 被阅读0次

    通过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
    

    成功!!!

    相关文章

      网友评论

          本文标题:升级centos自带的PHP5.4到PHP7

          本文链接:https://www.haomeiwen.com/subject/gnlmfftx.html