apache2.2.12+tomcat6.0.20整合详解
?
apache2.2.12+tomcat6.0.202009.09.24整合完整详解版
Apache2.2.12+tomcat-6.0.20+jdk-6u16-linux+tomcat-connectors-1.2.27
cp/myweb /jdk-6u16-linux-i586-rpm.bin /usr/local
?cd /usr/local
?chmod 755 jdk-6u16-linux-i586-rpm.bin
?./jdk-6u16-linux-i586-rpm.bin
?中间输入一次yes 点击一次enter
安装成功。 可以看到/usr/java/jdk1.6.0_16的目录
cd/usr/local
tar xvfz /myweb/apache-tomcat-6.0.20.tar.gz
mvapache-tomcat-6.0.20 tomcat6.0.20
启动 tomcat :/usr/local/tomcat6.0.20/bin/startup.sh
停止 tomcat :/usr/local/tomcat6.0.20/bin/shutdown.sh
???? ?debug="0"reloadable="true" crossContext="true"/>
?
?
??????? <!-- SingleSignOn valve, shareauthentication between web applications
???????????? Documentation at:/docs/config/valve.html -->
6、在/usr/local/apache2/htdocs下建立一个index.jsp,启动Apache和Tomcat,用浏览器访问http://localhost/,应该可以看到正确的页面了。
index.jsp 的例子
Hello! The time is <%= new java.util.Date() %>
测试:
服务器端:curlhttp://192.168.0.8? curlhttp://192.168.0.8/index.jsp
客户端测试输入:http://192.168.0.8/index.jsp
你会看到:Hello! Thetime is Mon Jan 19 21:29:38 CST 2009
如果出现此界面说明你成功了!