Ubuntu 11.10 Installation Apache2 Tomcat6

Source: Internet
Author: User

Ubuntu 11.10 Installation Apache2 Tomcat6
Guide Tomcat is a core project of the Apache Software Foundation (Apache Software Foundation) Jakarta Project, developed by Apache, Sun, and other companies and individuals. With Sun's involvement and support, the latest servlet and JSP specifications are always reflected in Tomcat, and Tomcat 5 supports the latest servlet 2.4 and JSP 2.0 specifications. Because of the advanced Tomcat technology, stable performance, and free, so deeply loved by Java enthusiasts and have been recognized by some software developers, become the most popular Web application server.
First, install the apache2
1. sudo apt-get install apache2

Start two agent modules:

1. sudo a2enmod proxy_ajp2. sudo a2enmod proxy
Second, installation Tomcat6
1. sudo apt-get install Tomcat6
third, installation sun-java6-jdk
1. sudo apt-get install Python-software-properties2. sudo add-apt-repository ppa:ferramroberto/java3. sudo apt-get update4. sudo apt-get install SUN-JAVA6-JDK
Iv.. Integrated configuration

1. Open/etc/apache2/sites-enabled/000-default, add:

1. Proxypass/ajp://127.0.0.1:8009/2. proxypassreverse/ajp://127.0.0.1:8009/

2. Open/etc/tomcat6/server.xml, find:

Add the following:

3. Setting Environment variables

1. java_home=/usr/lib/jvm/java-6-sun2. sudo echo "Java_home=/usr/lib/jvm/java-6-sun" >>/etc/environment3. /etc/environment

4. Add Tomcat AJP Support
Find the following sentence in/etc/tomcat6/server.xml and delete the comment.

Test

You can download the JSP probe test:
Https://www.centos.bz/wp-content/uploads/2012/11/p.jsp.zip

Free to provide the latest Linux technology tutorials Books, for open-source technology enthusiasts to do more and better: http://www.linuxprobe.com/

Ubuntu 11.10 Installation Apache2 Tomcat6

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.