Shares 25

Download & Install Tomcat 7 on Linux Environment

Tomcat installation is one of the easiest installation I have come across. However, if you don’t know then don’t worry. You will learn how to install Tomcat 7 and get up and running in just 5 minutes.

In this article, I will explain how to download, install and ensure it’s up & running.

  • Download the latest Tomcat7 version 7.0.62 from below link

  • Transfer the downloaded zip file to your server where you wish to install tomcat. In this example – I have transferred to /opt/
[[email protected] opt]# ls -ltr
-rw-r--r--. 1 root root 9401043 Jun 17 20:05
[[email protected] opt]#
  • unzip the transferred file

and then you will have a new folder

[[email protected] opt]# ls -ltr
drwxr-xr-x. 9 root root   4096 May 7 20:17 apache-tomcat-7.0.62
-rw-r--r--. 1 root root 9401043 Jun 17 20:05
[[email protected] opt]#

You may rename apache-tomcat-7.0.62 to tomcat but it’s entirely on you. This concluded tomcat installation is done and now will start to ensure installation is successful.

  • Go to apache-tomcat-7.0.62/bin folder
  • Execute to start the tomcat
[[email protected] bin]# ./
-bash: ./ Permission denied
[[email protected] bin]#

If you are getting permission denied while executing sh file then you need to change the permission to sh file as executable.

chmod 755 *.sh
  • now, let’s try to start.
[[email protected] bin]# ./
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.62
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.62
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.62/temp
Using JRE_HOME:       /
Using CLASSPATH:       /opt/apache-tomcat-7.0.62/bin/bootstrap.jar:/opt/apache-tomcat-7.0.62/bin/tomcat-juli.jar
Tomcat started.
[[email protected] bin]#

as you can see Tomcat is started. By default, tomcat listens on 8080 port so you may wish to access tomcat by http://servername:8080 and you will have a welcome page like below.


Well done, now it’s time to secure tomcat.

Shares 25

Reader Interactions


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