在 Linux 上“启动 GitLab”通常是指 启动 GitLab 服务(Omnibus 安装方式),或者是 GitLab CE/EE 的 systemd 服务。下面按常见情况说明:
sudo gitlab-ctl start
sudo gitlab-ctl stop
sudo gitlab-ctl restart
sudo gitlab-ctl status
GitLab 默认会注册为系统服务:
sudo systemctl enable gitlab-runsvdir
sudo systemctl start gitlab-runsvdir
sudo systemctl start gitlab-runsvdir.service
如果是 Docker 启动:
docker start gitlab
或
docker run --detach \
--hostname gitlab.example.com \
--publish 443:443 --publish 80:80 --publish 22:22 \
--name gitlab \
--restart always \
gitlab/gitlab-ce:latest
如果是刚安装完:
sudo gitlab-ctl reconfigure
然后再:
sudo gitlab-ctl start
浏览器访问:
http://服务器IP
默认管理员:
rootsudo cat /etc/gitlab/initial_root_password
如果你能告诉我:
我可以给你更精确的启动命令。