阿里安装说明
https://help.aliyun.com/document_detail/52857.html
配置说明
https://www.cnblogs.com/lza945/p/10435590.html
下载
https://packages.gitlab.com/gitlab/gitlab-ce/

Centos7安装

yum install curl policycoreutils openssh-server openssh-clients postfix  -y
systemctl enable sshd
systemctl start sshd
yum install postfix
systemctl enable postfix
systemctl start postfix

url打开https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-13.2.2-ce.0.el7.x86_64.rpm

curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash


sudo EXTERNAL_URL="121.40.80.108" yum install -y gitlab-ce
sudo EXTERNAL_URL="http://git.jssns.cn/" yum install -y gitlab-ce

修改项内容 /etc/gitlab/gitlab.rb
  external_url 'http://121.40.80.108:9000' 
  unicorn['port'] = 9300  新增一项指定端口  
指定存储目录 git_data_dirs 取消注释设置路径 /data/git-data

配置并启动gitlab

gitlab-ctl reconfigure

gitlab-ctl start
重新启动服务 gitlab-ctl restart

root-lren.2020/topnt.2020
lren-lren.2020

rpm包下载安装
rpm -ivh gitlab-ce-13.2.2-ce.0.el7.x86_64.rpm
gitlab-ctl reconfigure

gitlab-ctl reconfigure

配置并启动gitlab

gitlab-ctl reconfigure

证书报错时处理方法:##########################################################################################
/etc/yum.repos.d/gitlab_gitlab-ce.repo 中关闭
sslverify=0 不验证ssl证书即可

502报错:
主要是因为8080端口被占用
netstat -ntpl查看端口情况
输入 kill -9 1339 杀掉8080端口对应的program
再刷新下页面即可进入到Gitlab页面