阅读量:4
在Ubuntu中配置GitLab可参考以下步骤:
- 更新系统包:
sudo apt update,sudo apt upgrade -y。 - 安装依赖项:
sudo apt install -y curl openssh-server ca-certificates tzdata perl。 - 添加GitLab仓库:用
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash添加。 - 安装GitLab CE:
sudo apt install gitlab-ce。 - 配置GitLab:编辑
/etc/gitlab/gitlab.rb,修改external_url等配置,保存后用sudo gitlab-ctl reconfigure重新配置。 - 启动服务:
sudo gitlab-ctl start,并设置为开机自启动sudo systemctl enable gitlab-runsvdir.service。 - 配置防火墙:若启用了防火墙,用
sudo ufw allow 80/tcp、sudo ufw allow 443/tcp、sudo ufw allow 22/tcp开放相关端口。
以上就是关于“GitLab在Ubuntu中如何配置”的相关介绍,筋斗云是国内较早的云主机应用的服务商,拥有10余年行业经验,提供丰富的云服务器、租用服务器等相关产品服务。云服务器资源弹性伸缩,主机vCPU、内存性能强悍、超高I/O速度、故障秒级恢复;电子化备案,提交快速,专业团队7×24小时服务支持!
简单好用、高性价比云服务器租用链接:https://www.jindouyun.cn/product/cvm