Home >Database >Redis >How to exit redis normally

How to exit redis normally

尚
Original
2019-06-25 18:03:249386browse

How to exit redis normally

Execute the following command to disconnect the redis connection normally:

How to exit redis 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn