error event - 127.0.0.1:6379 - Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED events.js:72 throw er; // Unhandled 'error' event ^ Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED at RedisClient.on_error (/home/www/site.com/node_modules/redis/index.js:189:24) at Socket.<anonymous> (/home/www/site.com/node_modules/redis/index.js:95:14) at Socket.EventEmitter.emit (events.js:95:17) at net.js:441:14 at process._tickCallback (node.js:415:13) 

At the same time, redis is installed and started by the redis-server command.

 [8857] 29 Nov 18:14:31.466 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf [8857] 29 Nov 18:14:31.467 * Max number of open files set to 10032 [8857] 29 Nov 18:14:31.468 # Server started, Redis version 2.8.0 [8857] 29 Nov 18:14:31.468 * The server is now ready to accept connections on port 6379 
  • why did you not set the configuration file for radishes? - deivan_
  • It is by default. The following apt-get -f install helped and after the command sudo apt-get install redis-server - IOleg
  • Is it not possible to leave the default settings? how critical is it? - IOleg
  • not that it is very critical, but personally I prefer to be confident in all configs, rather than rely on default - deivan_

1 answer 1

Perhaps, you have Redis running without TCP, port 0 is specified in the configs. In order to work with TCP, a port must be specified, usually 6379. But it’s better to work through a unix socket — this is faster.