Today Redis got the error "Could not connect to Redis at 127.0.0.1:6379: Unable to connect because the target computer actively refused"!
When I think about it, when I was using redis-server, I just clicked the × number!
Solution! !
-
Do not close after entering the command redis-server.exe redis.windows.conf.
redis-server.exe redis.windows.conf
-
Reopen the cmd window and enter redis-cli.exe -h 127.0.0.1 -p 6379.
redis-cli.exe -h 127.0.0.1 -p 6379
That's it! ! !