在 Ubuntu 上启动 GitLab,通常取决于你是使用 Omnibus 包安装 还是 Docker 安装。下面分别说明。
如果你是通过官方 .deb 包安装的 GitLab:
sudo gitlab-ctl start
sudo gitlab-ctl stop
sudo gitlab-ctl restart
sudo gitlab-ctl status
sudo systemctl enable gitlab-runsvdir.service
GitLab 本质是通过
systemd+runit管理的。
docker start gitlab
(假设容器名是 gitlab)
docker ps
docker update --restart always gitlab
如果是刚安装完 GitLab,需要先重新配置:
sudo gitlab-ctl reconfigure
然后再启动:
sudo gitlab-ctl start
默认地址(Omnibus):
http://localhost
或服务器 IP:
http://<服务器IP>
首次登录账号:
rootsudo cat /etc/gitlab/initial_root_password
如果你能告诉我:
我可以给你更精确的启动命令。