标签:style blog http io ar color os sp java
1 $ java -version 2 java version "1.6.0_22" 3 OpenJDK Runtime Environment (IcedTea6 1.10.4) (rhel-1.41.1.10.4.el6-x86_64) 4 OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
如果没有安装:yum install java-1.7.0-openjdk* -y
1 $ mkdir -p jenkins/jenkins_home 2 $ mkdir -p jenkins/jenkins_node 3 $ cd jenkins 4 $ wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war 5 $ tar -zvxf jenkins.war
实现启动脚本:
1 $ vim start_jenkins.sh 2 start_jenkins.sh 3 #!/bin/bash 4 JENKINS_ROOT=/home/AAA/jenkins 5 export JENKINS_HOME=$JENKINS_ROOT/jenkins_home 6 java -jar $JENKINS_ROOT/jenkins.war --httpPort=8000 7 $ chmod a+x start_jenkins.sh 8 $ nohup ./start_jenkins.sh > jenkins.log 2>&1 &
在浏览器中输入http://192.168.0.1:8000 进行Project配置等即可。
标签:style blog http io ar color os sp java
原文地址:http://www.cnblogs.com/libaoting/p/4108658.html