1.安装centos7.9虚拟机系统,设置网络模式为仅主机,配置固定IP地址,确保系统只能在局域网访问,无法访问外网。
2.使用ssh连接服务器,上传gitlab-ce安装包。这里选择使用gitlab-ce15.11.13版本,无安全漏洞。前置操作关闭操作系统防火墙,关闭selinux等操作忽略。
gitlab-ce多版本下载链接: https://pan.baidu.com/s/1FymwmEMKafURfS_UedZlkQ?pwd=rn4z 提取码: rn4z
3.使用yum命令安装。
[root@localhost ~]# yum install gitlab-ce-15.11.13-ce.0.el7.x86_64.rpm
安装过程如下。因为无法连接,yum员检测需要较慢,耐心等待。安装过程也需要时间。安装完成后显示gitlab图标,说明安装完成。
[root@localhost ~]# yum install gitlab-ce-15.11.13-ce.0.el7.x86_64.rpm
Loaded plugins: fastestmirror, langpacks
Examining gitlab-ce-15.11.13-ce.0.el7.x86_64.rpm: gitlab-ce-15.11.13-ce.0.el7.x86_64
Marking gitlab-ce-15.11.13-ce.0.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package gitlab-ce.x86_64 0:15.11.13-ce.0.el7 will be installed
--> Finished Dependency Resolution
http://mirrors.aliyun.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.aliyun.com; Unknown error"
Trying other mirror.
http://mirrors.aliyun.com/centos/7/extras/x86_64/repodata/repomd.xml: [E