1. 安装并配置必要的依赖关系
sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld
2.如想使用Postfix来发送邮件,在安装期间请选择’Internet Site’. 您也可以用sendmai或者 配置SMTP服务 并 使用SMTP发送邮件.
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
3.添加GitLab仓库,并安装到服务器上(可能安装比较慢,使用国内镜像)
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
sudo yum install -y gitlab-ce
4.启动GitLab
sudo gitlab-ctl reconfigure
5.日常管理
gitlab-ctl start|stop|status|restart
gitlab-ctl status
6.配置 gitlab URL
7.设置密码
8.登录,默认 root
安装向导
https://www.gitlab.com.cn/installation/#centos-7
清华大学开源软件镜像站
https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/
官方仓库
https://packages.gitlab.com/gitlab/gitlab-ce
教程:
https://blog.xiodi.cn/category/devops/gitlab/
https://blog.xiodi.cn/2018/07/02/429/
http://www.21yunwei.com/archives/4351
https://yq.aliyun.com/articles/74395#