ConnectionError: Error 10061 connecting to 127.0.0.1:6379

created at 06-19-2022 views: 6

problem

When using python to connect to redis The following problem occurs:

ConnectionError: Error 10061 connecting to 127.0.0.1:6379. Could not connect because the target machine actively refused

This is a critical bug fix release for Redis on Windows 3.0. If you are running a previous version of 3.0 in a cluster configuration you should upgrade to 3.0.504 urgently. The fix resolves a problem with the cluster fail-over procedure.

This released is based on antirez/redis 3.0.5 plus Windows-specific fixes.

release note

solution

If you only need to start via redis-cli in the command line interface

D:\Redis> redis-cli
127.0.0.1:6379> shoutdown
not connected> exit

or redis-server.exe redis.windows.conf:

D:\Redis> redis-server.exe redis.windows.conf

If you only need to install it in the visual interface, find the installation path and double-click the redis-cli.exe file

created at:06-19-2022
edited at: 06-19-2022: