天天看點

yum 安裝GitLab

使用者名 : root 密碼 :********

1、安裝ssh :yum install -y curl policycoreutils-pythonopenssh-server

yum 安裝GitLab

2、将SSH服務設定成開機自啟動,安裝指令: systemctl enable sshd

yum 安裝GitLab

3、啟動ssh systemctl start sshd

4、添加http服務到firewalld,pemmanent表示永久生效,若不加–permanent系統下次啟動後就會失效。

firewall-cmd --permanent --add-service=http

yum 安裝GitLab

5、重新開機防火牆 systemctl reload firewalld

6、安裝postfix 發送郵件通知 yum install postfix 并設定自動啟動

7、啟動postfix systemctl start postfix

啟動過程中可能 報錯

yum 安裝GitLab

解決方式: 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

yum 安裝GitLab

9、安裝依賴軟體

yum install policycoreutils-python

yum 安裝GitLab

10、安裝gitlab rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

yum 安裝GitLab

11、使gitlab配置檔案生效 gitlab-ctl reconfigure

12、啟動gitlab gitlab-ctl start