Today, the redis service started in the window and reported an error:
Creating server TCP listening socket 127.0.0.1:6379: bind no error
The reason is that redis did not shut down normally after it was started;
The solution is as follows: enter the following commands in order to connect successfully
redis-cli.exe
shutdown
exit
Redis closes normally, exits, and then re-enter the command to start
redis-server.exe redis.windows.conf
OK!