本次使用rpm的方式安装
1.下载地址 https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.3.5-ce.0.el7.x86_64.rpm
2.通过FTP工具将包上传至服务器
3.或者使用wget下载
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.3.5-ce.0.el7.x86_64.rpm
3.安装命令
rpm -i gitlab-ce-12.3.5-ce.0.el7.x86_64.rpm
4.修改gitlab配置文件指定服务器ip和自定义端口
vim /etc/gitlab/gitlab.rb
5.重置gitlab
gitlab-ctl reconfigure
6.gitlab启动
gitlab-ctl start