Environment Preparation:
The tomcat flow is used by the deployment of Jenkins, so Tomcat support is required, while TOMACAT requires support from the Java environment
1. Installing the Java Environment
2. Install Tomcat
3. Put the Jenkins.jar bag under the WebApps of Tomcat.
The installation of Java environment is not repeating, mainly configuration environment, here only to say a few of my installation process encountered some wonderful problems.
Problem 1:java Unzip the directory, directory can not randomly, I was myself in a file built a USR directory to put Java, and then finally the result is Tomcat boot when the configuration of the Java environment variable is not found, but check the Java environment variable settings are not a problem.
WORKAROUND: Move the Java directory to the/USR directory of the system
Problem 2:tomcat The decompression directory, this uncertainty can not be arbitrarily placed, because of the problem of meeting Java, so I began to extract tomcat into the system's/usr directory
Issue 3: After booting tomcat, Curl http://localhost:8080 on the cloud server can access it, but I can't access it while my home computer accesses http://115.159.43.181:8080/.
Workaround: This needs to be added to the cloud server's settings to add a security group to be accessed, specifically configured as
Deploying Jenkins on Ubuntu Cloud services