我在安装Redis时遇到了问题,这一周我一直在寻找解决方案。我需要安装在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命令运行测试(https://www.digitalocean.com/community/tutorials/how-to-configure-a-redis-cluster-on-ubuntu-14-04)时,系统返回错误Writing to socket: Connection refused。
我多次尝试安装Redis,不知道这是否影响了现在的功能。有没有人知道问题出在哪里?显然Redis实际上并没有运行,而且很难找到关于这个主题的具体内容。
发布于 2015-10-30 13:37:03
您需要安装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 restarthttps://stackoverflow.com/questions/33404236
复制相似问题