Windows Apache and Tomcat integration

Source: Internet
Author: User
Tags apache tomcat download apache tomcat

With several times, very simple steps, but always forget, no way, feel the brain is getting worse, or to remember it

Apache Tomcat Download the instructions don't say it.

Just write down the configuration steps:

1, see if there is MOD_JK module in Apache modules, do not go down one put in, MOD_JK is essentially Apache and Tomcat connector, and by this comes with the function of providing cluster and load balancing.

2, configure Workers.properties, create a workers.properties file the Tomcat to point to will be put in, as follows

# Define Some Properties#workers.tomcat_home=e:\server\apache-tomcat-6.0.41#workers.java_home=e:\program Files (x86 ) \java\jdk1.7.0_01#ps=# Define workersworker.list=tomcat_portal# Set properties for Ping (worker1) Worker.tomcat_ Portal.type=ajp13worker.tomcat_portal.host=127.0.0.1worker.tomcat_portal.port=8009worker.tomcat_ Portal.lbfactor=50worker.tomcat_portal.cachesize=10worker.tomcat_portal.cache_timeout=600worker.tomcat_ portal.socket_keepalive=1worker.tomcat_portal.socket_timeout=300

Multiple Tomcatworker.list中定义的tomcat名称用`,`分开即可

3, modify httpd.conf (another conf file can be cited for convenience)

Add the include conf/define/portal.conf below httpd.conf

The content of portal.conf is

# Load mod_jk moduleloadmodule jk_module modules/mod_jk-apache-2.2.4.so# Where to find Workers.propertiesjkworkersfile Conf/define/workers.properties<virtualhost *:80>servername www.2k.comJkMount/* tomcat_portal</ Virtualhost>

Complete.

Windows Apache and Tomcat integration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.