Rescue : Connection refused - Unable to connect to Redis on localhost:6379

前端 未结 5 1033
忘了有多久
忘了有多久 2020-12-29 03:07

I have followed the instructions to install resque, but now when I try to spawn a worker with this command I get a connection error:

$ QUEUE=mailer rake env         


        
5条回答
  •  既然无缘
    2020-12-29 03:36

    Have you installed redis?

    Installing REDIS on Ubuntu

    Ref: http://redis.io/download

    1. Download, extract and compile Redis with:-

      $ cd ~/Installations
      $ curl -O http://redis.googlecode.com/files/redis-2.2.1.tar.gz
      $ tar xzf redis-2.2.1.tar.gz
      $ cd redis-2.2.1
      $ sudo make
      
    2. Install Tcl (the Tool Command Language) runtime

      $ sudo apt-get install tcl8.5
      
    3. Running Redis Server

      $ src/redis-server
      [31371] 24 Feb 10:14:03 # Warning: no config file specified, using the default config. In order to   specify a config file use 'redis-server /path/to/redis.conf'
      [31371] 24 Feb 10:14:03 * Server started, Redis version 2.2.1
      [31371] 24 Feb 10:14:03 # WARNING overcommit_memory is set to 0! Background save may  fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
      [31371] 24 Feb 10:14:03 * The server is now ready to accept connections on port 6379
      

提交回复
热议问题