No such file or directory error when redis is started under Windows

This problem occurs because the Redis server is already started and you can test it by entering the command shown in the figure

Redis-CLI is the client that starts Redis. If you do not configure the environment variables, you will need to go to the installation directory of Redis
To run this command, otherwise an error will occur. If you type ping into the Redis client and it returns Pong, you can prove it
The Redis server has started. But if the reader needs to be reassured by an interface like the one shown below, follow the image
The following operations are performed:

This can be done with the following command:
(1) Redis-cli. Exe enters the client of Redis. If no environment variables are configured, it needs to enter the installation directory of Redis to execute
(2) The original server of Redis was shutdown with shutdown
(3) Exit the client
(4) Redis -server.exe Redis.Windows.conf Restarts the Redis server
If you do not configure a Redis environment variable, you will need to go to the installation directory of Redis to execute the above command. After executing the above commands,
You can see the above interface after the subsequent redis-server execution


Read More: