系统相关
首页 > 系统相关> > centos7的php5.x升级到7.x

centos7的php5.x升级到7.x

作者:互联网

  1. rpm -qa | grep php| xargs rpm -e
  2. yum reinstall -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  3. yum reinstall -y https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
  4. yum list | grep php
  5. yum -y install php72w php72w-fpm php72w-mbstring php72w-common php72w-gd php72w-mysql php72w-xml php72w-cli php72w-devel php72w-pecl-memcached php72w-pecl-redis php72w-opcache php72w-ldap php72w-bcmath php72w-xmlrpc
  6. php -v
  7. systemctl restart httpd
  8. cd /etc/httpd/conf.d/ 查看有没有php.conf文件

标签:epel,升级,rpmyum,pecl,rpm,centos7,conf,php5,php72w
来源: https://blog.csdn.net/IT_Bigboy_sz/article/details/115453435