Install Redis on CentOS 6.4

source:http://thoughts.z-dev.org/2013/05/27/install-redis-on-centos-6-4/

We’re provisioning production machines today!

This means that I’m finding a lot of things that I did previously to make my life easier. We use Redis primarily to temporarily cache data retrieved from Riak and this dramatically reduces that amount of stress on our Riak cluster.

Unfortunately, Redis doesn’t (by default) have its own package in yum.

The Hard Way

Like most freely distributed software, the process is pretty much the same: download, extract and compile.

This is what that looks like:

wget http://redis.googlecode.com/files/redis-2.6.13.tar.gz
tar xzf redis-2.6.13.tar.gz
cd redis-2.6.13
make

Unfortunately that keeps the binaries in /usr/local/bin and doesn’t include a init script (boo).

The Easy Way

Fortunately, there’s the REMI repository which packages common programs and distributes them. Let’s see what it looks like with that

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
yum install redis -y

This means that we don’t have to manually update Redis and that we can use the included init script to start, stop, and restart the service.

Just thought I’d throw that out there since this is a relatively annoying issue that’s pretty easy to solve.

最新文章

  1. ubuntu 报错: The system is running in low-graphics mode
  2. jquery in confluence.
  3. Css定位之absolute_慕课网课程笔记
  4. 使用 SyndicationFeed 输出 Rss
  5. Oracle列操作引起的全表扫描
  6. jquery.pagination +JSON 动态无刷新分页
  7. lintcode:验证二叉查找树
  8. HDU 4932 贪心
  9. Cloud Insight 和 BearyChat 第一次合体,好紧张!
  10. 安装Visual Studio 2013 中文社区版
  11. Swift - 使用UI Dynamics给UIKit组件添加移动吸附行为
  12. Studio-Class Diagram
  13. python代码零散知识点
  14. 详细分析apache httpd反向代理的用法
  15. Java实现简单计算器、抽票程序
  16. anguar6中 无法在Element上找到属性 (eg 原DOM的offsetTop)
  17. 4.BeanPostProcessor 后处理Bean
  18. The Mac App Store isn't working. How to fix?
  19. 面向对象【day07】:新式类和经典类(八)
  20. require.js的基本概念及使用流程(1)

热门文章

  1. 画之国 Le tableau (2011)
  2. EF性能之关联加载
  3. 向Spotify学习如何设计产品(转)
  4. Maven Learning - Direct Dependencies & Transitive Dependencies
  5. DropDownList 获取不了选择的值 这种错误
  6. Javascript sleep 函数
  7. [转] The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing
  8. Java 反射练习
  9. Hadoop2.x源码-编译剖析
  10. 游戏服务器ID生成器组件