Archive for the ‘continuous_delivery’ Category

jenkins install with centOS virtualbox

2015/11/23

/// Virtual Box 에서 생성한 Linux Cent OS 에 Jenkins install 하기 …

  1. virtualbox 생성

CentOS 7.1

2. jenkins install
// http://starkapin.tistory.com/529

yum install wget
wget -O /etc/yum.repos.d/jekins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm -import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins // install

3. jenkins setting , execute
service jenkins start/stop/restart  // 실행, 종료, 재시작
chkconfig jenkins on // 부팅시 자동실행

config : /etc/sysconfig/jenkins
home : /var/lib/jenkins ( from config)
logs : /var/log/jenkins

4. port open
// 8080 추가
iptables -A INPUT -p tcp –dport 8080 -j ACCEPT
// iptable flush
iptables -F

5. virtual box port mapping
VirtualBox Manager 실행
target os > 설정 > Network > Port Forwarding
name TCP 127.0.0.1 hostport (8084) , guestport 8080

6. 접속
http://localhost:8084/

Advertisements