Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED

后端 未结 17 2090
时光说笑
时光说笑 2020-12-12 15:34

I working with node.js by expressjs
I try to store an account to session. So, i try to test to use session with code in expressjs

var RedisStore = requ         


        
17条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 16:06

    In case of ubuntu, the error is due to redis-server not being set up. Install the redis-server again and then check for the status.

    If there is no error, then a message like this would be displayed :-

    ● redis-server.service - Advanced key-value store Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2018-01-17 20:07:27 IST; 16s ago Docs: http://redis.io/documentation, man:redis-server(1) Main PID: 4327 (redis-server) CGroup: /system.slice/redis-server.service └─4327 /usr/bin/redis-server 127.0.0.1:6379

提交回复
热议问题