centos7卸载gitlab

1.停止gitlab
gitlab-ctl stop
2.卸载gitlab
rpm -e gitlab-ee
3.查看gitlab进程
[root@localhost gitlab]# ps -ef|grep gitlab
root     10676     1  0 10:31 ?        00:00:00 runsvdir -P /opt/gitlab/service log: .................................................................................................
root     10678 10677  0 10:31 ?        00:00:00 svlogd -tt /var/log/gitlab/redis
root     11689 10676  0 10:32 ?        00:00:00 runsv gitlab-workhorse
root     12115 10676  0 10:33 ?        00:00:00 runsv gitlab-monitor
root     12399 11689  0 10:33 ?        00:00:00 svlogd -tt /var/log/gitlab/gitlab-workhorse
root     12421 11866  0 10:33 ?        00:00:00 svlogd -tt /var/log/gitlab/gitaly
root     12443 11286  0 10:33 ?        00:00:00 svlogd -tt /var/log/gitlab/postgresql
root     12444 11558  0 10:33 ?        00:00:00 svlogd -tt /var/log/gitlab/unicorn
root     12445 11626  0 10:33 ?        00:00:00 svlogd -tt /var/log/gitlab/sidekiq
root     12452 11750  0 10:33 ?        00:00:00 svlogd -tt /var/log/gitlab/nginx
root     12453 11801  0 10:33 ?        00:00:00 svlogd -tt /var/log/gitlab/logrotate
root     12461 12211  0 10:33 ?        00:00:00 svlogd -tt /var/log/gitlab/prometheus
root     12465 12037  0 10:33 ?        00:00:00 svlogd -tt /var/log/gitlab/node-exporter
root     12482 12115  0 10:33 ?        00:00:00 svlogd -tt /var/log/gitlab/gitlab-monitor
root     12483 12298  0 10:33 ?        00:00:00 svlogd -tt /var/log/gitlab/alertmanager
root     12484 12161  0 10:33 ?        00:00:00 svlogd -tt /var/log/gitlab/redis-exporter

杀掉第一个守护进程

kill -9 10676

再次查看gitlab进程是否存在

4.删除gitlab文件
find / -name gitlab|xargs rm -rf 

删除所有包含gitlab的文件及目录

删除gitlab-ctl uninstall时自动在root下备份的配置文件

rm -f /root/gitlab*

通过以上几步就可以彻底卸载gitlab

你可能感兴趣的:(centos7卸载gitlab)