准备2台虚拟机
192.168.81.252 gitlab节点 4核4G
192.168.81.253 jenkins节点 4核4G
关闭防火墙
systemctl stop firewalld
setenforce
安装gitlab
yum -y install gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
修改gitlab配置文件第13行
vim /etc/gitlab/gitlab.rb
external_url 'http://192.168.81.252'
配置并启动gitlab
gitlab-ctl reconfigure
浏览器访问gitlab
关闭防火墙
systemctl stop firewalld
setenforce 0
安装jenkins
rpm -ivh jenkins-2.222.3-1.1.noarch.rpm
systemctl start jenkins
浏览器访问监听jenkins端口:8080