前置要求
找到能够联网的机器下载依赖组件:
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 reconfiguregitlab-ctl restart
4.验证
拜访GitLab服务:http://IP:PORT