yum 安裝GitLab


用戶名 : 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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章