因为原有的8080 80端口已经被占用,所以修改了端口为11000 11001
setenforce 0
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
firewall-cmd --permanent --zone=public --add-port=11001/tcp
firewall-cmd --permanent --zone=public --add-port=11000/tcp
firewall-cmd --reload
yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python
systemctl enable postfix && systemctl start postfix
yum -y install wget
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.3.4-ce.0.el7.x86_64.rpm
rpm -ivh gitlab-ce-12.3.4-ce.0.el7.x86_64.rpm
vim /etc/gitlab/gitlab.rb
13 external_url 'http://192.168.88.7:11000'
741 unicorn['port'] = 11001
gitlab-ctl reconfigure
gitlab-ctl restart
登录:IP:11000 登录后提示修改密码 初始登录用户是root