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