CentOS 7.3 离线安装GitLab

CentOS 7.3 离线安装GitLab

本文是基于CentOS 7.3系统环境,安装和测试GitLab:

  • CentOS 7.3
  • gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

一、安装前的准备工作

1. 下载依赖包

  • audit-libs-python-2.6.5-3.el7.x86_64.rpm
  • checkpolicy-2.5-4.el7.x86_64.rpm
  • libcgroup-0.41-11.el7.x86_64.rpm
  • libsemanage-python-2.5-4.el7.x86_64.rpm
  • python-IPy-0.75-6.el7.noarch.rpm
  • setools-libs-3.3.8-1.1.el7.x86_64.rpm
  • policycoreutils-python-2.5-8.el7.x86_64.rpm

2. 安装依赖包

rpm -ivh audit-libs-python-2.6.5-3.el7.x86_64.rpm
rpm -ivh checkpolicy-2.5-4.el7.x86_64.rpm
rpm -ivh libcgroup-0.41-11.el7.x86_64.rpm
rpm -ivh libsemanage-python-2.5-4.el7.x86_64.rpm
rpm -ivh python-IPy-0.75-6.el7.noarch.rpm
rpm -ivh setools-libs-3.3.8-1.1.el7.x86_64.rpm
rpm -ivh policycoreutils-python-2.5-8.el7.x86_64.rpm

3. 安装gitlab-ce

rpm -ivh gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

4. 修改gitlab配置文件

vi /etc/gitlab/gitlab.rb

#修改如下的内容
external_url 'http://192.168.0.129'

5. 关闭防火墙

systemctl stop firewalld

6. 重启gitlab服务

gitlab-ctl reconfigure
gitlab-ctl restart

7. 访问gitlab

打开浏览器,访问 http://192.168.0.129


你可能感兴趣的:(CentOS,Git)