一、卸载已有php
- 查看php依赖包
rpm -qa | grep php
- 按依赖顺序进行删除,删除不干净,再将剩余删除一遍
rpm -e php-fpm-5.3.3-22.el6.x86_64
//等等
- 安装php7.2
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 php72w-mcrypt php72w-intl
- 启动
systemctl start php-fpm
网友评论