解決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回車我們就根據提示輸入回車直到安裝完畢。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM