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