温馨提示×

centos查看redis状态

小新
3389
2021-04-30 17:38:37
栏目: 云计算

centos中查看redis状态的方法:1、打开终端;2、输入“ps aux | grep redis”或“netstat -lntp”命令查看redi运行状态即可。

centos查看redis状态

具体操作步骤:

1、在centos系统桌面中使用快捷键【Ctrl+Alt+T】打开终端命令行模式。

2、在centos终端命令行中输入以下命令查看redi运行状态即可。

ps aux | grep redis #查看redi是否在运行

#或

netstat -lntp #查看redi是否在运行

相关命令:

redis-server /etc/redis.conf #启动redis服务

/usr/bin/redis-cli shutdown #关闭redis服务

0