CentOS7.2 yum安装PHP7.2

  • 更改yum源(linux的yum源不存在php7.x)

    1
    2
    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
  • yum安装php72w和各种拓展

    1
    yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
本文总阅读量