关于gitlab:离线安装GItLab

31次阅读

共计 447 个字符,预计需要花费 2 分钟才能阅读完成。

前置要求

找到能够联网的机器下载依赖组件:

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

正文完
 0