CentOS 7 安装GitLab
1.安装所需依赖
yum install -y curl policycoreutils-python openssh-server postfix
2.安装Postfix(用来发送通知电子邮件)
yum install postfix
systemctl enable postfix
systemctl start postfix
3.下载gitLab
最新企业版:https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh
最新社区版: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.10.8-ce.0.el7.x86_64.rpm
4.安装GitLab
rpm -i gitlab-ce-11.10.8-ce.0.el7.x86_64.rpm
5.修改GitLab端口号、存储仓库修改为自定义路径
vim /etc/gitlab/gitlab.rb