?> 阿里云centos 升级PHP.54 错误解决(页 1) - wdOS|CentOS精简版|CentOS定制版 - WDlinux官方论坛 Linux服务器架构,性能优化.免费CDN系统,智能DNS,负载均衡,集群分流等应用 - Powered by Discuz! Archiver

WDlinux官方论坛's Archiver

cx69 发表于 2016-12-23 10:50

阿里云centos 升级PHP.54 错误解决

昨天阿里云centos6.5 64位系统在升级PHP时候遇到错误
Could not retrieve mirrorlist http://apt.sw.be/redhat/el6/en/mirrors-rpmforg
在网上查了半天,原因是因为yum搜索rpm包找不到,单个包下载更新很麻烦,中间遇到很多问题,这里就不一一熬述了,这里给大家提供终极解决方法
下载新的CentOS-Base.repo 到/etc/yum.repos.d/  请对应自己的版本
5.*的下载连接:
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

6.*的下载连接:
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

7.*的下载连接:
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
(PS:centos7.* 系统是不支持WDCP 在用阿里云的童鞋请注意了,系统请装7以下的)

接着就安装把
# rpm -e rpmforge-release --nodeps
# yum clean all
# yum update

yum更新后,所有的包都能找到了,接着再去升级PHP就不会发生错误了
wget http://downinfo.myhostadmin.net/vps/php_up54.sh
sh php_up54.sh

(以上转自成都睿谷联创科技有限公司)

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.