离线安装GItLab

前置要求

找到可以联网的机器下载依赖组件:

yum -y install policycoreutils-python --downloadonly --downloaddir /home/gitlab/
#打包下载好的依赖组件,上传到需要安装的服务器中,然后执行如下命令安装依赖组件
rpm -Uvh *.rpm --nodeps --force

下载GitLab离线安装包:https://packages.gitlab.com/g...

1.开始安装

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

2.编辑GitLab配置文件

vi /etc/gitlab/gitlab.rb

修改如下内容,指定IP和端口,端口自己随意写一个但是不要和服务器中的其他服务冲突即可。

external_url 'http://IP:PORT'

3.重置配置文件并启动GitLab

gitlab-ctl reconfigure
gitlab-ctl restart

4.验证

访问GitLab服务:http://IP:PORT

你可能感兴趣的:(离线安装GItLab)