CentOS 7 将PHP由5.4升级为5.6

~]# yum install epel-release
~]# yum update
~]# wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
~]# rpm -Uvh remi-release-7*.rpm
~]# vim /etc/yum.repos.d/remi.repo
把enabled设为1.使之起作用。

~]# systemctl stop httpd.service
~]# systemctl stop mysqld.service

~]# yum update

~]# systemctl start httpd.service
~]# systemctl start mysqld.service

你可能感兴趣的:(CentOS 7 将PHP由5.4升级为5.6)