首页 > 版本管理 > git > CentOS7下如何安装gitlab
2017
03-09

CentOS7下如何安装gitlab

1. 安装配置依赖包

yum install curl policycoreutils openssh-server openssh-clients
systemctl enable sshd
systemctl start sshd
yum install postfix
systemctl enable postfix
systemctl start postfix

如果开启firewalld防火墙,需要添加如下策略:

firewall-cmd --permanent --add-service=http
systemctl reload firewalld

2. 添加GitLab的yum源并且安装GitLab软件

方法1

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
yum install gitlab-ce

方法2

wget --no-check-certificate "https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh"
bash script.rpm.sh
yum install gitlab-ce

方法3

curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-XXX.rpm/download
rpm -i gitlab-ce-XXX.rpm

当前版本下载网址

wget --no-check-certificate "https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-8.15.4-ce.1.el7.x86_64.rpm/download"
wget --no-check-certificate "https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/6/gitlab-ce-8.15.4-ce.1.el6.x86_64.rpm/download"

3. 配置并启动GitLab

gitlab-ctl reconfigure

4. 打开浏览器登录GitLab。

最后编辑:
作者:劳福喜博客
这个作者貌似有点懒,什么都没有留下。

留下一个回复