1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| sudo yum install -y curl policycoreutils-python openssh-server sudo systemctl enable sshd sudo systemctl start sshd sudo firewall-cmd --permanent --add-service=http sudo firewall-cmd --permanent --add-service=httpsudo systemctl reload firewalld sudo systemctl reload firewalld
安装Postfix以发送通知电子邮件 sudo yum install postfix sudo systemctl enable postfix sudo systemctl start postfix
安装gitbla wget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.5.1-ce.0.el7.x86_64.rpm rpm -i gitlab-ce-11.5.1-ce.0.el7.x86_64.rpm
gitlab-ctl reconfigure
vi /etc/gitlab/gitlab.rb unicorn['port'] = 80
gitlab-ctl reconfigure gitlab-ctl restart
|