{"id":187487,"date":"2020-11-07T10:37:26","date_gmt":"2020-11-07T02:37:26","guid":{"rendered":"http:\/\/4563.org\/?p=187487"},"modified":"2020-11-07T10:37:26","modified_gmt":"2020-11-07T02:37:26","slug":"%e8%8f%9c%e9%b8%9f%e9%97%ae%e4%b8%aa-tomcat-%e9%83%a8%e7%bd%b2%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=187487","title":{"rendered":"\u83dc\u9e1f\u95ee\u4e2a tomcat \u90e8\u7f72\u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u83dc\u9e1f\u95ee\u4e2a tomcat \u90e8\u7f72\u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hello2060 <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u6709\u4e24\u4e2a app: A \u548c B, \u4e00\u4e2a\u5728\u6839\u76ee\u5f55\u4e0b\uff0c\u4e00\u4e2a\u662f \/B, \u6240\u4ee5\u6211\u5728 web \u76ee\u5f55\u4e0b\u6709\u4e24\u4e2a war: ROOT.war \u548c B.war<\/p>\n<p>\u90e8\u7f72\u5230 aws \u4e0a\uff0c\u524d\u9762\u6709\u4e2a nginx, nginx \u53ea\u6709\u4e00\u4e2a conf \u5230\u4e3b\u57df\u540d\u3002<\/p>\n<p>tomcat log \u91cc\u9762\u53ea\u6709 a.log, \u4ece log \u770b \u6709 \u2018No mapping found for HTTP request with URI [\/B]&#8217; \u8bf4\u660e \/B \u88ab A \u5904\u7406\u4e86<\/p>\n<p>\u8bf7\u95ee\u914d\u7f6e\u6709\u53ef\u80fd\u9519\u5728\u54ea\uff1f \u8c22\u8c22      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4076098\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xfabs <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u6ca1\u6709\u8bd5\u4e00\u4e0b\u672c\u5730 localhost:port\/B \u80fd\u4e0d\u80fd\u8bbf\u95ee\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4076099\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lqw3030 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u5355\u72ec\u542f\u52a8\u4e0b b \u6392\u9664\u4e0b b \u9879\u76ee\u81ea\u8eab\u7684\u95ee\u9898\uff0c\u6309\u4f60\u8bf4\u7684\u540c\u7ea7\u4e24\u4e2a war \u662f\u4e0d\u4f1a\u51fa\u73b0\u4e00\u4e2a\u5904\u7406\u4e86\u53e6\u4e00\u4e2a\u8bf7\u6c42\u7684\u60c5\u51b5\u7684\uff0c\u4ed6\u4eec\u5904\u4e8e\u4e24\u4e2a\u9694\u79bb\u7684 host \u91cc                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4076100\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : becauseIdo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             nginx \u914d\u7f6e\u8def\u5f84\u8f6c\u53d1\u5c31\u884c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4076101\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ebingtel <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u548c 1L \u7684\u4e00\u6837:<br \/>1) \u786e\u4fdd B \u670d\u52a1\u6b63\u5e38\u542f\u52a8<br \/>2) \u770b\u4e0b nginx.conf \u91cc\u9762,\u5bf9 \/B \u7684\u6620\u5c04\u662f\u5426\u6b63\u786e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4076102\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hello2060 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. \u6211\u6ca1\u6709\u628a aws \u4e0a\u7684 a,b \u653e\u5230\u672c\u5730\u8dd1\uff0c\u6211\u672c\u5730\u5efa\u4e86\u4e24\u4e2a\u5f88\u7b80\u5355\u7684\u9879\u76ee\uff0c\u547d\u540d\u4e3a a,b \u76ee\u5f55\u7ed3\u6784\u4e00\u6837\u672c\u5730\u662f\u53ef\u4ee5\u7684<br \/>2. \u6211\u628a\u672c\u5730\u7684 b.war \u76f4\u63a5\u8986\u76d6\u4e86 aws \u4e0a\u7684 b.war \/b \u5c31\u80fd\u8bbf\u95ee\u4e86\uff0c\u4f46\u662f\u540c\u6837\u771f\u6b63\u7684 b.war \u4ece\u672c\u5730\u4f20\u4e0a\u53bb\u5c31\u4e0d\u884c\uff0c\u770b\u6765 b.war \u6709\u70b9\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4076103\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fengpan567 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u7684\u76d1\u542c\u7aef\u53e3\u914d\u9519\u4e86\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4076104\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : oneforallsoft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hello2060 <br \/>&#8220;\u6211\u628a\u672c\u5730\u7684 b.war \u76f4\u63a5\u8986\u76d6 &#8221; &#8220;\u6837\u771f\u6b63\u7684 b.war \u4ece\u672c\u5730\u4f20\u4e0a\u53bb&#8221;<br \/>\u8fd9 2 \u64cd\u4f5c\u6709\u4ec0\u4e48\u533a\u522b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4076105\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hello2060 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @oneforallsoft \u672c\u5730\u7684\u662f\u4e00\u4e2a\u6700\u7b80\u5355\u7684\u7a0b\u5e8f\uff0c\u5c31\u4e00\u4e2a getmapping(&#8216;\/&#8217;), \u771f\u6b63\u7684\u662f\u53e6\u5916\u4e00\u4e2a\u9879\u76ee\u7684 war \u5305\uff0c\u653e\u5230 aws \u4e0a\u90fd\u547d\u540d\u4e3a b.war, \u95ee\u9898\u53ef\u80fd\u5728\u771f\u6b63\u7684 war \u5305\u91cc\uff0c\u6211\u56de\u5934\u518d\u770b\u770b\uff0c\u8c22\u8c22\u4f60\u3002\u4e24\u4e2a\u64cd\u4f5c\u6ca1\u533a\u522b\uff0c\u90fd\u662f scp \u5230 remote \u53bb\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u83dc\u9e1f\u95ee\u4e2a tomcat \u90e8\u7f72\u7684\u95ee\u9898&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/187487"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=187487"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/187487\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=187487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=187487"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=187487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}