Linux 卸载 Redis

卸载Redis

1.首先查看redis-server是否启动

1
ps aux | grep redis
1
2
3
4
[root@iZ25rsnm9crfk8Z mydata]# ps aux | grep redis
systemd+ 333 0.1 1.4 40708 11956 ? Ssl 10:27 0:01 redis-server *:6379
root 627 0.0 0.1 12108 1088 pts/0 R+ 10:48 0:00 grep --color=auto redis
root 1269 0.0 0.3 43632 3308 ? Ssl Aug20 10:18 /usr/local/soft/redis5/bin/redis-server 0.0.0.0:16379

2.关闭这些进程

1
2
3
[root@iZ25rsnm9crfk8Z mydata]# kill 333
[root@iZ25rsnm9crfk8Z mydata]# kill 627
[root@iZ25rsnm9crfk8Z mydata]# kill 1269

3.删除redis相应的文件夹就可以了。

1
find / -name redis
1
2
3
4
[root@iZ25rsnm9crfk8Z mydata]# find / -name redis
/var/lib/selinux/targeted/active/modules/100/redis
/usr/share/selinux/targeted/default/active/modules/100/redis
/home/redis
1
2
3
rm -rf /var/lib/selinux/targeted/active/modules/100/redis 
rm -rf /usr/share/selinux/targeted/default/active/modules/100/redis
rm -rf /home/redis
继开 wechat
欢迎加我的微信,共同交流技术