Ubuntu 上启动 GitLab 服务的详细步骤
以下是 Ubuntu 操作系统上启动 GitLab 服务的步骤:
-
安装必要的依赖项:sudo apt-get update && sudo apt-get install -y curl openssh-server ca-certificates
-
添加 GitLab 包仓库:curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
-
安装 GitLab:sudo apt-get install gitlab-ce
-
启动 GitLab 服务:sudo gitlab-ctl start
-
等待 GitLab 启动完成,使用浏览器访问 GitLab 网址:http://localhost:8888 (默认端口为 8888)
-
输入管理员用户名和密码,完成 GitLab 的初始化配置。
注意:启动 GitLab 服务可能需要一些时间,取决于系统性能。在启动过程中,您可以通过 sudo gitlab-ctl tail 命令查看日志信息。
原文地址: https://www.cveoy.top/t/topic/mmNF 著作权归作者所有。请勿转载和采集!