`
csstome
  • 浏览: 1480324 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

centos 5.5 yum 升级 php

 
阅读更多

来自:http://blog.sina.com.cn/s/blog_620ad6170100onk3.html

今天安装tokyo tyrant 的php客户端,因为我的机器是centos5.5 默认PHP版本是5.1.6的。ttphp客户端需要5.2以上的版本,用yum update 的时候老是出错,常规的yum更新不了5.2以上版本。
google了老半天,终于找到一个可以更新PHP版本的YUM 源。
1.编辑vim /etc/yum.repos.d/CentOS-Base.repo 然后shift+g 跳到最后一行添加并保存
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=0
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
2.停用其他源,就是要CentOS-Testing 来搜索PHP的更新
yum --disablerepo=* --enablerepo=c5-testing check-update php*
3.如果没有问题就安装吧。
yum --disablerepo=* --enablerepo=c5-testing update php*

确认一下版本,是否已审计/usr/bin/php -v
操作很简单,就是找到合适的答案比较浪费时间。也算是学习了!
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics