- 查找redis进程号,并杀死。
1. ps -ef|grep redis
2. kill -9 pid
pid为进程号
- 查找redis安装目录
whereis redis
进入目录
cd /usr/local/redis/src
启动redis服务
./redis-server redis.conf
如果没有 redis.conf 文件可以省略。
成功画面:
微信扫一扫
1. ps -ef|grep redis
2. kill -9 pid
pid为进程号
whereis redis
进入目录
cd /usr/local/redis/src
启动redis服务
./redis-server redis.conf
如果没有 redis.conf 文件可以省略。
成功画面:
相关推荐