- 查找redis进程号,并杀死。
1. ps -ef|grep redis
示例:
[root@iz2ze5w0d1f4lqljfb9ld0z ~]# ps -ef | grep redis
root 12745 11480 0 15:01 ? 00:00:00 ./redis-server *:6379
root 14769 14731 0 15:17 pts/6 00:00:00 grep --color=auto redis
2. kill -9 pid
示例:
kill -9 12745
pid为进程号 (不必处理 第六行的进程号)
- 查找redis安装目录
whereis redis
进入目录
cd /usr/local/redis/src
启动redis服务
./redis-server redis.conf
如果没有 redis.conf 文件可以省略。
成功画面:
更多推荐
linux杀死redis进程,重启redis服务
发布评论