今天给服务器安装redis时候提示 No package redis available.
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* centos-ceph-nautilus: mirrors.aliyun.com
* centos-nfs-ganesha28: mirrors.aliyun.com
* centos-qemu-ev: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
No package redis available.
Error: Nothing to do
感觉是yum源的问题,换个清华源
结果也提示No package redis available.
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* centos-ceph-nautilus: mirrors.bupt.edu.cn
* centos-nfs-ganesha28: mirrors.bupt.edu.cn
* centos-qemu-ev: mirrors.bupt.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
No package redis available.
Error: Nothing to do
查了一下要安装EPEL第三方源
CentOS 源包含的大多数的库都是比较旧的。并且,很多流行的库也不存在,EPEL 在其基础上不仅全,而且版本还新
执行安装
yum install epel-release
接着执行
yum install redis
果然安装成功了

本文讲述了作者在给CentOS服务器安装Redis时遇到的No package redis available错误,通过尝试更换阿里云和清华大学源,并发现需要安装EPEL源以获取更多最新库,最终成功安装Redis的过程。
1448

被折叠的 条评论
为什么被折叠?



