Home >Database >Redis >How to close redis

How to close redis

藏色散人
藏色散人Original
2019-06-26 13:53:054457browse

How to close redis

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!

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