php安装

作者: X1_blog | 来源:发表于2020-05-07 18:54 被阅读0次

    更新源

    yum install epel-release -y cd /etc/yum.repos.d/ wget -y http://mirrors.163.com/.help/CentOS7-Base-163.repo cp ./CentOS-Base.repo /home/config/backup/CentOS-Base.repo mv CentOS7-Base-163.repo CentOS-Base.repo yum clean all yum make cache

    安装php7.0

    rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm sudo yum install php70w php70w-pdo php70w-opcache php70w-xml php70w-mcrypt php70w-gd php70w-devel php70w-mysql php70w-intl php70w-mbstring php70w-bcmath php70w-process php70w-fpm -y

    升级版本到7.2

    rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

    yum remove php7* -y

    sudo yum install php72w php72w-pdo php72w-opcache php72w-xml php72w-mcrypt php72w-gd php72w-devel php72w-mysql php72w-intl php72w-mbstring php72w-bcmath php72w-process php72w-fpm

    检查版本

    php -v

    检查扩展

    php -m

    相关文章

      网友评论

          本文标题:php安装

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