CentOS 7升级php至7.2

2018-09-26  本文已影响43人  魔思科技

一、卸载已有php

  1. 查看php依赖包
rpm -qa | grep php
  1. 按依赖顺序进行删除,删除不干净,再将剩余删除一遍
rpm -e php-fpm-5.3.3-22.el6.x86_64
//等等
  1. 安装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
  1. 启动
systemctl start php-fpm
上一篇下一篇

猜你喜欢

热点阅读