6

I have my redis server installed and running, but when I connect sidekiq using bundle exec sidekiq it throws an error message

Timed out connecting to Redis on localhost:6379

Redis Server is running on port: 6379.

4

3 回答 3

1

为什么要使用 bundle exec sidekiq?

尝试使用“redis-cli -h localhost”连接

于 2013-02-13T15:38:30.513 回答
0

因为问题是我的 redis 生产 url 不正确。

我的解决方法是:

  1. 打开$ sudo nano gitlab/htdocs/config/resque.yml
  2. 更改production: redis://some-wrong-url:6379production: redis://localhost:6379
  3. 重新启动了我的 Bitnami 堆栈$ sudo /opt/bitnami/ctlscript.sh restart

我首先从@henley left 的答案中验证了我的redis url。

*注意我使用的是 Bitnami 堆栈

于 2014-07-30T14:24:50.657 回答
0

我认为这意味着你的 redis 服务器没有运行。尝试sudo /etc/init.d/redis-server start在您的终端上运行,同时确保 redis 有权写入 /var/log/redis.log,否则它将无法启动。

于 2013-05-05T01:05:37.270 回答