[root@localhost gitlab]# gitlab-ctl start
fail: alertmanager: runsv not running
fail: gitaly: runsv not running
fail: gitlab-exporter: runsv not running
fail: gitlab-workhorse: runsv not running
fail: grafana: runsv not running
fail: logrotate: runsv not running
fail: nginx: runsv not running
fail: node-exporter: runsv not running
fail: postgres-exporter: runsv not running
fail: postgresql: runsv not running
fail: prometheus: runsv not running
fail: redis: runsv not running
fail: redis-exporter: runsv not running
fail: sidekiq: runsv not running
fail: unicorn: runsv not running
先执行
sudo systemctl start gitlab-runsvdir
然后在执行
sudo gitlab-ctl restart
然后就大功告成了
[root@localhost gitlab]# sudo gitlab-ctl restart
ok: run: alertmanager: (pid 1939) 0s
ok: run: gitaly: (pid 1947) 0s
ok: run: gitlab-exporter: (pid 1964) 1s
ok: run: gitlab-workhorse: (pid 1966) 0s
ok: run: grafana: (pid 1972) 1s
ok: run: logrotate: (pid 1982) 0s
ok: run: nginx: (pid 1988) 1s
ok: run: node-exporter: (pid 1993) 0s
ok: run: postgres-exporter: (pid 2001) 1s
ok: run: postgresql: (pid 2018) 0s
ok: run: prometheus: (pid 2029) 0s
ok: run: redis: (pid 2036) 0s
ok: run: redis-exporter: (pid 2040) 0s
ok: run: sidekiq: (pid 2046) 1s
ok: run: unicorn: (pid 2054) 0s
gitlab常用命令
修改配置后的初始化
gitlab-ctl reconfigure
启动
sudo gitlab-ctl start
停止
sudo gitlab-ctl stop
重启
sudo gitlab-ctl restart
开机启动
systemctl enable gitlab-runsvdir.service
禁止开机自启动
systemctl disable gitlab-runsvdir.service