yum -y install policycoreutils openssh-server openssh-clients postfix
systemctl enable sshd && sudo systemctl start sshd
systemctl enable postfix && systemctl start postfix
cd /opt
安装网址:CentOS7 64位虚拟机安装JDK完整步骤_顶尖高中生的博客-CSDN博客_虚拟机centos7安装jdk
yum install policycoreutils-python -y
rpm -ivh gitlab-ce-12.4.2-ce.0.el6.x86_64.rpm
vim /etc/gitlab/gitlab.rb
修改内容如下:
external_url 'http://主机地址:82'
nginx['listen_port'] = 82
gitlab-ctl reconfigure
gitlab-ctl restart
systemctl stop firewalld