问题描述
sudo gitlab-ctl restart ,报错如下 :
summergao@ubuntu:/etc/gitlab$ sudo 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: puma: runsv not running
fail: redis: runsv not running
fail: redis-exporter: runsv not running
fail: sidekiq: runsv not running
解决办法
sudo systemctl start gitlab-runsvdir
sudo gitlab-ctl restart
常用命令
sudo gitlab-ctl status # 查看服务;
sudo gitlab-ctl start # 启动;
sudo gitlab-ctl stop # 停止;
sudo gitlab-ctl restart # 重启;
sudo gitlab-ctl reconfigure # 启动配置;
sudo gitlab-ctl tail # 查看日志;