Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED

后端 未结 17 2103
时光说笑
时光说笑 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 15:59

    I also have the same problem, first I tried to restart redis-server by sudo service restart but the problem still remained. Then I removed redis-server by sudo apt-get purge redis-server and install it again by sudo apt-get install redis-server and then the redis was working again. It also worth to have a look at redis log which located in here /var/log/redis/redis-server.log

提交回复
热议问题