Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED

后端 未结 17 2120
时光说笑
时光说笑 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:01

    I solve this problem in next way:

    sudo apt-get install redis-server
    

    then run command to confirm that everything ok:

    sudo service redis-server status
    

    And the output will be: redis-server is running - that means that the problem is solved.

提交回复
热议问题