#使用非web容器安装
#安装完jdk后参考以下步骤
[ebuy@jp_jenkins jenkins]$ pwd
/app/jenkins
[ebuy@jp_jenkins jenkins]$ ll
total 76084
drwxr-xr-x 13 ebuy ebuy     4096 Jun 14 10:37 jenkins_home
-rw-r--r--  1 ebuy ebuy   602576 Jun 14 10:38 jenkins.log
-rwxr-xr-x  1 ebuy ebuy 77289987 May 29 09:49 jenkins.war
-rwxr-xr-x  1 ebuy ebuy      409 Jun 12 10:19 start_jenkins.sh
[ebuy@jp_jenkins jenkins]$ cat start_jenkins.sh
#!/bin/bash
export JAVA_HOME=/usr/local/jdk1.8
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
JENKINS_ROOT=/app/jenkins
export JENKINS_HOME=$JENKINS_ROOT/jenkins_home
cd $JENKINS_ROOT
nohup  java -Dhudson.util.ProcessTree.disable=true -Xms1024m -Xmx1024m -XX:PermSize=512M -XX:PermSize=512M -jar $JENKINS_ROOT/jenkins.war --httpPort=8000 >> jenkins.log &