一、停止gitlab
sudo gitlab-ctl stop
二、卸载gitlab
sudo rpm -e gitlab-ce
三、查看gitlab进程
[hasi@localhost ~]$ ps -ef|grep gitlab
root 18379 1 0 10:56 ? 00:00:00 runsvdir -P /opt/gitlab/service log: ...........................................................................................................................................................................................................................................................................................................................................................................................................
root 18385 18379 0 10:56 ? 00:00:00 runsv gitlab-workhorse
root 18387 18380 0 10:56 ? 00:00:00 svlogd -tt /var/log/gitlab/redis
gitlab-+ 18388 18380 0 10:56 ? 00:01:12 /opt/gitlab/embedded/bin/redis-server 127.0.0.1:0
root 18391 18383 0 10:56 ? 00:00:00 svlogd -tt /var/log/gitlab/unicorn
git 18392 18383 0 10:56 ? 00:00:04 /bin/bash /opt/gitlab/embedded/bin/gitlab-unicorn-wrapper
杀掉第一个守护进程
kill -9 18379
再次查看gitlab进程是否存在
四、删除gitlab文件
find / -name gitlab|xargs rm -rf 删除所有包含gitlab的文件及目录
删除gitlab-ctl uninstall时自动在root下备份的配置文件
rm -rf /root/gitlab-cleanse-2019-08-09T16:04
通过以上几步就可以彻底卸载gitlab
网友评论