1、ssh安裝與配置
sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
2、防火牆安裝與配置(已安裝跳過)
sudo yum install firewalld systemd -y //安裝
sudo service firewalld start //開啓防火牆
sudo firewall-cmd --permanent --add-service=http //添加http服務到firewalld,pemmanent表示永久生效
sudo systemctl reload firewalld //重啓防火牆
3、安裝Postfix用以發送通知郵件
sudo yum install postfix
sudo systemctl enable postfix //設置開機自啓動
sudo systemctl start postfix //啓動postfix
4、安裝gitlab
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce-12.0.3-ce.0.el7.x86_64 //安裝
gitlab-ctl reconfigure //初始化
gitlab-ctl start //啓動
安裝中遇到的問題見文檔:https://blog.csdn.net/weixin_35242653/article/details/96283119