我安装并运行了我的redis服务器,但是当我使用bundle exec sidekiq
连接sidekiq时会抛出错误消息
在localhost上连接Redis超时:6379
Redis Server正在端口上运行:6379。
答案 0 :(得分:1)
你为什么使用bundle exec sidekiq?
尝试连接“redis-cli -h localhost”
答案 1 :(得分:0)
我认为这意味着你的redis服务器没有运行。
尝试在终端上运行sudo /etc/init.d/redis-server start
,同时确保redis有权写入/var/log/redis.log,否则无法启动。
答案 2 :(得分:0)
问题是我的redis制作网址不正确。
我的修复是:
$ sudo nano gitlab/htdocs/config/resque.yml
production: redis://some-wrong-url:6379
更改为production: redis://localhost:6379
$ sudo /opt/bitnami/ctlscript.sh restart
我首先从@henley左边的答案中验证了我的redis网址。
*注意我使用Bitnami堆栈