1

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

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

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

在我多次安装 Redis 的尝试中,不知道这是否会影响现在的功能。有谁知道可能是什么问题?显然Redis实际上并没有运行,并且很难找到关于该主题的具体内容。

4

1 回答 1

1

你需要安装 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
于 2015-10-30T05:37:03.400 回答