Install Redis on CentOS 6.4--转

news/2025/3/22 1:36:24

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.


https://dhexx.cn/news/show-547771.html

相关文章

tinkerpop mysql_tinkerpop的理解

tinkerpop的理解太观 tinkerpop31. tinkerpop的模块理解1.1 giraph-gremlin1.2 gremlin-core定义图模型结构,OLTP和OLAP。1.3 gremlin-groovy1.4 gremlin-benchmarkJMH是新的microbenchmark(微基准测试)框架(2013年首次发布)。与其他众多框架相比它的特色优势在于&a…

sql server jar包_失眠架构师带你学java核心技术:包+文档注释+类设计技巧,学吗?...

包Java允许使用包(package)将类组织起来。借助于包可以方便地组织自己的代码,并将自己的代码与别人提供的代码库分开管理。标准的Java类库分布在多个包中,包括java.lang、java.util、java.net等等。标准的Java包具有一个层次结构。如同硬盘的目录嵌套一样…

7-5 正整数A+B (15分)

题的目标很简单,就是求两个正整数A和B的和,其中A和B都在区间[1,1000]。稍微有点麻烦的是,输入并不保证是两个正整数。 输入格式: 输入在一行给出A和B,其间以空格分开。问题是A和B不一定是满足要求的正整数&#xff0c…

jquery启用控件_5个新的启用触摸功能的jQuery插件2014

jquery启用控件如果我们能在移动设备上浏览内容总是很不错的,这就是为什么我们向您提供我们希望尝试的5种新的启用触摸的jQuery插件列表的原因。 它们易于使用,完全响应并支持触摸。 去看一下。 请享用! 1. OWL轮播 启用触摸功能的jQuery插…

mysql 代码中文乱码_mysql 中文乱码 完全版解决方法

mysql 中文乱码 完全版解决办法mysql是一小型数据库,各方面都讲究轻量级的实现。关于编码问题也是如此,只要搞清楚几个关键概念,便能轻轻松松的解决这个问题。在网上以搜索相关的主题是各种解法汇集,但是都没能清楚的说明解决问题…

最新增值税商品税目编码表_大家好!我叫增值税!这是我的最新最全税率表!...

最新增值税税率表征收率预征率,精信代账今天给大家更新知识了!- 01 -最新增值税税率表记住口诀,增值税新税率一点也不难记!一、13%纳税人销售货物、修理修配劳务、有形动产租赁服务或者进口货物。看似比较散乱,但是从记…

7-6 输出GPLT (20分)

给定一个长度不超过10000的、仅由英文字母构成的字符串。请将字符重新调整顺序,按GPLTGPLT…这样的顺序输出,并忽略其它字符。当然,四种字符(不区分大小写)的个数不一定是一样多的,若某种字符已经输出完&am…

5个新的启用触摸功能的jQuery插件2014

如果我们能够在移动设备上浏览内容总是很高兴,这就是为什么我们向您提供您想尝试的5个新的启用触摸功能的jQuery插件2014的原因 。 它们易于使用,完全响应并支持触摸。 去看一下。 请享用! 1. OWL轮播 启用触摸功能的jQuery插件,可…

CPU cache

2019独角兽企业重金招聘Python工程师标准>>> 回写与直写 2009-02-20 08:41:16 分类: 服务器与存储 对于cache的算法。 大方面有两种,Write-Through(通写)和Write-Back(回写). Write-Through,也就是说OS发送的处理data的请求&…

python中如何隐藏箭头_python – 禁用matplotlib的默认箭头键绑定

使用matplotlib的mpl_connect功能,可以将事件绑定到函数调用.但是,左右箭头键默认绑定在图的历史记录中“后退”和“前进”.我想禁用此默认绑定.例如:import matplotlib.pyplot as pltdef on_key_press(event):if event.key "left":print("Left!&qu…