Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED

After you install redis, type from terminal:

redis-server

and you'll have redis running


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.


Install redis on your system first -

brew install redis

then start the redis server -

redis-server

I'm on windows, and had to install Redis from here and then run redis-server.exe.

From the top of this SO question.


Simple solution:

only hit below commend once and restart your server again

redis-server

for Windows users, you can use chocolatey to install Redis

choco install redis-64

then run server from

C:\ProgramData\chocolatey\lib\redis-64\redis-server.exe