Apache Tomcat is an open-source implementation of Java servlet engine and a J2EE container. It is one of the most popular applications in today's enterprise data centers, and there are many enterprise web applications powered by Apache Tomcat.
To install Apache Tomcat on Ubuntu or Debian, follow the steps here.
Apache Tomcat requires Java Development Kit (JDK). Thus, first install JDK on your Linux system.
Next, download Apache Tomcat (apache-tomcat-<version>.tar.gz) from its official website.
After downloading Tomcat, extract it in the /opt destination folder as follows.
Change the Tomcat conf files world-readable.
Define CATALINA_HOME environment variable in your .bashrc file.
Reload .bashrc file as follows.
Now enable Tomcat by running the following startup script.
At this point, you should be able to access Tomcat by going to http://<ip-address-of-linux>:8080 on your web browser. If everything is okay, you should see the following web page.
Subscribe to Ask Xmodulo
Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.