ps -ef | grep redis //查看进程
root 2266 2250 0 17:23 pts/1 00:00:00 ./redis-cli root 2280 1 0 17:32 ? 00:00:00 ./redis-server *:6379 root 2285 2223 0 17:34 pts/0 00:00:00 grep --color=auto redis
# kill -9 2280 //关掉进程
[[email protected] bin]# ./redis-server redis.conf //启动redis
[[email protected] bin]# ./redis-cli shutdown //关闭redis
时间: 2024-10-05 06:57:25