\u547d\u4ee4<\/a>\u3002\u89e3\u538bWAR\u6587\u4ef6\u987b\u8981\u4f7f\u7528\u5230jar\u547d\u4ee4\uff0c\u5b83\u662fJava\u7684\u4e00\u4e2a\u5de5\u5177\uff0c\u53ef\u4ee5\u62ff\u6765\u89e3\u538bWAR\u6587\u4ef6\u3002<\/p>\n\u63a5\u51fa\u6765\u5f00\u59cb\u89e3\u538bWAR\u6587\u4ef6\u3002\u5047\u5b9a\u8981\u89e3\u538b\u7684\u6587\u4ef6\u540d\u4e3aexample.war\uff0c\u5728Linux\u547d\u4ee4\u884c\u4e0b\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n
\n
$ jar -xvf example.war
<\/pre>\n<\/p>\n\u91cc\u9762\u7684\u547d\u4ee4\u542b\u610f\u662f\u4f7f\u7528jar\u5de5\u5177\uff0c\u4eceexample.war\u6587\u4ef6\u4e2d\u628a\u6240\u6709\u6587\u4ef6\u548c\u8d44\u6e90\u89e3\u538b\u4e0b\u6765\u3002\u5047\u5982\u6587\u4ef6\u65e9\u5df2\u89e3\u538blinux\u7cfb\u7edf\u89e3\u538bwar<\/strong>\uff0c\u5219\u4f1a\u663e\u793a\u201calreadyexistsindestination\u201d\u7684\u63d0\u793a\u4fe1\u606f\u3002\u89e3\u538b\u7ed3\u679c\u4f1a\u7f6e\u4e8e\u5f53\u524d\u76ee\u5f55\u4e0b\uff0c\u6bd4\u5982\uff0c\u5047\u5b9aexample.war\u6587\u4ef6\u89e3\u538b\u540e\u7684\u5185\u5bb9\u653e\u5230\/home\/example\u76ee\u5f55\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528ls\u547d\u4ee4\u67e5\u770b\u89e3\u538b\u7ed3\u679c\uff1a<\/p>\n<\/p>\n
\n
$ ls \/home\/example
<\/pre>\n<\/p>\n\u89e3\u538b\u540e\u7684\u5185\u5bb9\u5373Java\u5e94\u7528\u7a0b\u5e8f\uff0c\u5728\/home\/example\u76ee\u5f55\u4e0b\u4f1a\u6709WEB-INF\uff0clib\u7b49\u76ee\u5f55\uff0c\u8fd8\u6709\u4e00\u4e9b.class.jsp.html\u7b49\u6587\u4ef6\uff0c\u8fd9\u79cd\u6587\u4ef6\u662f\u5e94\u7528\u7a0b\u5e8f\u7684\u8fd0\u884c\u6587\u4ef6\u3002<\/p>\n
\u4ee5\u4e0a\u5c31\u662f\u5feb\u901f\u89e3\u538bWAR\u6587\u4ef6\u7684\u6559\u7a0b\uff0c\u52a8\u624b\u5b9e\u8df5\u4e00\u4e0blinux\u7cfb\u7edf\u89e3\u538bwar<\/strong>\uff0c\u5bf9Java\u7684Linux\u5e94\u7528\u7a0b\u5e8f\u5e03\u7f72\u4e5f\u4f1a\u6709\u5f88\u5927\u7684\u5e2e\u52a9linux \u5220\u9664\u6587\u4ef6\u5939\uff0c\u5e0c\u671b\u672c\u6587\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Linux\u6559\u7a0b\uff1a\u5feb\u901f\u89e3\u538bWAR\u6587\u4ef6\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Linux\u7cfb\u7edf\u89e3\u538bWAR\u6587\u4ef6\u3002.html\u7b49\u6587\u4ef6\uff0c\u8fd9\u4e9b\u6587\u4ef6\u662f\u5e94\u7528\u7a0b\u5e8f\u7684\u8fd0\u884c\u6587\u4ef6\u3002\u4ee5\u4e0a\u5c31\u662f\u5feb\u901f\u89e3\u538bWAR\u6587\u4ef6\u7684\u6559\u7a0b\uff0c\u52a8\u624b\u5b9e\u8df5\u4e00\u4e0b\uff0c\u5bf9Java\u7684Linux\u5e94\u7528\u7a0b\u5e8f\u90e8\u7f72\u4e5f\u4f1a\u6709\u5f88\u5927\u7684\u5e2e\u52a9\uff0c\u5e0c\u671b\u672c\u6587\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n","protected":false},"author":1,"featured_media":288492,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-288491","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/288491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=288491"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/288491\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/288492"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=288491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=288491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=288491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}