Home  >  Article  >  Database  >  What is the command to shut down redis in Linux system?

What is the command to shut down redis in Linux system?

WBOY
WBOYforward
2023-05-26 17:58:063112browse

How to shut down redis correctly in Linux system? If redis is forcibly closed or the shutdown method is improper, may it cause some unexpected things?

 service network restar #重启网络
 ip addr #查找ip
 [root@localhost ~]# cd /usr/local/redis
 [root@localhost redis]# ./bin/redis-server ./redis.conf
 [root@localhost redis]# ./bin/redis-cli
 127.0.0.1:6379> exit
 [root@localhost redis]# ./bin/redis-cli shutdown
 [root@localhost redis]# ps -ef | grep -i redis

What is a Linux system

Linux is a UNIX-like operating system that is free to use and spread freely. It is a multi-user, multi-task, multi-threading and multi-CPU based on POSIX Operating system, Linux can run major Unix tool software, applications and network protocols.

The above is the detailed content of What is the command to shut down redis in Linux system?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete