centos7升级版本到php7.2

一、查看PHP版本php

php -v

二、删除旧phpmysql

yum remove php*

三、安装epelweb

sudo yum install epel-release

四、安装remisql

sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

五、安装yum-utilsjson

sudo yum install yum-utils

六、Enable remi repophp7

sudo yum-config-manager --enable remi-php72
sudo yum update

七、安装php7.2svg

sudo yum install php72
sudo yum install php72-php-fpm php72-php-gd php72-php-json php72-php-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php-opcache

八、安装完成,查看当前php版本php-fpm

php -v

经常使用php扩展
yum install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml php72w-ldap php72w-mcrypt.net

相关文章
相关标签/搜索