is an open source web server for Java application of Apache Foundation like Apache HTTP server. It used for deploying Java Servlet and JSP applications. To deploy any application in Tomcat we can simply create a war file and deploy them. For more details about you can visit apache official site http://tomcat.apache.org/ .
Check Java Version
JAVA is the first requirement for Tomcat 7 installation. Make sure you have installed in your system. Use the following command to check if you have java installed already on your system.
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/
· unzip the transferred file apache-tomcat-7.0.62.zip
and then you will have a new folder
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 startup.sh to start the tomcat
If you are getting permission denied while executing sh file then you need to change the permission to sh file as executable.
· now, let’s try to start.
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.
Finally we need to create user accounts to secure and access admin/manager pages. Edit file in your editor and paste inside <tomcat-users> </tomcat-users> tags.