Install Redis on CentOS 6.4--转
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.
相关文章
- redis实战笔记(10)-第10章 扩展Redis
- redis实战笔记(1)-第1章 初识Redis
- 各种redis的介绍:ServiceStack.Redis,StackExchange.Redis,CSRedis
- scrapy-redis 使 redis 不止保存 url(例如:json)
- 教你在 Kubernetes 上部署 Redis 高可用集群?
- 87 爬虫 - scrapy-redis源码分析(queue)
- Redis——jedis连接redis哨兵模式简单使用
- Redis——maven、spring、jedis快速搭建redis工程
- redis使用CacheCloud搭建(Redis云平台)搭建集群监控等等
- 《Redis入门指南》一4.1 事务
- Centos基础环境--docker安装Redis
- Spring集成Redis集群(含spring集成redis代码)
- redis实现队列
- redis实现spring-redis-data的入门实例
- Redis哨兵机制以及发布订阅
- 【redis工具】redis-rdb-tools,redis分析key大小
- Redis(1.1)redis安装,linux下安装redis
- 曹工说Redis源码(7)-- redis server 的周期执行任务,到底要做些啥
- 曹工说Redis源码(5)-- redis server 启动过程解析,以及EventLoop每次处理事件前的前置工作解析(下)
- 曹工说Redis源码(4)-- 通过redis server源码来理解 listen 函数中的 backlog 参数
- REDIS持久化报错失败
- Redis安装说明