{"id":275,"date":"2018-05-17T20:08:39","date_gmt":"2018-05-17T12:08:39","guid":{"rendered":"http:\/\/www.luodonggan.com\/wordpress\/?p=275"},"modified":"2018-05-17T20:08:39","modified_gmt":"2018-05-17T12:08:39","slug":"%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%ef%bc%88win-2012%ef%bc%89-apache-tomcat%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"http:\/\/8.152.216.154:8081\/?p=275","title":{"rendered":"\u5f00\u53d1\u73af\u5883\uff08win 2012\uff09&#8211;apache\/tomcat\u5b89\u88c5\u914d\u7f6e"},"content":{"rendered":"<p>&nbsp;&nbsp;&nbsp;&nbsp;\u80cc\u666f\uff1a\u7531\u4e8e\u9879\u76ee\u5f00\u53d1\uff0c\u9700\u8981\u914d\u7f6e\u670d\u52a1\u5668\u5f00\u53d1\u73af\u5883\uff0c\u7ed3\u5408\u7cfb\u7edf\u7fa4\u7684\u8981\u6c42\uff0c\u89c4\u5212\u5b89\u88c5\u914d\u7f6eweb\u670d\u52a1\u5668\u3001\u5e94\u7528\u670d\u52a1\u5668\u7684\u5b89\u88c5\uff0c\u67b6\u6784\u5982\u4e0b\u3002<\/p>\n<p><\/p>\n<p style=\"margin-bottom: 5px; text-align: center;\"><img src=\"\/ueditor\/php\/upload\/image\/20180517\/1526555013419125.png\" title=\"1526555013419125.png\" alt=\"blob.png\"\/><\/p>\n<p><\/p>\n<p><strong>\u4e00\u3001apache\u4e0b\u8f7d\u5b89\u88c5\u914d\u7f6e<\/strong><\/p>\n<p>\u2460\u4e0b\u8f7dapache<\/p>\n<p>https:\/\/www.apachehaus.com\/cgi-bin\/download.plx?dli=gWFBndNlXW00kej9STwUjeJVlUGRVYSVzTEZET<\/p>\n<p><\/p>\n<p>\u2461\u5b89\u88c5<\/p>\n<p>cd &nbsp;x:\/apache\/bin\u76ee\u5f55<\/p>\n<p>httpd.exe -k install<\/p>\n<p><\/p>\n<p>\u2462\u914d\u7f6e<\/p>\n<p>httpd.conf &nbsp;Define SRVROOT &quot;D:\\apache\\Apache24&quot;&nbsp;<\/p>\n<p>net start&nbsp;Apache2.4<\/p>\n<p><img src=\"\/ueditor\/php\/upload\/image\/20180517\/1526556629897657.png\" title=\"1526556629897657.png\" alt=\"blob.png\"\/><\/p>\n<p>\u8bbf\u95ee\uff1aXX.XX.XX.XX:80&nbsp;<\/p>\n<p><img src=\"\/ueditor\/php\/upload\/image\/20180517\/1526556709582396.png\" title=\"1526556709582396.png\" alt=\"blob.png\"\/><\/p>\n<p>it works<\/p>\n<p><\/p>\n<p><strong>\u4e8c\u3001tomcat\u4e0b\u8f7d\u5b89\u88c5<\/strong><\/p>\n<p>\u2460\u4e0b\u8f7d<\/p>\n<p><span style=\"font-size: 14px;\"><span style=\"font-family: Verdana, Arial, Helvetica, sans-serif;\"><\/span><\/span>http:\/\/mirrors.hust.edu.cn\/apache\/tomcat\/tomcat-8\/v8.5.31\/bin\/apache-tomcat-8.5.31.tar.gz<\/p>\n<p>\u2461\u5b89\u88c5<\/p>\n<p>\u89e3\u538b\u5230\u5b89\u88c5\u76ee\u5f55\uff0c\u5e76\u7f16\u8f91\u540d\u79f0\u5982\u4e0b<\/p>\n<p><img src=\"\/ueditor\/php\/upload\/image\/20180517\/1526557067695873.png\" title=\"1526557067695873.png\" alt=\"blob.png\"\/><\/p>\n<p>\u2462\u914d\u7f6e<\/p>\n<p>\u8fdb\u5165D:\\tomcat-xx\\conf\\\u76ee\u5f55\uff0c\u6253\u5f00server.xml\u6587\u4ef6\uff0c\u4fee\u6539\u4e0b\u9762\u4e24\u4e2a\u5730\u65b9\uff1a<\/p>\n<p>\uff081\uff09&lt;Server port=&quot;8006&quot; shutdown=&quot;SHUTDOWN&quot;&gt;<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u4fee\u6539\u8fd9\u4e2aport=\u201d8006\u201d\uff0c\u4f7f\u5f97\u5b83\u7684\u5173\u95ed\u7aef\u53e3\u548c\u53e6\u4e00\u4e2a\u5173\u95ed\u7aef\u53e3\u4e0d\u53d1\u751f\u51b2\u7a81\u3002<\/p>\n<p>\uff082\uff09&lt;Connector port=&quot;8081&quot; maxHttpHeaderSize=&quot;8192&quot;<\/p>\n<p>&nbsp; &nbsp; &nbsp;maxThreads=&quot;150&quot; minSpareThreads=&quot;25&quot; maxSpareThreads=&quot;75&quot;<\/p>\n<p>&nbsp; &nbsp; &nbsp;enableLookups=&quot;false&quot; redirectPort=&quot;8443&quot; acceptCount=&quot;100&quot;<\/p>\n<p>&nbsp; &nbsp; &nbsp;connectionTimeout=&quot;20000&quot; disableUploadTimeout=&quot;true&quot; \/&gt;<\/p>\n<p>&nbsp; &nbsp; &nbsp;\u4fee\u6539port=\u201d8081\u201d\uff0c\u4f7f\u5f97\u5b83\u7684\u8fde\u63a5\u7aef\u53e3\u548c\u53e6\u4e00\u4e2a\u4e0d\u51b2\u7a81\u3002<\/p>\n<p>\uff083\uff09&lt;Connector port=&quot;8009&quot; protocol=&quot;AJP\/1.3&quot; redirectPort=&quot;8443&quot; \/&gt;<\/p>\n<p>&nbsp; &nbsp; \u4fee\u6539\u8fd9\u4e2aport=\u201d8010\u201d\uff0c\u4f7f\u5f97\u5b83\u7684AJP\u7aef\u53e3\u548c\u53e6\u4e00\u4e2a\u4e0d\u51b2\u7a81\u3002<\/p>\n<p><\/p>\n<p><strong>\u4e09\u3001\u914d\u7f6e\u4ee3\u7406<\/strong><\/p>\n<p>\u2460<span style=\"color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 14px; background-color: rgb(255, 255, 255);\"><span style=\"color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 14px; background-color: rgb(255, 255, 255);\">\u6253\u5f00\u4ee3\u7406\u6240\u9700\u8981\u7684.so\u652f\u6301\u6a21\u5757\uff0c\u5728httpd.conf\u91cc\u9762\uff0c\u53d6\u6d88\u4e0b\u9762\u56db\u884c\u7684\u6ce8\u91ca<\/span><\/span><\/p>\n<p><span style=\"color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 14px; background-color: rgb(255, 255, 255);\"><span style=\"color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 14px; background-color: rgb(255, 255, 255);\"><\/span><\/span><\/p>\n<ol class=\"highlighter-xml list-paddingleft-2\" start=\"1\" style=\"box-sizing: border-box; outline: 0px; padding: 0px; margin-bottom: 24px; margin-left: 32px; list-style-position: initial; list-style-image: initial; border-top: none; border-right: 1px solid rgb(231, 229, 220); border-bottom: none; border-left: none; border-image: initial; background-color: rgb(255, 255, 255); color: rgb(92, 92, 92); word-break: break-all; font-family: Consolas, &quot;Courier New&quot;, Courier, mono, serif; font-size: 12px; white-space: normal;\">\n<li>\n<p><span style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">LoadModule&nbsp;proxy_module&nbsp;modules\/mod_proxy.so<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">LoadModule&nbsp;proxy_connect_module&nbsp;modules\/mod_proxy_connect.so<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">LoadModule&nbsp;proxy_http_module&nbsp;modules\/mod_proxy_http.so<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">LoadModule&nbsp;proxy_ftp_module&nbsp;modules\/mod_proxy_ftp.so<\/span><\/p>\n<\/li>\n<\/ol>\n<p>\u2461\u914d\u7f6e<\/p>\n<\/p>\n<ol class=\"highlighter-xml list-paddingleft-2\" start=\"1\" style=\"box-sizing: border-box; outline: 0px; padding: 0px; margin-bottom: 24px; margin-left: 32px; list-style-position: initial; list-style-image: initial; border-top: none; border-right: 1px solid rgb(231, 229, 220); border-bottom: none; border-left: none; border-image: initial; background-color: rgb(255, 255, 255); color: rgb(92, 92, 92); word-break: break-all; font-family: Consolas, &quot;Courier New&quot;, Courier, mono, serif; font-size: 12px; white-space: normal;\">\n<li>\n<p><span class=\"tag\" style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&lt;<\/span><span class=\"tag-name\" style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">VirtualHost<\/span><span style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;*:80<\/span><span class=\"tag\" style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&gt;<\/span><span style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\"><\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">ServerName&nbsp;oa.aaa.com<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">ProxyPass&nbsp;\/&nbsp;http:\/\/&nbsp;oa.aaa.com:8080\/<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">ProxyPassReverse&nbsp;\/&nbsp;http:\/\/&nbsp;oa.aaa.com:8080\/<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\"><\/span><span class=\"tag\" style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&lt;\/<\/span><span class=\"tag-name\" style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">VirtualHost<\/span><span class=\"tag\" style=\"box-sizing: border-box; outline: 0px; word-break: break-all; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&gt;<\/span><\/p>\n<\/li>\n<\/ol>\n<p><img src=\"\/ueditor\/php\/upload\/image\/20180517\/1526558854302270.png\" title=\"1526558854302270.png\" alt=\"blob.png\"\/><\/p>\n<p><\/p>\n<p><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp;&nbsp;&nbsp;\u80cc\u666f\uff1a\u7531\u4e8e\u9879\u76ee\u5f00\u53d1\uff0c\u9700\u8981\u914d\u7f6e\u670d\u52a1\u5668\u5f00\u53d1\u73af\u5883\uff0c\u7ed3\u5408\u7cfb\u7edf\u7fa4\u7684\u8981\u6c42\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":252,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[20,19],"_links":{"self":[{"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/posts\/275"}],"collection":[{"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=275"}],"version-history":[{"count":1,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/posts\/275\/revisions"}],"predecessor-version":[{"id":276,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/posts\/275\/revisions\/276"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/media\/252"}],"wp:attachment":[{"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}