My redis is deployed on a linux machine and is a redis cluster. The following commands are all used on linux.
After execution, the output record contains several lines of "redis-server", all of which run the redis service node.
At the end of the line where "redis-server" is located, there will be "IP: port number", which will be used when stopping the redis cluster in step 3.
The first line records that the stop command must be executed.
2. Enter the directory where redis-cli is located.
Note: If you don't know the directory where redis-cli is located, please use the following command to find it (many people on the Internet replied that redis-cli is in the redis/bin directory and my machine is not there).
3. Stop the redis service and use the IP and port number found in step 1.
The first line of record in the first step requires the stop command.
Note: If the "-h IP" parameter is not added, the following message will be prompted: Stop is failure.
Unable to connect to Redis:XXXX of 127.0.0. 1: Connection denied.
4. Check whether the redis service stopped successfully.
After execution, there is no line containing "redis-server" in the output record, so the redis service stopped successfully.
Original text:
Youluo Jv builds a beacon of quality and efficiency with small bricks of knowledge, hoping to illuminate the road for more people.