- 论坛徽章:
- 0
|
httpd、mysql、tomcat均为yum默认安装
1、修改vi /etc/httpd/conf.d/proxy_ajp.conf
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#
# When loaded, the mod_proxy_ajp module adds support for
# proxying to an AJP/1.3 backend server (such as Tomcat).
# To proxy to an AJP backend, use the "ajp://" URI scheme;
# Tomcat is configured to listen on port 8009 for AJP requests
# by default.
#
#
# Uncomment the following lines to serve the ROOT webapp
# under the /tomcat/ location, and the jsp-examples webapp
# under the /examples/ location.
#
#ProxyPass /tomcat/ ajp://localhost:8009/
#ProxyPass /examples/ ajp://localhost:8009/jsp-examples/
将最后两行的#号去掉就可以了,保存,重启httpd和tomcat。在地址栏输入:
http://xxxxxxx/tomcat/
,如果出现tomcat的起始页说明成功连接,输入httpd://xxxxxxx/examples/如果出现的网页和
http://xxxxxxx:8080/jsp-examples/
一样的话,连接成功。
假设你的jsp站点放在/var/lib/tomcat5/webspps/abcd中,那么在proxy_ajp.conf最后增加这么一
行:ProxyPass /abcd/ ajp://localhost:8009/abcd/,重启httpd和tomcat,在浏览器中访问
http://xxxxxx/abcd/
就可以看到你的jsp网站了。
2、到mysql网站下载mysql-connector-java-5.1.5-bin.jar放到/var/lib/tomcat5/common/lib目录下即可生效。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/78175/showart_1353902.html |
|