【问题标题】:Redis not working on CentOSRedis 无法在 CentOS 上运行
【发布时间】:2016-01-29 00:06:51
【问题描述】:

我在安装 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实际上并没有运行,很难找到关于该主题的具体内容。

【问题讨论】:

    标签: node.js redis centos nodebb


    【解决方案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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-01-11
      • 2017-01-14
      • 2018-12-05
      • 2016-04-22
      • 1970-01-01
      • 1970-01-01
      • 2021-09-18
      • 2015-01-02
      相关资源
      最近更新 更多