柠檬 发表于 2019-2-24 17:00:08

物理机 虚拟机 centos 5 yum不能安装数据库 解决方法

centos 5
yum 不能用出现all mirror URLs are not use ftp http or file


打开文件
etc/yum.repos.d/CentOS-Base.repo
替换下面这段英文


name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://vault.centos.org/5.11/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


#released updates

name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://vault.centos.org/5.11/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


#additional packages that may be useful

name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://vault.centos.org/5.11/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


#additional packages that extend functionality of existing packages

name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://vault.centos.org/5.11/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


#contrib - packages by Centos Users

name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://mirror.centos.org/5.11/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5



可以正常使用yum了。

阳光下泡沫 发表于 2019-2-24 17:04:57

无论是不是沙发都得回复下

zzwlkjx1 发表于 2019-2-25 15:56:35

支持你哈...................................

sqm123 发表于 2019-2-25 16:55:51

真是难得给力的帖子啊。

素芳飞 发表于 2019-2-25 19:16:10

是爷们的娘们的都帮顶!大力支持

THEPowerOF1 发表于 2019-2-28 10:51:02

好,很好,非常好!

纯情khmb 发表于 2019-3-1 06:12:17

支持你哈...................................

B比比 发表于 2019-3-2 07:42:57

我只是路过,不发表意见

小寶 发表于 2019-3-2 13:54:14

佩服佩服!

洋柿子炒蛋 发表于 2019-3-2 17:36:39

众里寻他千百度,蓦然回首在这里!
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: 物理机 虚拟机 centos 5 yum不能安装数据库 解决方法