Jenkins can provide continuous integration services, and its operating environment (runtime) requires Tomcat and JDK
To make Jenkins start the service with Tomcat, and Tomcat needs JDK environment
For detailed configuration, see:
http://www.cnblogs.com/frankielf0921/p/5398334.html
1 2 | Before that, remember to turn off the firewall to avoid inaccessibility on the web page! ! ! |
---|
I am the dividing line
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | Jenkins configuration official website address: https://jenkins.io/download/ Select the required version to download [root@localhost ~]# cd /usr/local/src [root@localhost src]# rz /* If the download is rpm */ [root@localhost src]# rpm -ivh jenkins-2.7.4-1.1.noarch.rpm #Query the path where the downloaded package files are stored [root@localhost src]# rpm -ql jenkins-2.7.4-1.1 .noarch.rpm #Put Java into Jenkins configuration file[root@frankie ~]# vi /etc/init.d/jenkins //Find /etc/alternatives/java /usr/lib/jvm/java-1.6.0 /bin/java /usr/lib/jvm/jre-1.6.0/bin/java /usr/lib/jvm/java-1.7.0/bin/java /usr/lib/jvm/jre-1.7.0/bin /java /usr/lib/jvm/java-1.8.0/bin/java /usr/lib/jvm/jre-1.8.0/bin/java /usr/bin/java /usr/local/jdk1.8/bin /java <-- Add your own configured Java path#Start Jenkins [root@frankie ~]# /etc/init.d/jenkins start #Enter tomcat's webapps path to see if Jenkins already has Jenkins [root@frankie ~]# cd /usr/local/tomcat/webapps/ #If not, just link [root@frankie ~]# ln -s /usr/lib/jenkins/jenkins.war jenkins.war # Then use Tomcat to start Jenkins, it will Automatically generate files [root@frankie ~]# curl -I localhost:8080/jenkins |
---|
I am the dividing line
( adsbygoogle = window.adsbygoogle || []).push({});
Recommended Posts