0

これらのコマンドを使用して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システムを再起動していますが、これを解決する方法はありますか?

読んでくれてありがとう。

4

1 に答える 1