Ubuntu APACHE+TOMCAT+JDK Environment Configuration Guide

Source: Internet
Author: User
Keywords Tomc nbsp; java
Tags aliyun apache apache2 apt apt-get configuration configuration guide environment

1.apt-get Install apache2-* php5-* mysql-*

2.apt-get Install SUN-JAVA6-JDK

&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; # java-version

3.TAR-XZVF apache2-tomcat-*

4.MV apache2-tomcat-*/usr/local/tomcat

5.vi/etc/profile Export java_home=/usr/lib/jvm/java-6-sun-1.6.0.14 export path= $JAVA _home/bin: $JAVA _home/jre/bin:$ PATH: $HOMR bin export classpath= $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib Export tomcat_home=/usr/local/tomcat\

6.source/etc/profile

7./usr/local/tomcat/bin/startup.sh

8.http://ip:8080

9.http://ip

10. Integration Start

Create the Jk2.properties file under the Conf folder in the Tomcat directory and add

Handler.list=channelsocket,request channelsocket.port=8009

Modified httpd.conf, at first it was empty, increased

Server Name

ServerName 127.0.0.1

JK Config

Jkworkersfile/etc/libapache2-mod-jk/workers.properties Jklogfile/var/log/apache2/mod_jk.log JkLogLevel Info Jkmount/*.jsp ajp13_worker jkmount/*/servlet/ajp13_worker jkmount/*.do ajp13_worker

/etc/apache2/sites-available Add a file, the filename is casual. As my ediskmanage, the contents are as follows: <virtualhost *>

ServerAdmin wqy0829@gmail.com
DocumentRoot "/opt//webapps"
ErrorLog "/var/log/apache2/manage_errors.log"
Customlog "/var/log/apache2/manage_accesses.log" common

jkmount/servlet/* Ajp13_worker
#让Apache支持对servlet传送, for Tomcat parsing
Jkmount/*.jsp Ajp13_worker
#让Apache支持对jsp传送, for Tomcat parsing
Jkmount/*.do Ajp13_worker
#让Apache支持对. Do transfer for Tomcat parsing
</VirtualHost>

6. Execute sudo a2ensite filename

7, Sudo/etc/init.d/apache2 Reload

8. Restart Apache and Tomcat

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.