Redis - 服务器关闭连接/无法连接

时间:2015-04-23 17:42:45

标签: node.js redis

我正在尝试让redis在本地运行。它有时很好用,但有时我在启动它时会遇到这个问题。它似乎开始很好,但后来我无法与它建立任何连接或使用命令行工具。我无法理解为什么在启动redis时没有错误,它表示它在6379上运行,但不会在该端口上响应。

Toms-MBP:tinder-art tomchambers$ redis-server
[86521] 23 Apr 18:37:22.427 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
[86521] 23 Apr 18:37:22.429 * Increased maximum number of open files to 10032 (it was originally set to 256).
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 2.8.19 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in stand alone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 86521
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

[86521] 23 Apr 18:37:22.431 # Server started, Redis version 2.8.19
[86521] 23 Apr 18:37:22.432 * DB loaded from disk: 0.000 seconds
[86521] 23 Apr 18:37:22.432 * The server is now ready to accept connections on port 6379

Toms-MBP:tinder-art tomchambers$ redis-cli monitor
Error: Server closed the connection


^CToms-MBP:tinder-art tomchambers$ node app.js
Connecting to local redis
Connecting to local redis
Server started 3000
Redis error: [Error: Ready check failed: Redis connection to 127.0.0.1:6379 failed - read ECONNRESET]
Redis error: [Error: Redis connection to 127.0.0.1:6379 failed - read ECONNRESET]
Redis error: [Error: Ready check failed: Redis connection to 127.0.0.1:6379 failed - read ECONNRESET]
Redis error: [Error: Redis connection to 127.0.0.1:6379 failed - read ECONNRESET]
Redis error: [Error: Ready check failed: Redis connection gone from end event.]
Redis error: [Error: Ready check failed: Redis connection gone from end event.]
Redis error: [Error: Ready check failed: Redis connection gone from end event.]
Redis error: [Error: Ready check failed: Redis connection gone from end event.]
Redis error: [Error: Ready check failed: Redis connection gone from end event.]

0 个答案:

没有答案