1. 程式人生 > >關於Centos 7下安裝gitlab服務

關於Centos 7下安裝gitlab服務

gitlab
1.安裝依賴包

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

2.安裝gitlab-ce

curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce

3.配置並啟動 GitLab

sudo gitlab-ctl reconfigure