1.
Cmd in the redis installation directory and enter the following startup command:
redis-server redis.windows.conf
If the following figure is displayed, it means the startup is successful.
2.
If an error is reported, enter the following four commands in sequence and then enter the start command redis-server redis.windows.conf to start successfully (of course, my redis requires a password to log in, and you may be exempt from logging in. In this case, you don’t need Enter the second command)
redis-cli
auth 123456
shutdown
exit
The following is the operation process:
3.
What I want to mention here is that if an error is reported: Could not connect to Redis at 127.0.0.1:6379: Cannot connect because the target computer actively refuses
Reason: Your redis service is not started, you need win+r to bring up the command window, enter service.msc and then start the redis service and then operate.