centos 升级php到php7.2

开始升级PHP更新源:

$ rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm 
$ rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
$ yum remove php-common -y  
$ yum install -y php72w php72w-opcache php72w-xml php72w-mcrypt php72w-gd php72w-devel php72w-mysql php72w-intl php72w-mbstring  php72w-redis php72w-redis php72w-pdo

安装php fpm:

$ yum install php72w-fpm
$ systemctl start php-fpm.service 【启动】
$ systemctl enable php-fpm.service【开机自启动】

你可能感兴趣的:(centos 升级php到php7.2)