Jenkins持續集成 之 GitLab安裝
阿新 • • 發佈:2018-12-03
sudo 倉庫 penssh star pac configure 集成 bash Opens 一、安裝相應所需依賴包
yum install lokkit
yum install curl openssh-server openssh-clients postfix cronie -y
service postfix start
chkconfig postfix on
lokkit -s http -s ssh
curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash
二、添加gitlab倉庫並安裝
curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash yum -y install gitlab-ce
三、修改配置文件並啟動
1、vim /etc/gitlab/gitlab.rb
external_url ‘http://gitlab.xxxxx.com‘
2、重新加載配置
gitlab-ctl reconfigure
3、重啟gitlab
gitlab-clt restart
Jenkins持續集成 之 GitLab安裝