我刚刚在运行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~]$
作为一个简单的解决scheme,你可以使用yum history命令。 运行yum history undo <ID> ,它将恢复在请求的ID中完成的所有更改。 如果你刚才这样做,你可以撤消最新的ID。
这是一个VPS。 销毁它,如果需要重build另一个虚拟机。
研究设备的包装pipe理并对其进行清理可能是教育性的,但耗时。 有些设备只关心他们的一个应用程序,并且会使configuration不受其包装的pipe理。