Skip navigation.
Home

How to Install Tomcat on Linux?

How to setup Apache Tomcat on Linux? *First you need to install Java. [See How to install Java on linux?|http://www.egjug.org/?q=linux_java] *Download Tomcat **[Download page|http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi] **[Tomcat 5.0.28|http://ftp.wayne.edu/apache/jakarta/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28.tar.gz] *Extract tomcat {{{#tar xvfz jakarta-tomcat-5.0.28.tar.gz}}} *Install Tomcat {{{ #cd jakarta-tomcat-5.0.28 #cd bin #tar xvfz jsvc.tar.gz #cd jsvc-src #chmod +x configure #./configure #make #cp jsvc .. #cd .. }}} *Run Tomcat {{{#./startup.sh}}} open web browser and type http://localhost:8080/ you should see the Tomcat Administration page *Test Tomcat go to webapps/ROOT in the tomcat directory and create page hello.html and write in it {{{ Hello Tomcat}}} open the URL http://localhost:8080/hello.html you should see your page *Make JSP page go to webapps/ROOT in the tomcat directory and create page hello.jsp and write in it the following lines {{{ <%=new String("Hello EGJUG")%>
<%=new java.util.Date()%>
}}} save and run the following URL http://localhost:8080/hello.jsp you should see my Name *Monitor Tomcat you can see the log file in the logs directory ''Note'':- I can see that Tomcat on Linux faster that tomcat in windows at least 3 times in both startup, shutdown and in compiling. Also Jetty 6 as i knew is so fast on linux.

Thank you for the article.

Thank you for the article. I have a couple questions \\ 1. Can tiger run on linux now ? \\ 2. What is the most stable linux that I can install and have it a try on my laptop ? I have ~ 1.GHz 1 GB Ram IBM think-BAD (they call it thinkpad anyway:) ). \\ Regards

Yes

{{{1. Can tiger run on linux now ?}}} Yes!. Download it from sun http://java.sun.com/j2se/1.5.0/download.jsp \\ See the [How to install Java on linux?|http://www.egjug.org/?q=linux_java] article for more details {{{2. What is the most stable linux ... }}} Depending on your laptop model. See [Linux on Laptop|http://www.linux-on-laptops.com/ibm.html] and [TuxMobil|http://tuxmobil.org/ibm.html] \\ Regards, ----- __Michael Ageeb__\\ OpenCraft Software Developer\\ http://www.open-craft.com

yum install tomcat55

yum install tomcat55

As easy as this, brought to you by JPackage.