我已经使用这些命令安装了 redis 服务器,
wget http://download.redis.io/redis-stable.tar.gz
xvzf redis-stable.tar.gz
cd redis-stable
make
make test # to test everything is working out well or not
在此之后,我导航到 redis-stable 目录以启动 redis 服务器
src/redis-server
现在,如果我正在运行 rails 应用程序并尝试访问 localhost:3000/resque 它正在正常工作,没有错误,
但是当我尝试停止(我正在使用 cntrl+c 停止正在运行的服务器)并使用 src/redis-server 重新开始时,它会抛出这样的异常
# Warning: no config file specified, using the default config. In order to specify a config file use 'redis-server /path/to/redis.conf'
[10020] 16 May 13:30:31 # Opening port 6379: bind: Address already in use
由此我推断 redis 服务器已经在运行但是当我访问 localhost:3000/resque 时出现此错误
Errno::EAGAIN at /resque/overview
Resource temporarily unavailable - Timeout reading from the socket
目前我正在重新启动我的 ubuntu 系统以解决这个问题,有什么想法可以解决这个问题吗?
谢谢阅读。