yum -y install policycoreutils openssh-server openssh-clients postfix
systemctl enable sshd && sudo systemctl start sshd
systemctl enable postfix && systemctl start postfix
firewall-cmd --add-service=ssh --permanent firewall-cmd --add-service=http--permanent firewall-cmd --reload
如果关闭防火墙就不需要做以上配置
gitalb镜像下载链接
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el8/gitlab-ce-14.6.2-ce.0.el8.x86_64.rpm
rpm -i gitlab-ce-10.2.7-ce.0.el7.x86_64.rpm
vim /etc/gitlab/gitlab.rb
external url ‘http://ip:82’
nginx[‘listen_port’] = 82
gitlab-ctl reconfigure gitlab-ctl restart
cat /etc/gitlab/initial_root_password
https://docs.gitlab.com/ee/security/reset_user_password.html