1. Installing Jenkins
- Download jenkins.war from http://jenkins-ci.org/website
- Create a directory named Hudson in the System Administrator directory (for example,/users/admin) and put Hudson. War in this directory, for example,/users/admin/Hudson. War.
- Add the hudson. xml file to the/library/tomcat/CONF/Catalina/localhost/directory. The content of the file is as follows:
<Context Path = "/Hudson" docbase = "/users/admin/Hudson. War" DEBUG = "0">
</Context>
Ii. launchd_wrapper.sh Modification
Export catalina_opts = "-dhudson_home =/users/admin/Hudson-xmx512m"
- Restart Tomcat server
- Use browser to connect to http: // youripaddress: 8080/Hudson/. The following page is displayed, indicating that Hudson is successfully installed.
Notes
Permission denied occurs when you execute./startup. Sh or./shutdown. Sh,
The reason is that the user does not have the permission and thus cannot execute,
Run the command chmod to modify the. Sh permission in the bin directory.
In the Tomcat 6/bin directory
Startup. Sh
Catalina. Sh
Setclasspath. Sh
Execute the three files
$: Chmod A + x *. Sh
The reason may be that when setting environment variables, the path is added to. bashrc.
If you add environment variables to/etc/profile, this result may not appear.
By sschu