Home > Database > Redis > body text

How to close redis

藏色散人
Release: 2019-08-01 15:44:04
Original
4373 people have browsed it

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
Copy after login

redis startup

./redis-server 参数
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!