Ubuntu 卸载 gitlab

Posted Rand Tsui

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu 卸载 gitlab相关的知识,希望对你有一定的参考价值。

Remove services
sudo gitlab-ctl uninstall

Clean any data generated by usage of the package
sudo gitlab-ctl cleanse

You may also want to remove any accounts you configured. To do so
sudo gitlab-ctl remove-accounts

Then remove the package using
sudo dpkg -P gitlab-ce

Furthermore, gitlab-ce uses these directories (as described here 1.4k)

/opt/gitlab holds application code for GitLab and its dependencies.

/var/opt/gitlab holds application data and configuration files that gitlab-ctl reconfigure writes to.

/etc/gitlab holds configuration files for omnibus-gitlab. These are the only files that you should ever have to edit manually.

/var/log/gitlab contains all log data generated by components of omnibus-gitlab.

So, First remove the package recommended way (Even if you need to reinstall it). You can then remove those data using rm safely.

Information found from omnibus-gitlab README page 1.4k

以上是关于Ubuntu 卸载 gitlab的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu 卸载 gitlab

Ubuntu 卸载 gitlab

如何卸载ubuntu14.04 上的git

如何卸载ubuntu14.04 上的git

ubuntu16.04 装了一天的gitlab

完全卸载gitlab