Execute the following command to disconnect the redis connection normally:
Redis common commands:
1. Check whether redis is running: ps aux | grep redis
2. Start redis: redis-server redis-conf
3. Shut down redis: redis-cli shutdown
4. After setting the password, the above shutdown command is invalid: enter with password: redis-cli -a [password], press Enter and enter: shutdown
to close redis, enter exit quit.
For more Redis-related technical articles, please visit the Redis Tutorial column to learn!
The above is the detailed content of How to exit redis normally. For more information, please follow other related articles on the PHP Chinese website!