Software requirement
Start and Shutdown Tomcat Server:
- Operation System (Windows, Mac OS X, Ubuntu)
- JDK. Download from Here and Install
- Apache Tomcat Server
- Jenkins war file. Download Jenkins LTS Release war
Download and Install Apache Tomcat Server on Windows, Mac OS X, Ubuntu
Windows
- Goto http://tomcat.apache.org --> Downloads --> Tomcat 8.0 --> "8.0.{xx}" (where {xx} is the latest upgrade number) --> Binary Distributions --> Core --> "ZIP" package (e.g., "apache-tomcat-8.0.{xx}.zip", about 8 MB).
- Create your project directory, say "d:\myProject" or "c:\myProject". UNZIP the downloaded file into your project directory. Tomcat will be unzipped into directory "d:\myProject\apache-tomcat-8.0.{xx}".
- For ease of use, we shall shorten and rename this directory to "d:\myProject\tomcat".
Mac OS X
- Goto http://tomcat.apache.org --> Download --> Tomcat 8.0 --> "8.0.{xx}" (where {xx} denotes the latest upgrade number) --> Binary distribution --> Core --> "tar.gz" package (e.g., "apache-tomcat-8.0.{xx}.tar.gz", about 8 MB)
- To install Tomcat:
- Goto "~/Downloads", double-click the downloaded tarball (e.g., "apache-tomcat-8.0.{xx}.tar.gz") to expand it into a folder (e.g., "apache-tomcat-8.0.{xx}")
- Move the extracted folder (e.g., "apache-tomcat-8.0.{xx}") to "/Applications".
- For ease of use, we shall shorten and rename this folder to "tomcat".
Configure Tomcat Server
- Open tomcate-users.xml file under "Tomcat_Home\conf\"
- Enable the Tomcat's manager by adding the highlighted lines, inside the <tomcat-users> elements:
<tomcat-users>
<role rolename="manager-gui"/>
<user username="manager" password="xxxx" roles="manager-gui"/>
</tomcat-users>
Copy the jenkins.war to the Tomcat directory.:
Windows
copy jenkins.war and paste to D:\myProject\tomcat\
Ubuntu
sudo cp jenkins.war /var/lib/tomcat/webapps/
Mac OS X
sudo cp jenkins.war /Applications/tomcat/webapps/
Windows
copy jenkins.war and paste to D:\myProject\tomcat\
Ubuntu
sudo cp jenkins.war /var/lib/tomcat/webapps/
Mac OS X
sudo cp jenkins.war /Applications/tomcat/webapps/
Start and Shutdown Tomcat Server:
Windows
1. Navigate to bin folder under tomcat directory by window Command Prompt
Write below command to run tomcat server
startup
Type below command to stop tomcat server
shutdown
Ubuntu and Mac OS X
1. Goto to bin folder under tomcat directory using Terminal
Write below command to run tomcat server
sudo ./startup.sh
Type below command to stop tomcat server
sudo ./shutdown.sh
After starting tomcat server, Open browser and enter url like http://localhost:8080/jenkins_war_filename/ on browser address bar
Example: http://localhost:8080/jenkins/
Ubuntu and Mac OS X
1. Goto to bin folder under tomcat directory using Terminal
Write below command to run tomcat server
sudo ./startup.sh
Type below command to stop tomcat server
sudo ./shutdown.sh
After starting tomcat server, Open browser and enter url like http://localhost:8080/jenkins_war_filename/ on browser address bar
Example: http://localhost:8080/jenkins/
No comments:
Post a Comment