从 Centos7 中删除 Gitlab EE

从 Centos7 中删除 Gitlab EE

我刚刚安装https://about.gitlab.com/installation/#centos在运行 Apache 的 Centos7 vps 上。我应该在这样做之前阅读更多内容,因为它与 Apache 冲突,而且我不想要 EE 版本。我应该如何删除它?

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
sudo yum install gitlab-ee
sudo gitlab-ctl reconfigure

我尝试了以下操作。

sudo gitlab-ctl stop
sudo gitlab-ctl uninstall
rpm -e gitlab

重启后,还远远没有卸载

[michael@vps~]$ ps -ef | grep gitlab
root       730     1  0 13:49 ?        00:00:00 runsvdir -P /opt/gitlab/service log: ...........................................................................................................................................................................................................................................................................................................................................................................................................
root       743   730  0 13:49 ?        00:00:00 runsv gitlab-workhorse
root       750   730  0 13:49 ?        00:00:00 runsv gitlab-monitor
root       751   743  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/gitlab-workhorse
root       752   741  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/sidekiq
git        753   743  0 13:49 ?        00:00:00 /opt/gitlab/embedded/bin/gitlab-workhorse -listenNetwork unix -listenUmask 0 -listenAddr /var/opt/gitlab/gitlab-workhorse/socket -authBackend http://localhost:8080 -authSocket /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket -documentRoot /opt/gitlab/embedded/service/gitlab-rails/public -pprofListenAddr  -secretPath /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret -config config.toml
git        754   741 21 13:49 ?        00:00:15 sidekiq 5.0.0 gitlab-rails [0 of 25 busy]
root       755   739  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/postgresql
root       756   738  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/redis
gitlab-+   757   739  0 13:49 ?        00:00:00 /opt/gitlab/embedded/bin/postgres -D /var/opt/gitlab/postgresql/data
gitlab-+   758   738  0 13:49 ?        00:00:00 /opt/gitlab/embedded/bin/redis-server 127.0.0.1:0
root       759   740  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/unicorn
git        760   740  0 13:49 ?        00:00:00 /bin/bash /opt/gitlab/embedded/bin/gitlab-unicorn-wrapper
root       761   749  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/postgres-exporter
gitlab-+   762   749  0 13:49 ?        00:00:00 /opt/gitlab/embedded/bin/postgres_exporter -web.listen-address=localhost:9187
root       763   742  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/gitaly
git        764   742  0 13:49 ?        00:00:00 /opt/gitlab/embedded/bin/gitaly /var/opt/gitlab/gitaly/config.toml
root       765   744  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/nginx
root       766   744  0 13:49 ?        00:00:00 nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx
root       767   745  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/logrotate
root       768   750  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/gitlab-monitor
root       769   745  0 13:49 ?        00:00:00 /bin/sh /opt/gitlab/embedded/bin/gitlab-logrotate-wrapper
git        770   750  0 13:49 ?        00:00:00 /opt/gitlab/embedded/bin/ruby /opt/gitlab/embedded/bin/gitlab-mon web -c /var/opt/gitlab/gitlab-monitor/gitlab-monitor.yml
root       771   746  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/prometheus
gitlab-+   772   746  0 13:49 ?        00:00:00 /opt/gitlab/embedded/bin/prometheus -web.listen-address=localhost:9090 -storage.local.path=/var/opt/gitlab/prometheus/data -storage.local.chunk-encoding-version=2 -storage.local.target-heap-size=68005724 -config.file=/var/opt/gitlab/prometheus/prometheus.yml
root       773   748  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/redis-exporter
gitlab-+   774   748  0 13:49 ?        00:00:00 /opt/gitlab/embedded/bin/redis_exporter -web.listen-address=localhost:9121 -redis.addr=unix:///var/opt/gitlab/redis/redis.socket
root       780   747  0 13:49 ?        00:00:00 svlogd -tt /var/log/gitlab/node-exporter
gitlab-+   781   747  0 13:49 ?        00:00:00 /opt/gitlab/embedded/bin/node_exporter -web.listen-address=localhost:9100 -collector.textfile.directory=/var/opt/gitlab/node-exporter/textfile_collector
gitlab-+   832   766  0 13:49 ?        00:00:00 nginx: worker process
gitlab-+   833   766  0 13:49 ?        00:00:00 nginx: worker process
gitlab-+   834   766  0 13:49 ?        00:00:00 nginx: cache manager process
gitlab-+   843   757  0 13:49 ?        00:00:00 postgres: checkpointer process
gitlab-+   844   757  0 13:49 ?        00:00:00 postgres: writer process
gitlab-+   845   757  0 13:49 ?        00:00:00 postgres: wal writer process
gitlab-+   846   757  0 13:49 ?        00:00:00 postgres: autovacuum launcher process
gitlab-+   847   757  0 13:49 ?        00:00:00 postgres: stats collector process
git        939     1 20 13:49 ?        00:00:14 unicorn master -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
gitlab-+   997   757  0 13:49 ?        00:00:00 postgres: gitlab-psql postgres [local] idle
git       2631   939  0 13:50 ?        00:00:00 unicorn worker[0] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
git       2634   939  0 13:50 ?        00:00:00 unicorn worker[1] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
git       2639   939  0 13:50 ?        00:00:00 unicorn worker[2] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
gitlab-+  2685   757  0 13:50 ?        00:00:00 postgres: gitlab gitlabhq_production [local] idle
gitlab-+  2764   757  0 13:50 ?        00:00:00 postgres: gitlab gitlabhq_production [local] idle
gitlab-+  2765   757  0 13:50 ?        00:00:00 postgres: gitlab gitlabhq_production [local] idle
gitlab-+  2766   757  0 13:50 ?        00:00:00 postgres: gitlab gitlabhq_production [local] idle
gitlab-+  2767   757  0 13:50 ?        00:00:00 postgres: gitlab gitlabhq_production [local] idle
gitlab-+  2768   757  0 13:50 ?        00:00:00 postgres: gitlab gitlabhq_production [local] idle
gitlab-+  2769   757  0 13:50 ?        00:00:00 postgres: gitlab gitlabhq_production [local] idle
gitlab-+  2770   757  0 13:50 ?        00:00:00 postgres: gitlab gitlabhq_production [local] idle
michael   2784  2695  0 13:50 pts/0    00:00:00 grep --color=auto gitlab
[michael@vps~]$

答案1

一个简单的解决方案是使用yum history命令。运行后yum history undo <ID>,它将恢复在请求的 ID 中所做的所有更改。如果您现在执行此操作,则可以撤消最新的 ID。

答案2

yum remove撤消安装的最简单方法是使用对所有之前安装的程序运行yum install。在本例中,运行sudo gitlab-ctl stop,然后sudo yum remove gitlab-ee

答案3

这是一台 VPS。销毁它,如果需要,重建另一台 VM。

研究设备的软件包管理并清理它可能会很有教育意义,但很耗时。有些设备只关心它们的一个应用程序,而配置则不受其软件包的管理。

相关内容