Redis —— Creating Server TCP listening socket 127.0.0.1:6379: bind: No error

redis-cli.exe is the client of redis. This command is used to connect to the redis service opened on port 6379 (default) of 127.0.0.1 (local machine).

redis-server.exe starts the redis service, so that the client can operate the redis cache through the redis command after connecting.

I used redis-cli in the last blog, and then prepared to open redis-server in the project, but the result kept reporting an error. If you have the same problem as me, you can follow the following command.

Use cmd to enter the Redis installation directory.

redis-cli.exe

shutdown

exit

redis-server.exe redis.windows.conf

insert image description here

Guess you like

Origin blog.csdn.net/qq_43779149/article/details/123398742