解决CentOS出现"No package redis available"提示问题

[root@bogon src]# yum install redis
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.huaweicloud.com
No package redis available.
Error: Nothing to do

 https://fedoraproject.org/wiki/EPEL/zh-cn#.E5.A6.82.E4.BD.95.E8.8E.B7.E5.8F.96_EPEL_.E7.9A.84.E8.BD.AF.E4.BB.B6.E5.8C.85.EF.BC.9F

第二、下载EPEL对应的版本和安装

版本寻找地址:http://fedoraproject.org/wiki/EPEL

我需要的是centos64位,我直接找到源后wget下载到当前目录:

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

然后进行安装:

rpm -ivh epel-release-6-8.noarch.rpm

第三、安装redis

yum install redis

然后我们再执行安装命令就可以正常的安装,期间会提到需要输入y回车我们就根据提示输入回车直到安装完毕。

僵尸将臣
原文地址:https://www.cnblogs.com/sunshenggang/p/9285575.html