Redhat6.1 + apache + tomcat Installation Guide-use jsp (transfer)

Source: Internet
Author: User
Tags tomcat server
Redhat6.1 + apache + tomcat installation guide
Download instructions:
Get jdk1_2_2-linux-i386.tar.gz in java.sun.com.
In http://java.apache.org/builds/
In begin,
In http://java.apache.org/jserv/dist/ApacheJServ-1.1-2_RH6x.i386.rpm
1. Install jdk1.2.2
# Cp jdk1_2_2-linux-i386.tar.gz/usr/local
# Tar xvzf jdk1_2_2-linux-i386.tar.gz
# Ln-s jdk1.2.2 jdk
# Ln-s jdk/jre
Set $ JAVA_HOME, $ CLASSPATH
# Vi/etc/profile
Join:
JAVA_HOME =/usr/local/jdk
Export JAVA_HOME
CLASSPATH =/usr/local/jdk/lib:/usr/local/jre/lib
Export CLASSPATH
PATH = $ PAHT:/usr/local/jdk/bin:/usr/local/jre/bin
2. Install tomcat
# Cp jakarta-tomcat.tar.gz/usr/local
# Tar xvzf jakarta-tomcat.tar.gz
# Cd/usr/local/jakarta-tomcat/bin
Run tomcat server
#./Startup. sh start (use./shutdown. sh stop to end the tomcat server)
# Lynx http: /localhost: 8080/
If you can run its example program, the tomcat server is successfully installed.
3. Install jserv
# Rmp-ivh ApacheJServ-1.1-2_RH6x.i386.rpm
4. Connect to apache
Add httpd. conf
Include/your/apache/conf/path/httpd/tomcat-apache.conf
(This file is generated when you run tomcat for the first time)
Comment out
<IfModule mod_jserv.c>
Include/etc/httpd/conf/jserv. conf
</IfModule>
These rows
5. Test
Restart your apache and then run the tomcat server
# Lynx http: // localhost/examples/
If you see the jsp and servlet directories, you will succeed.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.