查看已安裝的PHP
yum list intalled | grep php
刪除yum remove
rpm -Uvhhttp://mirror.webtatic.com/yum/el5/latest.rpm
CentOs 6.x
rpm -Uvhhttp://mirror.webtatic.com/yum/el6/latest.rpm
CentOs 7.X
rpm -Uvhhttps://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvhhttps://mirror.webtatic.com/yum/el7/webtatic-release.rpm
如果想刪除上面安裝的包,重新安裝
rpm -qa | grep webstatic
rpm -e 上面搜索到的包即可
3. yum install php55w.x86_64 php55w-cli.x86_64 php55w-common.x86_64 php55w-gd.x86_64 php55w-ldap.x86_64 php55w-mbstring.x86_64 php55w-mcrypt.x86_64 php55w-MySQL.x86_64 php55w-pdo.x86_64
yum install php56w.x86_64 php56w-cli.x86_64 php56w-common.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mcrypt.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64
注:如果想升級到5.6把上面的55w換成56w就可以了。
yum install php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64
注:如果想升級到5.6把上面的55w換成56w就可以了。
yum install php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64
4. 安裝PHP FPM
yum install php55w-fpm
yum install php56w-fpm
yum install php70w-fpm
注:如果想升級到5.6把上面的55w換成56w就可以了。
http://xxxxxx/Linuxjc/1134235.html TechArticle