Linux完整解除安裝Gitlab私服

2021-10-23 20:38:12 字數 3251 閱讀 9888

停止gitlab服務

[root@kisdfzziwxll~

]# gitlab-cli stop

ok: down: node-exporter:

1s, normally up

ok: down: postgres-exporter:

0s, normally up

ok: down: postgresql:

1s, normally up

ok: down: prometheus:

0s, normally up

ok: down: puma:

0s, normally up

ok: down: redis:

1s, normally up

ok: down: redis-exporter:

0s, normally up

ok: down: sidekiq:

0s, normally up

解除安裝gitlab(我當時安裝的是社群版,所以是gitlab-ce)

[root@kisdfzziwxll~

]# rpm -e gitlab-ce

檢視gitlab程序

[root@kisdfzziwxll~

]# ps aux|grep gitlab

root 4540

0.00.0

4384

100? ss 15:44

0:00 runsvdir -

p/opt/gitlab/service log:

......

......

......

......

......

......

......

........

root 4541

0.00.0

4232

72? ss 15:44

0:00 runsv gitlab-exporter

root 4543

0.00.0

4232

76? ss 15:44

0:00 runsv gitlab-workhorse

root 4555

0.00.0

437684?

s15:44

0:00 svlogd -tt /

var/log/gitlab/gitlab-exporter

root 4556

0.00.0

437688?

s15:44

0:00 svlogd -tt /

var/log/gitlab/redis

root 4557

0.00.0

437692?

s15:44

0:00 svlogd -tt /

var/log/gitlab/redis-exporter

root 4558

0.00.0

437692?

s15:44

0:00 svlogd -tt /

var/log/gitlab/postgresql

root 4559

0.00.0

437696?

s15:44

0:00 svlogd /

var/log/gitlab/gitaly

root 4560

0.00.0

4376

124?s15

:440:

00 svlogd -tt /

var/log/gitlab/puma

root 4561

0.00.0

437676?

s15:44

0:00 svlogd /

var/log/gitlab/gitlab-workhorse

root 4562

0.00.0

437688?

s15:44

0:00 svlogd -tt /

var/log/gitlab/alertmanager

root 4563

0.00.0

437688?

s15:44

0:00 svlogd -tt /

var/log/gitlab/node-exporter

root 4564

0.00.0

437688?

s15:44

0:00 svlogd -tt /

var/log/gitlab/postgres-exporter

root 4566

0.00.0

437672?

s15:44

0:00 svlogd -tt /

var/log/gitlab/nginx

root 5709

0.00.0

112812

972 pts/1s

+15:52

0:00 grep --color=auto gitla

4、殺死第乙個程序,會自動將後面的很多程序一起沙雕

[root@kisdfzziwxll~

]# kill -

94540

5、再次檢視gitlab程序,如果殺不乾淨,再重複執行上面的kill -9 pid命令

[root@kisdfzziwxll~

]# ps aux|grep gitlab

root 5726

0.00.0

112812

972 pts/1r

+15:53

0:00 grep --color=auto gitlab

[root@kisdfzziwxll~

]# kill -

95726

-bash: kill:

(5726

)- no such process

6、 殺乾淨後,刪除所有gitlab相關的檔案

[root@kisdfzziwxll~

]# find /

-name gitlab | xargs rm -rf

gitlab解除安裝

在 opt gitlab 中找不到uninstall檔案,無法通過該方法解除安裝gitlab 經過摸索,可通過以下方法徹底解除安裝gitlab sudo gitlab ctl stop sudo gitlab ctl uninstall sudo gitlab ctl cleanse sudo rm...

如何完整解除安裝Mysql

最近這兩天在做專案時不小心把mysql配置檔案弄錯了,服務啟動不起來,最終導致只能重新裝資料庫,但是裝了很多次都失敗,最後在別人部落格中找到了原因,原來是因為解除安裝資料庫時沒有解除安裝乾淨導致的!下面我就把解除安裝mysql資料庫的方法分享給大家!第一步 停止mysql服務 在 我的電腦 管理 服...

Mac 完整解除安裝mysql

cd sudo rm usr local mysql sudo rm rf usr local mysql sudo rm rf library startupitems mysqlcom sudo rm rf library preferencepanes my rm rf library pre...