1. 程式人生 > >CentOS7系統下GitLab的安裝

CentOS7系統下GitLab的安裝

tps penssh onf install 密碼 服務 div 登錄 style

1、安裝和配置必須的依賴

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包服務,然後安裝它

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

1 sudo gitlab-ctl reconfigure

啟動完成後,在瀏覽器訪問你機器的IP地址,然後,修改密碼,註冊用戶,最後登錄進去。

搭建的GitLab服務就基本完成了.

參考:https://about.gitlab.com/downloads/#cent

CentOS7系統下GitLab的安裝