web-dev-qa-db-ja.com

Centos7からGitlab EEを削除する

Apacheを実行しているCentos7 vpsに https://about.gitlab.com/installation/#centos をインストールしました。これは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~]$
5
user1032531

簡単な解決策として、yum historyコマンドを使用できます。 yum history undo <ID>を実行すると、要求されたIDで行われたすべての変更が元に戻ります。今すぐ行うと、最新のIDを取り消すことができます。

3

インストールを元に戻す最も簡単な方法は、yum removeでインストールされる前のすべてのものにyum install。この場合、Sudo gitlab-ctl stop その後 Sudo yum remove gitlab-ee

4

VPSです。それを破壊し、必要に応じて別のVMを再構築します。

アプライアンスのパッケージ管理を研究してクリーンアップすることは、教育には役立ちますが、時間がかかります。一部のアプライアンスは、1つのアプリケーションのみに関心があり、パッケージによって構成が管理されないままになります。

1
John Mahowald