免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1146 | 回复: 0
打印 上一主题 下一主题

apache2.2.3+jdk1.5.0_04+tomcat-5.5.9安装笔记 [复制链接]

论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-07-13 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-02-22 13:03 |只看该作者 |倒序浏览
apache2.2.3+jdk1.5.0_04+tomcat-5.5.9安装笔记

jdk的安装和环境配置不写了,以前写过了.
tomcat的安装也不写了,就是解压后找一个合适的目录放过去就可以了.
apache的安装稍为有点不同
1).解压httpd-2.2.3.tar.gz,进入解压后目录的cd httpd-2.2.3/srclib/,依次安装apr和apr-util
# cd apr
# ./configure –prefix=/usr/local/apr
# make
# make install
# cd ../apr-util
# ./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr/
# make
# make install
2).安装apache
#./configure –prefix=/app/apache-2.2.3 –enable-so –enable-rewrite=share –enable-proxy=share –enable-proxy-ajp=share –enable-dav=share –with-apr=/usr/local/apr/ –with-apr-util=/usr/local/apr-util/
#make && make install
#apache2.2以后不用再jk2 ,用mod_proxy_ajp模块即可
3)配置,
可以写在httpd.conf,不过建议Include conf/xxx.conf,然后写这个文件,大概内容参见下面
NameVirtualHost *:80

     
    DirectoryIndex index.jsp
     
    ProxyPass / ajp://localhost:8009/
    ProxyPassReverse / ajp://localhost:8009/
    ServerName xxxxxx
    ServerAlias www
    ErrorLog logs/xx-error_log
    CustomLog logs/xx-access_log common
  


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22176/showart_248838.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP