一、停止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