Friday 13 March 2015

Installing Apache Tomcat on a Linux machine

Via the link below download the tar.gz file to the "/usr/local" folder of the server to which apache-tomcat has to be installed:


Step 1: Download the tar.gz file
----
wget   https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.tar.gz
---

Step 2: Untar the file using
------
tar -xvjf  apache-tomcat-7.0.57.tar.gz
------

Step 3:Navigate to folder "/usr/local/apache-tomcat-7.0.57/bin/" and start apache using the following script:
-----
sh startup.sh
-----

In case of any error you can view it via the log file:
-----
/usr/local/apache-tomcat-7.0.57/logs/catalina.out
-----

The main configuration file of apache-tomcat is,
------
/usr/local/apache-tomcat-7.0.57/conf/server.xml
------

you can change connect port via the file above.

Kool :)

No comments:

Post a Comment

Note: only a member of this blog may post a comment.