How To Install Tomcat 7.0.56 Server on CentOS & RHEL 6/5

Spread the love

Check Java version using command

# java -version

java version “1.8.0”
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)

Then , Download tomacat using command

# cd /tmp
# wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.56/bin/apache-tomcat-7.0.56.tar.gz

Untar and move as per your requirement directory

# tar xzf apache-tomcat-7.0.56.tar.gz
# mv apache-tomcat-7.0.56 /usr/local/tomcat7

After this go into folder and run startup.sh file.

# cd /usr/local/tomcat7
# ./bin/startup.sh

[Sample Output]

Using CATALINA_BASE:   /usr/local/tomcat7
Using CATALINA_HOME:   /usr/local/tomcat7
Using CATALINA_TMPDIR: /usr/local/tomcat7/temp
Using JRE_HOME:        /opt/jdk1.8.0_05/jre
Using CLASSPATH:       /usr/local/tomcat7/bin/bootstrap.jar:/usr/local/tomcat7/bin/tomcat-juli.jar
Tomcat started.

Check by

http://localhost:8080

Leave a Reply

Your email address will not be published. Required fields are marked *