Gitlab安裝

entOS7安裝gitlab測試,參考地址https://about.gitlab.com/installation/#centos-7

安裝依賴

sudo yum install -y curl policycoreutils openssh-server openssh-clients
sudo yum install firewalld
sudo systemctl start firewalld
sudo systemctl enable sshd 
sudo systemctl start sshd 
sudo firewall-cmd --permanent --add-service=http 
sudo systemctl reload firewalld 

安裝郵箱服務

sudo yum install postfix 
sudo systemctl enable postfix 
sudo systemctl start postfix 

獲取並安裝

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash 
sudo yum install -y gitlab-ce 

也可以先上傳rpm安裝包並進行安裝

rpm -i ****.rpm

配置並啓動

vi /etc/gitlab/gitlab.rb

根據個人需要修改配置

sudo gitlab-ctl reconfigure

附:docker下安裝gitlab

yum install docker
docker pull gitlab/gitlab-ce
docker run -d -P --name gitlab --restart always gitlab/gitlab-ce gitlab/gitlab-ce
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章