IIS10和Tomcat8整合

来源:互联网 发布:数据库检索系统 编辑:程序博客网 时间:2024/05/16 11:11

在网上找了很久,也试了很多,都没有弄好。后来根据这个博客,做一些小修小改,终于成功了。

我是从里面的IIS与TOMCAT整合那里开始看的。第一步上面要创建一个注册表,我没有创建。我是创建了一个名为“isapi_redirect.properties”的文件,放进tomcat安装目录的conf文件夹里面。里面内容为:

# Configuration file for the Jakarta ISAPI Redirector# The path to the ISAPI Redirector Extension, relative to the website# This must be in a virtual directory with execute privilegesextension_uri=/jakarta/isapi_redirect.dll# Full path to the log file for the ISAPI Redirectorlog_file=C:\apache-tomcat-8.0.36-windows-x64\apache-tomcat-8.0.36\logs\isapi_redirect.log# Log level (debug, info, warn, error or trace)log_level=info# Full path to the workers.properties fileworker_file=C:\apache-tomcat-8.0.36-windows-x64\apache-tomcat-8.0.36\conf\workers.properties# Full path to the uriworkermap.properties fileworker_mount_file=C:\apache-tomcat-8.0.36-windows-x64\apache-tomcat-8.0.36\conf\uriworkermap.properties

注意:需要修改路径。

然后后面的步骤就是按照上面的做的,需要修改路径的地方记得修改应该就没什么问题吧。

所有步骤做完之后,要重启IIS和TOMCAT。然后进去localhost:8080。如果显示跟上面说的差不多就成功了。


附件:(根据实际情况修改路径)

1.“workers.properties”文件的内容

workers.tomcat_home=C:\\apache-tomcat-8.0.36-windows-x64\\apache-tomcat-8.0.36workers.java_home=C:\\Program Files\\Java\\jdk1.8.0_101ps=\worker.list=ajp13worker.ajp13.port=8009worker.ajp13.host=localhostworker.ajp13.type=ajp13worker.ajp13.lbfactor=1

2.“uriworkermap.properties”文件中的内容

/*.jsp=ajp13/*.do=ajp13/services*=ajp13/servlet*=ajp13/researchreport/*=ajp13/investerminal/*=ajp13/researchreport2/*=ajp13/issuu/*=ajp13/newInvesterminal/*=ajp13/NewWeb/*=ajp13/UserRangeServer/*=ajp13/ROOT/*=ajp13/docs/*=ajp13/examples/*=ajp13/host-manager/*=ajp13/manager/*=ajp13


0 0