用戶名 : root 密碼 :********
1、安裝ssh :yum install -y curl policycoreutils-pythonopenssh-server
2、將SSH服務設置成開機自啓動,安裝命令: systemctl enable sshd
3、啓動ssh systemctl start sshd
4、添加http服務到firewalld,pemmanent表示永久生效,若不加–permanent系統下次啓動後就會失效。
firewall-cmd --permanent --add-service=http
5、重啓防火牆 systemctl reload firewalld
6、安裝postfix 發送郵件通知 yum install postfix 並設置自動啓動
7、啓動postfix systemctl start postfix
啓動過程中可能 報錯
解決方式: vim /etc/postfix/main.cf
然後重複步驟4,5 然後在啓動
8、下載gitlab wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
9、安裝依賴軟件
yum install policycoreutils-python
10、安裝gitlab rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
11、使gitlab配置文件生效 gitlab-ctl reconfigure
12、啓動gitlab gitlab-ctl start