在apache上快速开始使用JK
2006-03-01 18:06
246 查看
今天要让tomcat也能从80端口接收请求,搜索了一遍,没找到一篇文章来简单说明这个要怎么做。只好从apache.org找吧,还好,找到了下面这个。
原文:http://tomcat.apache.org/connectors-doc/howto/quick.html
其他文章:http://linux.chinaitlab.com/set/18462.html
原文:http://tomcat.apache.org/connectors-doc/howto/quick.html
介绍 |
本文描述如何在Web服务器上立即开始使用JK: workers.properties 是必需的配置文件,对于所有Web服务器(Apache/IIS/NES). Web Server的配置. 这里将给出apache的最小 配置修改要求以及一最简单的workers.propertyes文件。 |
Minimum workers.properties |
Here is a minimum workers.properties, using just ajp13 to connect your Apache webserver to the Tomcat engine, complete documentation is available in Workers HowTo. # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.recycle_timeout=300 |
Minimum Apache WebServer configuration |
Here is a minimun informations about Apache configuration, a complete documentation is available in Apache HowTo. You should first have mod_jk.so (unix) or mod_jk.dll (Windows) installed in your Apache module directory (see your Apache documentation to locate it). Usual locations for modules directory on Unix: /usr/lib/apache/ /usr/lib/apache2/ /usr/local/apache/libexec/ Usual locations for modules directory on Windows : C:\Program Files\Apache Group\Apache\modules\ C:\Program Files\Apache Group\Apache2\modules\ You'll find prebuilt binaries here Here is the minimum which should be set in httpd.conf directly or included from another file: Usual locations for configuration directory on Unix: /etc/httpd/conf/ /etc/httpd2/conf/ /usr/local/apache/conf/ Usual locations for configuration directory on Windows : C:\Program Files\Apache Group\Apache\conf\ C:\Program Files\Apache Group\Apache2\conf\ # Load mod_jk module # Update this path to match your modules location LoadModule jk_module libexec/mod_jk.so # Declare the module for <IfModule directive> (remove this line on Apache 2.x) AddModule mod_jk.c # Where to find workers.properties # Update this path to match your conf directory location (put workers.properties next to httpd.conf) JkWorkersFile /etc/httpd/conf/workers.properties # Where to put jk logs # Update this path to match your logs directory location (put mod_jk.log next to access_log) JkLogFile /var/log/httpd/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel info # Select the log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format JkRequestLogFormat "%w %V %T" # Send everything for context /examples to worker named worker1 (ajp13) JkMount /examples/* worker1 |
相关文章推荐
- 【实操手册】一篇文章教你快速开始使用视频点播
- 使用Apache通过JK实现多Tomcat负载均衡集群实现总结及自己的感悟
- Apache Http Server与Tomcat6 的负载均衡(使用mod_jk.so)
- Apache使用mod_proxy和mod_jk反向代理Tomcat
- 使用mod_jk整合Apache HTTP Server和Tomcat
- 快速开始使用Python Thrift
- windows8系统的快速菜单使用图解(没有“开始”依然可以)
- Win7系统64位环境下使用Apache——下载mod_jk
- Tomcat中使用jk插件意义---------Tomcat与Apache服务器集成
- JBoss 系列五十:使用Apache httpd(mod_jk)和JBoss构架高可用集群环境
- 快速开始使用Spark和Alluxio
- Spread for Windows Forms快速入门(1)---开始使用Spread
- Spread for Windows Forms快速入门(1)---开始使用Spread
- 【实操手册】一篇文章教你快速开始使用视频点播
- apache使用mod_jk和mod_proxy反向代理tomcat
- 实例详解tomcat组件安装+Nginx反向代理tomcat+Apache使用mod_jk和mod_proxy反向代理和负载均衡 推荐
- CentOS6.5使用yum快速搭建LAMP(Linux+Apache+MySQL+PHP)环境
- 详解从 0 开始使用 Docker 快速搭建 Hadoop 集群环境
- Kubernetes用户指南(一)--快速开始、使用k8s配置文件
- C/C++使用APACHE CGI快速架设WEB SERVICE