Home > Database > Redis > body text

What is the correct command to open and close redis under linux?

王林
Release: 2020-12-16 09:33:10
forward
3866 people have browsed it

What is the correct command to open and close redis under linux?

First connect to xshell, and then execute the following command:

(Learning video sharing: Programming video)

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

Related recommendations: redis database tutorial

The above is the detailed content of What is the correct command to open and close redis under linux?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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!