實戰apache+tomcat+mod_jk整合(轉)
實戰apache+tomcat+mod_jk整合(轉)[@more@]在做本實驗之前你應該安裝好了apache,j2sdk,tomcat。有問題的可以參看我的前一篇文章。這裡就著重介紹mod_jk.下載jakarta-tomcat-connectors-jk-1.2.4-src.tar.gzcd /wwwtar -xzf jakarta-tomcat-connectors-jk-1.2.4-src.tar.gzmv jakarta-tomcat-connectors-jk-1.2.4 mod_jkcd /www/mod_jk/jk/native./buildconf./configure --with-apxs=/www/http2/bin/apxsmakecp apache-2.0/mod_jk.so /www/http2/modules/準備兩個重要的配置檔案修改httpd.conf,告訴伺服器裝載mod_jk模組。並配置使之轉發特定的請求給tomcat處理#-------------------mod_jk-------------------LoadModule jk_module libexec/mod_jk.so# Declare the module for #AddModule mod_jk.c# Where to find workers.propertiesJkWorkersFile /www/http2/conf/workers.properties# Where to put jk logsJkLogFile /www/http2/logs/mod_jk.log# Set the jk log level [debug/error/info]JkLogLevel info# Select the log formatJkLogStampFormat "[%a %b %d %H:%M:%S %Y] "# JkOptions indicate to send SSL KEY SIZE,JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories# JkRequestLogFormat set the request formatJkRequestLogFormat "%w %V %T"# Send servlet for context /examples to worker named worker1JkMount /examples/servlet/* worker1# Send JSPs for context /examples to worker named worker1JkMount /examples/* worker1新建檔案/www/http2/conf/workers.properties# Define 1 real worker using ajp13worker.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.socket_timeout=300 ok現在就可以測試了
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8225414/viewspace-937901/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 實戰apache+tomcat整合(轉)ApacheTomcat
- jeecgboot整合seata實戰boot
- Flowable實戰(六)整合JPA
- Spring Boot 整合 Elasticsearch 實戰Spring BootElasticsearch
- SpringBoot整合Redis實戰Spring BootRedis
- SpringBoot 實戰 (十二) | 整合 thymeleafSpring Boot
- SpringBoot 實戰 (九) | 整合 MybatisSpring BootMyBatis
- Springboot 整合 Netty 實戰Spring BootNetty
- Spring Boot整合Redis實戰操作Spring BootRedis
- SpringBoot整合kafka全面實戰Spring BootKafka
- go-micro整合RabbitMQ實戰和原理GoMQ
- Spring BOOT 整合 RabbitMq 實戰操作(一)Spring BootMQ
- LLM應用實戰:當KBQA整合LLM
- 【轉】微服務實戰微服務
- Turbine實戰(下) (轉)
- 鴻蒙HarmonyOS:深入Device Certificate Kit API:從整合到實戰鴻蒙HarmonyOS:深入Device Certificate Kit API:從整合到實戰鴻蒙devAPI
- SpringBoot 實戰 (十三) | 整合 MyBatis (XML 版)Spring BootMyBatisXML
- LDAP落地實戰(二):SVN整合OpenLDAP認證LDA
- 持續整合之 Spring Boot 實戰篇Spring Boot
- Spring框架(五)實戰Spring整合MybatisSpring框架MyBatis
- 實戰程式碼(一):SpringBoot整合QuartzSpring Bootquartz
- Nuxt3實戰系列之整合ElementPlusUIUXUI
- LLM應用實戰:當KBQA整合LLM(二)
- SpringBoot 實戰 (十七) | 整合 WebSocket 實現聊天室Spring BootWeb
- iOS 元件化 使用cocoapods整合實戰演練iOS元件化
- LDAP落地實戰(三):GitLab整合OpenLDAP認證LDAGitlab
- HBase2實戰:HBase Flink和Kafka整合Kafka
- LDAP落地實戰(四):Jenkins整合OpenLDAP認證LDAJenkins
- MyBatis初級實戰之一:Spring Boot整合MyBatisSpring Boot
- SpringBoot整合RabbitMQ實戰附加死信交換機Spring BootMQ
- SpringBoot整合Kafka的實戰用法大全Spring BootKafka
- Spring Boot實戰:整合Swagger2Spring BootSwagger
- Spring AMQP 實戰 - 整合 RabbitMQ 傳送郵件SpringMQ
- Spring AMQP 實戰 – 整合 RabbitMQ 傳送郵件SpringMQ
- TiDB 在轉轉的業務實戰TiDB
- 【Python機器學習實戰】決策樹與整合學習(三)——整合學習(1)Python機器學習
- SpringBoot 實戰 (十一) | 整合資料快取 CacheSpring Boot快取
- Spring Boot實戰系列(7)整合Consul配置中心Spring Boot