首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装在centos 6.5上

安装在centos 6.5上
EN

Server Fault用户
提问于 2015-02-15 18:50:22
回答 2查看 32.6K关注 0票数 10

我试图在Centos6.5 (x64)上安装Redis,行如下:

代码语言:javascript
复制
yum install redis

但是我看到了下面的屏幕:

代码语言:javascript
复制
[root@NodeJs ~]# yum install redis
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: nl.mirror.eurid.eu
 * epel: nl.mirror.eurid.eu
 * extras: mirror.denit.net
 * updates: nl.mirror.eurid.eu
Resolving Dependencies
--> Running transaction check
---> Package redis.x86_64 0:2.8.14-2.el7 will be installed
--> Processing Dependency: systemd for package: redis-2.8.14-2.el7.x86_64
--> Processing Dependency: systemd for package: redis-2.8.14-2.el7.x86_64
--> Processing Dependency: libjemalloc.so.1()(64bit) for package: redis-2.8.14-2.el7.x86_64
--> Running transaction check
---> Package jemalloc.x86_64 0:3.6.0-1.el7 will be installed
---> Package redis.x86_64 0:2.8.14-2.el7 will be installed
--> Processing Dependency: systemd for package: redis-2.8.14-2.el7.x86_64
--> Processing Dependency: systemd for package: redis-2.8.14-2.el7.x86_64
--> Finished Dependency Resolution
Error: Package: redis-2.8.14-2.el7.x86_64 (epel)
           Requires: systemd
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我如何解决这个问题?

EN

回答 2

Server Fault用户

发布于 2015-06-06 09:42:37

以下是我在CentOS 6.5上更新Redis (2.4.10)的成功经验。

如何在CentOS 6.5

上更新Redis

  1. 首先,确保安装了以下repos,EPELREMI:sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-版本-6-8 sudo rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-6.rpm
  2. 查看REMI回购中的Redis版本:(截至2015年6月,版本为2.8.13) yum -enablerepo=remi info redis
  3. 然后从jemalloc回购中安装相关依赖项( EPEL ):sudo -enablerepo=epel install
  4. 安装前,您应该停止旧的Redis守护进程: sudo服务redis停止。
  5. 然后安装较新版本的Redis: sudo yum --enablerepo=remi install redis
  6. 如果需要编辑Redis配置文件: sudo /etc/redis.conf
  7. 重新启动Redis守护进程,并使其在重新启动时自动启动: sudo服务redis启动sudo chkconfig redis on
  8. 最后,检查当前安装的redis的版本: redis-cli info _ grep redis_version

完成!

票数 19
EN

Server Fault用户

发布于 2015-05-12 08:57:26

EPEL redis软件包有点过时,在RHEL6上您可以使用Remi的存储库:http://rpms.famillecollet.com/。它们是最新的,也有3.0和2.8版本的最新版本。

查看这里,了解最新软件包的描述。

票数 7
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/667857

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档