查看8080端口,发现一直被gitlab占用
fuser -v -n tcp 8080
用户 进程号 权限 命令
8080/tcp: git 1209 F.... bundle
git 3015 F.... bundle
git 3018 F.... bundle
git 3021 F.... bundle
git 3024 F.... bundle
git 3027 F.... bundle
杀掉进程
kill -s 9 1209
发现一会儿gitlab会重新启动,原因时gitlab有进程守护
使用方法
sudo gitlab-ctl stop
ok: down: gitaly: 1s, normally up
ok: down: gitlab-monitor: 0s, normally up
ok: down: gitlab-workhorse: 0s, normally up
ok: down: logrotate: 1s, normally up
ok: down: nginx: 429s, normally up
ok: down: node-exporter: 0s, normally up
ok: down: postgres-exporter: 1s, normally up
ok: down: postgresql: 0s, normally up
ok: down: prometheus: 1s, normally up
ok: down: redis: 0s, normally up
ok: down: redis-exporter: 0s, normally up
ok: down: sidekiq: 0s, normally up
ok: down: unicorn: 1s, normally up
成功关闭,不再重启
网友评论