1、添加gitlab镜像

# --no-check-certificate (以不安全的方式下载)
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm --no-check-certificate

image-1679964194514

2、安装gitlab 安装命令

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

image-1679964325119

3、修改gitlab配置文件指定服务器ip和自定义端口

把external_url的值换成http://192.168.29.141,端口号可以自己指定,这里默认80
vim  /etc/gitlab/gitlab.rb

image-1679964384873

4、重置GitLab

gitlab-ctl reconfigure

此命令执行时间会稍微长一点,耐心等待!!!
image-1679964521902

5、启动GitLab

gitlab-ctl   restart

image-1679964559456

6、访问 GitLab页面

输入服务器ip和指定端口进行访问(http://192.168.29.141)
设置密码
image-1679964593771
设置完密码后,使用root账户进行登录
image-1679964763881

Q.E.D.