电脑疯子技术论坛|电脑极客社区

 找回密码
 注册

QQ登录

只需一步,快速开始

[linux教程] centos升级php

[复制链接]
zhaorong 发表于 2017-3-17 14:16:01 | 显示全部楼层 |阅读模式

yum list intalled | grep php

删除yum remove

r
  1. pm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
  2. CentOs 6.x
  3. rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
  4. CentOs 7.X
  5. rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
  6. rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
复制代码


如果想删除上面安装的包,重新安装

  1. rpm -qa | grep webstatic
  2. rpm -e 上面搜索到的包即可
  3. 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

  4. 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就可以了。

  1. 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就可以了。

  1. 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

  1. yum install php55w-fpm
  2. yum install php56w-fpm
  3. yum install php70w-fpm
复制代码


注:如果想升级到5.6把上面的55w换成56w就可以了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|VIP|电脑疯子技术论坛 ( Computer madman team )

GMT+8, 2025-3-14 03:41

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表