Redis不能在CentOS上工作

我在安装Redis时遇到了问题,整个一周我都在寻找解决scheme。 我需要安装在CentOS 6服务器上运行的NodeBB(使用WHM / Cpanel)。

按照http://nodebb-francais.readthedocs.org/projects/nodebb/en/latest/installing/os/centos.html中的步骤操作

当我使用命令redis-benchmark -q -n 1000 -c 10 -P 5运行一个testing( https://www.digitalocean.com/community/tutorials/how-to-configure-a-redis-cluster-on-ubuntu-14-04 )时, redis-benchmark -q -n 1000 -c 10 -P 5 ,系统返回错误Writing to socket: Connection refused

在尝试我多次安装Redis时,不知道这是否会影响现在的function。 有没有人有任何想法可能是什么问题? 显然,Redis实际上并没有运行,而且很难find关于这个主题的具体内容。

你需要安装redis包。 您的指南针对的是Ubuntu基础知识库中提供的,不在CentOs中。 您必须通过epel存储库进行安装。

 rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm; yum -y --enablerepo=remi,remi-test install redis chkconfig --add redis service redis restart 

您也可以从源代码安装它:

 wget http://download.redis.io/releases/redis-2.8.3.tar.gz tar xzvf redis-2.8.3.tar.gz cd redis-2.8.3 make make install chkconfig --add redis service redis restart