httpd+tomcat负载均衡
来源:互联网 发布:javascript display 编辑:程序博客网 时间:2024/05/17 01:26
Windows Apache + Tomcat 负载均衡
环境准备
jdk 1.6
apache 2.2.* (解压版)
tomcat 6,7,8 (解压版)
设置java环境变量: JAVA_HOME='到bin目录之前的路径,不要有符号结尾'; PATH 前追加 '%JAVA_HOME%\bin;'解压版tomcat会用到这两个环境变量[tomcat下载](http://tomcat.apache.org)选择 Deployer 版本 zip 下载, 解压后直接 运行 bin\startup.bat运行[apache下载](http://httpd.apache.org/download.cgi) apache(httpd)官方不提供windows版下载可以网上查找 解压版本
apache + 1个 tomcat运行
apache整合tomcat必须要有Tomcat Connectors (mod_jk) 的支持 在tomcat官网Tomcat Connectors处下载 jakarta-tomcat-connectors-jk2.0.2-win32-apache1.3.27.zip 解压后将 mod_jk.so 文件拷贝到 apache modules目录下
# Define 1 real worker using ajp13worker.list=worker1# Set properties for worker1 (ajp13)worker.worker1.type=ajp13worker.worker1.host=localhostworker.worker1.port=8009
# The advanced router LB workerworker.list=routerworker.router.type=lbworker.router.balance_workers=worker1,worker2# Define the first member workerworker.worker1.type=ajp13worker.worker1.host=localhostworker.worker1.port=8009# Define preferred failover node for worker1#worker.worker1.redirect=worker2# Define the second member workerworker.worker2.type=ajp13worker.worker2.host=localhostworker.worker2.port=8010# Disable worker2 for all requests except failover#worker.worker2.activation=disabled
# Load mod_jk module# Update this path to match your modules locationLoadModule jk_module C:\Apache22\modules\mod_jk.so# Where to find workers.properties# Update this path to match your conf directory location (put workers.properties next to httpd.conf)JkWorkersFile C:\Apache22\conf\workersBalancer.properties# Where to put jk logs# Update this path to match your logs directory location (put mod_jk.log next to access_log)JkLogFile C:\Apache22\logs\mod_jk.log# Set the jk log level [debug/error/info]JkLogLevel info# Select the timestamp log formatJkLogStampFormat "[%a %b %d %H:%M:%S %Y] "# Send everything for context /examples to worker named worker1 (ajp13)JkMount /* router
0 0
- httpd+tomcat负载均衡
- nginx + httpd 负载均衡
- Solaris下安装配置httpd server与tomcat负载均衡
- [tomcat]集群配置以及联合apache httpd实现负载均衡
- keepalived+httpd+tomcat实现高可用负载均衡
- httpd负载均衡服务器配置
- Apache+tomcat集群和负载均衡(httpd.conf,workers.properties,uriworkermap.properties)
- Apache+tomcat集群和负载均衡(httpd.conf,workers.properties,uriworkermap.properties)
- Apache Httpd负载均衡Tomcat并实现Session Sticky和Session Cluster
- Apache Httpd负载均衡Tomcat并实现Session Sticky和Session Cluster
- Keepalived+lvs+httpd之负载均衡
- Keepalived+lvs+httpd之负载均衡
- tomcat负载均衡
- Tomcat负载均衡
- APCHE TOMCAT 负载均衡
- apache+tomcat 负载均衡
- tomcat集群负载均衡
- apache+tomcat负载均衡
- MTK Android software Tools工具的说明
- hadoop-2.6.2所有配置文件参数
- Android动画学习笔记-Android Animation
- servlet中通过getWriter()获取out返回给浏览器出现中文乱码问题
- jQuery数字,手机号,邮箱校验
- httpd+tomcat负载均衡
- 比editplus好用的编辑器sublime text3
- SOCK_STREAM和SOCK_DGRAM两种类型的区别
- python入门--切片,迭代,列表生成
- Google提供的一款查看APK内容的工具——ClassyShark
- 代码到Redis之间的中间层操作|Redis的增删改查
- ORA-12541:TNS:no listener
- 【iOS 开发】ios app加速审核服务有吗
- 删除顽固文件夹cygwin的方法,挺折腾的