I want to use redis in my nodejs application.I have installed npm package for redis. But while starting application i am getting error as
Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
I want to use redis in my nodejs application.I have installed npm package for redis. But while starting application i am getting error as
Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
Install WSL on windows. Can do this through Microsoft store. Example below is using Ubuntu and assumes you have installed the distribution with an open terminal. Ubuntu can be started by normal ways of starting applications on Windows.
> sudo apt-get update
> sudo apt-get upgrade
> sudo apt-get install redis-server
> redis-cli -v
This performs updates to ubuntu on your machine and installs redis.
The last command should output something like: redis-cli 6.2.5
If for some reason redis is not running, execute sudo service redis-server restart
in ubuntu terminal