CentOS 7.6 GitLab 安装配置教程
以下是在 CentOS 7.6 上安装 GitLab 的步骤:
- 安装依赖软件包
sudo yum install curl policycoreutils-python openssh-server openssh-clients postfix
- 启动并设置 SSH 服务
sudo systemctl enable sshd
sudo systemctl start sshd
- 启动并设置 Postfix 服务
sudo systemctl enable postfix
sudo systemctl start postfix
- 添加 GitLab 源
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
- 安装 GitLab
sudo yum install gitlab-ce
- 配置 GitLab
编辑 GitLab 配置文件:
sudo vi /etc/gitlab/gitlab.rb
找到并修改以下配置项:
external_url 'http://your-gitlab-domain.com'
保存并退出。
- 重新配置 GitLab
sudo gitlab-ctl reconfigure
- 访问 GitLab
在浏览器中访问配置的 GitLab 地址,进行管理员账号的创建和设置。
至此,GitLab 已经安装和配置完成。
原文地址: https://www.cveoy.top/t/topic/mmyE 著作权归作者所有。请勿转载和采集!