CentOS7下安裝GitLab
阿新 • • 發佈:2019-02-10
三步在CentOS7系統下,完成GitLab的安裝.
1、安裝和配置必須的依賴
2、新增GitLab包服務,然後安裝它sudo yum install curl policycoreutils openssh-server openssh-clients sudo systemctl enable sshd sudo systemctl start sshd sudo yum install postfix sudo systemctl enable postfix sudo systemctl start postfix sudo firewall-cmd --permanent --add-service=http sudo systemctl reload firewalld
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce
3、配置和啟動GitLab
sudo gitlab-ctl reconfigure
啟動完成後,在瀏覽器訪問你機器的IP地址,就可以彈出如下的頁面:
然後,修改密碼,註冊使用者,最後登入進去,彈出如下的歡迎介面:
至此,本地搭建的GitLab服務就基本完成了.
參考:https://about.gitlab.com/downloads/#centos7