{"id":450,"date":"2023-02-25T13:13:55","date_gmt":"2023-02-25T05:13:55","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=450"},"modified":"2023-04-29T21:01:00","modified_gmt":"2023-04-29T13:01:00","slug":"config-multiport-access-for-tomcat","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/config-multiport-access-for-tomcat\/","title":{"rendered":"Tomcat\u914d\u7f6e\u591a\u7aef\u53e3\u8bbf\u95ee"},"content":{"rendered":"<p>\u5e94\u7528\u573a\u666f\uff1a\u5f53\u4e00\u4e2a\u670d\u52a1\u5668\u53ea\u80fd\u901a\u8fc7IP\u624d\u80fd\u8bbf\u95ee\u5e94\u7528\u65f6\uff0c\u7136\u800c\u6709\u591a\u4e2aJavaWeb\u5e94\u7528\u9700\u8981\u653e\u5728\u4e00\u53f0\u670d\u52a1\u5668<\/p>\n<h2>\u914d\u7f6eserver.xml<\/h2>\n<p>\u5728Tomcat\u7684conf\/server.xml\u4e2d\uff0c\u914d\u7f6e\u591a\u4e2a\u7aef\u53e3\uff1a<\/p>\n<p><!-- more --><\/p>\n<pre><code class=\"language-xml\">&lt;!--\u5e94\u75281\uff0c\u7aef\u53e3port=&quot;8080&quot;--&gt;\n&lt;Service name=&quot;Catalina&quot;&gt;\n    &lt;Connector connectionTimeout=&quot;20000&quot; port=&quot;8080&quot; protocol=&quot;HTTP\/1.1&quot; redirectPort=&quot;8443&quot; \/&gt;\n    &lt;Connector port=&quot;8009&quot; protocol=&quot;AJP\/1.3&quot; redirectPort=&quot;8443&quot; \/&gt;\n    &lt;Engine defaultHost=&quot;localhost&quot; name=&quot;Catalina&quot;&gt;\n        &lt;Host name=&quot;localhost&quot; appBase=&quot;\/data\/www\/tomcat85&quot; unpackWARs=&quot;true&quot; autoDeploy=&quot;true&quot; xmlNamespaceAware=&quot;false&quot; xmlValidation=&quot;false&quot;&gt;\n            &lt;Context docBase=&quot;&quot; path=&quot;&quot; reloadable=&quot;true&quot; \/&gt;\n        &lt;\/Host&gt;\n    &lt;\/Engine&gt;\n&lt;\/Service&gt;\n\n&lt;!--\u5e94\u75282\uff0c\u7aef\u53e3port=&quot;8090&quot;--&gt;\n&lt;Service name=&quot;Catalina2&quot;&gt;\n    &lt;Connector connectionTimeout=&quot;20000&quot; port=&quot;8090&quot; protocol=&quot;HTTP\/1.1&quot; redirectPort=&quot;8443&quot; \/&gt;\n    &lt;Connector port=&quot;8009&quot; protocol=&quot;AJP\/1.3&quot; redirectPort=&quot;8443&quot; \/&gt;\n    &lt;Engine defaultHost=&quot;localhost&quot; name=&quot;Catalina2&quot;&gt;\n        &lt;Host name=&quot;localhost&quot; appBase=&quot;\/data\/www\/Jenkins&quot; unpackWARs=&quot;true&quot; autoDeploy=&quot;true&quot; xmlNamespaceAware=&quot;false&quot; xmlValidation=&quot;false&quot; &gt;\n            &lt;Context docBase=&quot;&quot; path=&quot;\/&quot; reloadable=&quot;true&quot; crossContext=&quot;true&quot; &gt;&lt;\/Context&gt;\n            &lt;!--Context docBase=&quot;admin&quot; path=&quot;\/admin\/&quot; reloadable=&quot;true&quot; crossContext=&quot;true&quot; &gt;&lt;\/Context--&gt;\n        &lt;\/Host&gt;\n    &lt;\/Engine&gt;\n&lt;\/Service&gt;<\/code><\/pre>\n<h2>\u6ce8\u610f\u4e8b\u9879<\/h2>\n<ul>\n<li>\u9632\u706b\u5899\u5f00\u653e\u7aef\u53e3<\/li>\n<li>\u5b58\u5728\u57df\u540d\uff0c\u65e0\u9700\u7528\u6b64\u65b9\u6cd5<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5e94\u7528\u573a\u666f\uff1a\u5f53\u4e00\u4e2a\u670d\u52a1\u5668\u53ea\u80fd\u901a\u8fc7IP\u624d\u80fd\u8bbf\u95ee\u5e94\u7528\u65f6\uff0c\u7136\u800c\u6709\u591a\u4e2aJavaWeb\u5e94\u7528\u9700\u8981\u653e\u5728\u4e00\u53f0\u670d\u52a1\u5668 \u914d\u7f6eserv [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[148],"class_list":["post-450","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-tomcat"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=450"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/450\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}