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.
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.
为什么要使用 bundle exec sidekiq?
尝试使用“redis-cli -h localhost”连接
因为问题是我的 redis 生产 url 不正确。
我的解决方法是:
$ sudo nano gitlab/htdocs/config/resque.yml
production: redis://some-wrong-url:6379
为production: redis://localhost:6379
$ sudo /opt/bitnami/ctlscript.sh restart
我首先从@henley left 的答案中验证了我的redis url。
*注意我使用的是 Bitnami 堆栈
我认为这意味着你的 redis 服务器没有运行。尝试sudo /etc/init.d/redis-server start
在您的终端上运行,同时确保 redis 有权写入 /var/log/redis.log,否则它将无法启动。