Home > Database > Redis > body text

How to start, stop and view redis port

Release: 2019-11-28 15:40:08
forward
5162 people have browsed it

How to start, stop and view redis port

1. View all redis processes(Recommended: redis introductory tutorial)

ps aux|grep redis
Copy after login

How to start, stop and view redis port 2. Stop redis

kill -9 20024      //根据pid来暴力停止redis进程,这里我只停止了其中一个redis
Copy after login

3. Start redis cluster and sentinel in the background and specify the configuration file

Start redis

[app01@gcdc-wxtest01 ~]$ cd redis/bin/
[app01@gcdc-wxtest01 bin]$ ./redis-server ../conf/redis_7932.conf
Copy after login

Start sentinel sentinel , both methods can be started in the background,

//第一种启动有图形化界面,CTRL+C退出,进程依然存在
[app01@gcdc-wxtest01 bin]$ ./redis-sentinel ../conf/sentinel_27932.conf &

//第二种启动看不到图形化界面,再按一次回车即可
[app01@gcdc-wxtest01 bin]$ nohup ./redis-sentinel ../conf/sentinel_27932.conf&
Copy after login
window 版本
redis-server --service-install redis.windows.conf //开机自启动
redis-server --service-start
redis-server --service-stop
Copy after login

The above is the detailed content of How to start, stop and view redis port. 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