Jenkins is easy to build. There are many tutorials on the Internet. I downloaded the war package and put it under tomcat.
Configuration environment: centos 5.1 jdk1.6.2 Tomcat 7.0.55
========================================================== ====================
Because Jenkins stores files in the. Jenkins folder in the user's home directory by default, for example, Linux Root User:/root/. Jenkins
There are three ways to modify it: (1) modify the Catalina. Sh file of Tomcat, (2) modify the Web. xml configuration file of Jenkins. War,
I use the following method:
Log on to the root user and edit the profile file: VI/etc/profile. Add: Export jenkins_home =/usr/Jenkins to the file and save the file. Finally, run: Source/etc/profile to make the configuration take effect.
After modification, restart tomcat or Jenkins!
========================================================== ====================
This is my environment variable configurationVI/etc/profile
Export java_home =/usr/Java/jdk1.6.0 _ 21
Export java_bin =/usr/Java/jdk1.6.0 _ 21/bin
Export svnpath =/usr/local/SVN
Export Path = $ path: $ java_home/bin: $ java_home/JRE/bin: $ svnpath/bin
Export classpath =.: $ java_home/lib: $ java_home/JRE/lib
Export jre_home = $ java_home/JRE
Export jenkins_home =/usr/Jenkins
Export java_home java_bin path classpath jre_home jenkins_home svnpath
[Jenkins] Step 2: Modify the default directory