mod_jk2.so下載地址(整合Apache與Tomcat)
前幾篇文章都是介紹的使用mod_jk.so整合Apache與Tomcat(負載均衡),後來我發現了使用mod_jk2.so也可以正和它們^_^^_^
首先下載jakarta-tomcat-connectors-jk2.0.4-win32-apache2.0.49.zip
下載地址:
解壓縮後,裡面有具體的文件說明
[@more@]mod_jk2的配置和jk差不多:
1:只需在apache的http.conf檔案裡面加上:
LoadModule jk2_module modules/mod_jk2.dll(mod_jk2.so)
2:在conf資料夾下建檔案workers2.properties內容如下
#++++++++++++++++++++++++++++++++++++
# only at beginnin. In production uncomment it out
[logger.apache2]
level=DEBUG
#shm必須配
[shm]
file=C:Program FilesApache GroupApache2logsshm.file
size=1048576
# 第一個tomcat 的地址
# Example socket channel, override port and host.
[channel.socket:tomcat1]
port=11009
host=127.0.0.1
# 定義第一個工作者指向第一個tomcat
# define the worker
[ajp13:tomcat1]
channel=channel.socket:tomcat1
#第二個tomcat 得地址
# Example socket channel, override port and host.
[channel.socket:tomcat2]
port=12009
host=127.0.0.1
# 定義第二個工作者指向第二個tomcat
# define the worker
[ajp13:tomcat2]
channel=channel.socket:tomcat2
#定義負載均衡器,使其包含兩個工作者
[lb:lb1]
worker=ajp13:tomcat2
worker=ajp13:tomcat1
#指定負載均衡器完成單一地址對映,使得apache 服務所在的uri全部指向 兩個tomcat 上的 root
# Uri mapping
[uri:/test/*]
group=lb:lb1
#++++++++++++++++++++++++++++++++++++++++++
# define the worker
[status:status]
# Uri mapping
[uri:/jkstatus/*]
worker=status:status
3:tomcat的配置和使用jk配置一樣;
Author:Derek (Fan Shizhen)
My QQ: 122168011
MSN::
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/300209/viewspace-811515/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux 下 Apache 與 Tomcat 整合的簡單方法LinuxApacheTomcat
- Linux下Apache與Tomcat整合的簡單方法(轉)LinuxApacheTomcat
- Linux下整合Apache+Tomcat+MySQL+PHPLinuxApacheTomcatMySqlPHP
- solaris10-x86下快速配置apache與tomcat整合支援jspApacheTomcatJS
- Apache2.2與Tomcat7整合方案詳解ApacheTomcat
- solaris10-x86下快速配置apache與tomcat整合支援jsp(轉)ApacheTomcatJS
- 實戰apache+tomcat整合(轉)ApacheTomcat
- IDE整合開發環境下載地址IDE開發環境
- Apache +Tomcat的負載均衡與叢集配置ApacheTomcat負載
- 下載tomcat與安裝Tomcat
- Apache與Tomcat4整合構建jsp環境(轉)ApacheTomcatJS
- apache+tomcat負載均衡ApacheTomcat負載
- Tomcat的下載與安裝Tomcat
- 下載地址
- 實戰apache+tomcat+mod_jk整合(轉)ApacheTomcat
- 彈性整合Apache Mesos與Apache Kafka框架ApacheKafka框架
- SQLSERVER下載地址SQLServer
- redhat 下載地址Redhat
- heartbeat下載地址
- OpenSuse 下載地址
- monocloud下載地址MonoCloud
- Tomcat下Servlet的地址問題TomcatServlet
- Linux CentOS 7 下 Apache Tomcat 7 安裝與配置(心得)LinuxCentOSApacheTomcat
- Apache Tomcat 8.5.40 與 7.0.94 釋出ApacheTomcat
- Apache與Tomcat 區別聯絡ApacheTomcat
- Linux下Apache+Tomcat搭建負載均衡伺服器叢集LinuxApacheTomcat負載伺服器
- 下載安裝ApacheApache
- apache+JK+tomcat負載均衡配置(windows)ApacheTomcat負載Windows
- apache tomcat叢集配置和負載均衡ApacheTomcat負載
- 配置apache和nginx的tomcat負載均衡ApacheNginxTomcat負載
- NDK版本 下載地址
- 讀者下載地址
- 下載地址記錄
- flv下載地址
- 11.2.0.4下載地址
- ORACLE官方下載地址Oracle
- lsof for aix下載地址AI
- TBMR 6.2 下載地址