The Hard Way

The Hard Way,第1张

概述Install Redis on CentOS 6.4source: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 WayLike 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.gztar xzf redis-2.6.13.tar.gzcd redis-2.6.13makeUnfortunately that keeps the binaries in /usr/local/bin and doesn’t include a init script (boo).The Easy WayFortunately, there’s the REMI repository which packages common programs and distributes them. Let’s see what it looks like with thatwget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmwget http://rpms.famillecollet.com/enterprise/remi-release-6.rpmrpm -Uvh remi-release-6*.rpm epel-release-6*.rpmyum install redis -yThis 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.

<h4 ><a href="http://thoughts.z-dev.org/2013/05/27/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:

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

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.

总结

以上是内存溢出为你收集整理的The Hard Way全部内容,希望文章能够帮你解决The Hard Way所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1050673.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存