CentOS7下安裝GitLab

三步在CentOS7系統下,完成GitLab的安裝.
1、安裝和配置必須的依賴
[python] view plain copy
1. sudo yum install curl policycoreutils openssh-server openssh-clients
2. sudo systemctl enable sshd
3. sudo systemctl start sshd
4. sudo yum install postfix
5. sudo systemctl enable postfix
6. sudo systemctl start postfix
7. sudo firewall-cmd –permanent –add-service=http
8. sudo systemctl reload firewalld
2、添加GitLab包服務,然後安裝它
[python] view plain copy
1. curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
2. sudo yum install gitlab-ce

3、配置和啓動GitLab
[python] view plain copy
1. sudo gitlab-ctl reconfigure
啓動完成後,在瀏覽器訪問你機器的IP地址,就可以彈出如下的頁面:

然後,修改密碼,註冊用戶,最後登錄進去,彈出如下的歡迎界面:

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