Tweak sysctl parameters to prevent DDOS and SYN flood attacksRead More
Saturday, June 30, 2012 9:31:32 PM Asia/Calcutta
Thursday, June 28, 2012 1:31:31 AM Asia/Calcutta
What is a DDOS attack and how to mitigate itRead More
Thursday, June 28, 2012 1:20:38 AM Asia/Calcutta
How to calculate Apache MaxClients valueRead More
Thursday, June 28, 2012 1:02:33 AM Asia/Calcutta
How to configure Apache for maximum performanceRead More
Sunday, May 6, 2012 1:56:51 AM Asia/Calcutta
How to boot Linux server in new kernel once for testingRead More
Saturday, May 5, 2012 6:06:16 PM Asia/Calcutta
SPF and Domainkeys in cPanelRead More
Saturday, May 5, 2012 4:27:18 PM Asia/Calcutta
Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems, and provides a "pureJava" HTTP web server environment for Java code to run.
Experienced users can build and install Tomcat manually from source code after installing such dependencies as the Java Development Kit and the Apache Ant build tool. Depending on the usage scenario, Tomcat may either be deployed as a standalone pure-Java web server or as a component in a more complex configuration in which it serves as a back-end which handles requests passed to it from a general purpose web server such as Apache, using a connector such as mod_jk.
- Reduced garbage collection, improved performance and scalability
- Faster JSP parsing
- Native Windows and Unix wrappers for platform integration
- Implements the Servlet 2.4 and JSP 2.0 specification
There are a number of different methods to start and stop Tomcat 3.3.
There are differences in the environmental setup needed for these methods. This section addresses the environmental setup needed for using the shell scripts and batch files provided to simplify starting and stopping Tomcat.
JAVA_HOME=/usr/local/java/jdk1.4.x; export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH; export PATH
Download it from http://tomcat.apache.org/download-55.cgi
Tomcat 5.5 version requires jdk 1.4 minimum.
# cd jakarta-tomcat-version
# cd bin #tar xvfz jsvc.tar.gz
# cd jsvc-src
# chmod +x configure
# cp jsvc ..
# cd ..
Run Tomcat using the below command:
Open web browser and type http://localhost:8080/ you should see the Tomcat Administration page
Go to webapps/ROOT in the tomcat directory and create page hello.html and write in it. 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 WebHostingRepo")%>
Save and run the following URL http://localhost:8080/hello.jsp
and you should be seeing "Hello WebHostingRepo".
go to the tomcat bin directory