Redis is an open source log-type Key-Value database written in ANSI C language, supports network, can be memory-based and persistent, and provides APIs in multiple languages.
How to close redis?
redis shutdown
Go to the redis node directory and execute the following command
./redis-cli -p 端口号 shutdown
redis startup
./redis-server 参数
Parameter: full path of redis.conf file
You need to go to the directory where redis is located to restart redis. At this time, the data in redis can still be recovered.
For more Redis related knowledge, please visit the Redis usage tutorial column!
The above is the detailed content of How to close redis. For more information, please follow other related articles on the PHP Chinese website!