{"id":37521,"date":"2024-11-26T09:50:44","date_gmt":"2024-11-26T01:50:44","guid":{"rendered":"https:\/\/fwq.ai\/blog\/37521\/"},"modified":"2024-11-26T09:50:44","modified_gmt":"2024-11-26T01:50:44","slug":"win7%e6%80%8e%e4%b9%88%e9%85%8d%e7%bd%aetomcat","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/37521\/","title":{"rendered":"win7\u600e\u4e48\u914d\u7f6etomcat"},"content":{"rendered":"<blockquote><p>\n  \u5728 windows 7 \u4e0a\u914d\u7f6e tomcat \u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u4e0b\u8f7d tomcat\uff1a\u4ece apache tomcat \u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u3002\u5b89\u88c5 tomcat\uff1a\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\uff0c\u63a5\u53d7\u8bb8\u53ef\u534f\u8bae\u5e76\u9009\u62e9\u5b89\u88c5\u76ee\u5f55\uff0c\u786e\u4fdd\u9009\u4e2d\u201c\u4f7f\u7528 tomcat native \u5e93\u201d\u9009\u9879\u3002\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff1a\u53f3\u952e\u5355\u51fb\u201c\u8ba1\u7b97\u673a\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u2192\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u2192\u201c\u73af\u5883\u53d8\u91cf\u201d\u2192\u65b0\u5efa\uff0c\u8f93\u5165\u201ccatalina_home\u201d\u53d8\u91cf\u540d\u548c tomcat \u5b89\u88c5\u76ee\u5f55\u53d8\u91cf\u503c\u3002\u4fee\u6539\u670d\u52a1\u8bbe\u7f6e\uff1a\u5728 tomcat \u7684 bin \u76ee\u5f55\u4e2d\uff0c\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00 tomcat9w.ex\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202409\/25\/2024092514434276056.jpg\" class=\"aligncenter\" title=\"win7\u600e\u4e48\u914d\u7f6etomcat\u63d2\u56fe\" alt=\"win7\u600e\u4e48\u914d\u7f6etomcat\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5728 Windows 7 \u4e0a\u914d\u7f6e Tomcat<\/strong><\/p>\n<p>\u5728 Windows 7 \u7cfb\u7edf\u4e0a\u914d\u7f6e Tomcat \u5e94\u7528\u7a0b\u5e8f\u670d\u52a1\u5668\u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<p><strong>1. \u4e0b\u8f7d Tomcat<\/strong><\/p>\n<ul>\n<li>\u524d\u5f80 Apache Tomcat \u7f51\u7ad9\uff08https:\/\/..org\/\uff09<\/li>\n<li>\u4e0b\u8f7d\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\uff08Windows\uff09\u7684\u6700\u65b0 Tomcat \u7248\u672c<\/li>\n<\/ul>\n<p><strong>2. \u5b89\u88c5 Tomcat<\/strong><\/p>\n<ul>\n<li>\u8fd0\u884c\u4e0b\u8f7d\u7684\u5b89\u88c5\u7a0b\u5e8f<\/li>\n<li>\u63a5\u53d7\u8bb8\u53ef\u534f\u8bae\u5e76\u9009\u62e9\u5b89\u88c5\u76ee\u5f55<\/li>\n<li>\u786e\u4fdd\u9009\u4e2d\u201cUse Tomcat Native library\uff08\u4f7f\u7528 Tomcat Native \u5e93\uff09\u201d\u9009\u9879<\/li>\n<\/ul>\n<p><strong>3. \u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/strong><\/p>\n<ul>\n<li>\u53f3\u952e\u5355\u51fb\u201c\u8ba1\u7b97\u673a\u201d\u56fe\u6807\u5e76\u9009\u62e9\u201c\u5c5e\u6027\u201d<\/li>\n<li>\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d<\/li>\n<li>\u5728\u201c\u73af\u5883\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u70b9\u51fb\u201c\u65b0\u5efa\u201d\u6309\u94ae<\/li>\n<li>\u5728\u201c\u53d8\u91cf\u540d\u201d\u5b57\u6bb5\u8f93\u5165\u201cCATALINA_HOME\u201d\uff0c\u5728\u201c\u53d8\u91cf\u503c\u201d\u5b57\u6bb5\u8f93\u5165 Tomcat \u7684\u5b89\u88c5\u76ee\u5f55<\/li>\n<\/ul>\n<p><strong>4. \u4fee\u6539\u670d\u52a1\u8bbe\u7f6e<\/strong><\/p>\n<ul>\n<li>\u5bfc\u822a\u5230 Tomcat \u7684 bin \u76ee\u5f55\uff08\u4f8b\u5982\uff1aC:Program FilesApache Tomcat 9.0in\uff09<\/li>\n<li>\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff08\u4f8b\u5982\u8bb0\u4e8b\u672c\uff09\u6253\u5f00 tomcat9w.exe.config \u6587\u4ef6\uff08Windows 7 \u4e2d\u7684 Tomcat \u670d\u52a1\u53ef\u6267\u884c\u6587\u4ef6\uff09<\/li>\n<li>\n<p>\u627e\u5230\u4ee5\u4e0b\u884c\uff1a<\/p>\n<pre>&lt;Connector port=\"8080\" protocol=\"HTTP\/1.1\" connectionTimeout=\"20000\" redirectPort=\"8443\" \/&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<li>\u5c06\u7aef\u53e3\u53f7 8080 \u66f4\u6539\u4e3a\u60a8\u60f3\u8981\u7684\u7aef\u53e3\u53f7<\/li>\n<li>\n<p>\u53ef\u9009\uff1a\u5982\u679c\u8981\u542f\u7528 SSL\/TLS\uff0c\u8bf7\u4fee\u6539 \u5143\u7d20\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u5c5e\u6027\uff1a <\/p>\n<pre>sslProtocol=\"TLSv1+TLSv1.1+TLSv1.2\"\nkeystoreFile=\"path\/to\/keystore.jks\"\nkeystorePass=\"password\"<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<\/ul>\n<p><strong>5. \u542f\u52a8 Tomcat \u670d\u52a1<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00\u201c\u670d\u52a1\u201d\u63a7\u5236\u9762\u677f\uff08\u901a\u8fc7\u5728\u201c\u8fd0\u884c\u201d\u5bf9\u8bdd\u6846\u4e2d\u8f93\u5165 services.msc\uff09<\/li>\n<li>\u627e\u5230\u201cApache Tomcat 9\u201d\u670d\u52a1\u5e76\u53f3\u952e\u5355\u51fb\u5b83<\/li>\n<li>\u9009\u62e9\u201c\u542f\u52a8\u201d<\/li>\n<\/ul>\n<p><strong>6. \u9a8c\u8bc1\u5b89\u88c5<\/strong><\/p>\n<ul>\n<li>\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee http:\/\/localhost:\/\uff08\u4f8b\u5982\uff1ahttp:\/\/localhost:8080\uff09<\/li>\n<li>\u5982\u679c\u60a8\u770b\u5230 Tomcat \u6b22\u8fce\u9875\u9762\uff0c\u5219\u8868\u660e\u5df2\u6210\u529f\u914d\u7f6e\u548c\u542f\u52a8 Tomcat<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662fwin7\u600e\u4e48\u914d\u7f6e\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 windows 7 \u4e0a\u914d\u7f6e tomcat \u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u4e0b\u8f7d tomcat\uff1a\u4ece apache tomcat \u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u3002\u5b89\u88c5 tomcat\uff1a\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\uff0c\u63a5\u53d7\u8bb8\u53ef\u534f\u8bae\u5e76\u9009\u62e9\u5b89\u88c5\u76ee\u5f55\uff0c\u786e\u4fdd\u9009\u4e2d\u201c\u4f7f\u7528 tomcat native \u5e93\u201d\u9009\u9879\u3002\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff1a\u53f3\u952e\u5355\u51fb\u201c\u8ba1\u7b97\u673a\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u2192\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u2192\u201c\u73af\u5883\u53d8\u91cf\u201d\u2192\u65b0\u5efa\uff0c\u8f93\u5165\u201ccatalina_home\u201d\u53d8\u91cf\u540d\u548c tomcat \u5b89\u88c5\u76ee\u5f55\u53d8\u91cf\u503c\u3002\u4fee\u6539\u670d\u52a1\u8bbe\u7f6e\uff1a\u5728 tomcat \u7684 bin \u76ee\u5f55\u4e2d\uff0c\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00 tomcat9w.ex \u5728 Windows 7 \u4e0a\u914d\u7f6e Tomcat \u5728 Windows 7 \u7cfb\u7edf\u4e0a\u914d\u7f6e Tomcat \u5e94\u7528\u7a0b\u5e8f\u670d\u52a1\u5668\u9700\u8981\u4ee5\u4e0b\u6b65\u9aa4\uff1a 1. \u4e0b\u8f7d Tomcat \u524d\u5f80 Apache Tomcat \u7f51\u7ad9\uff08https:\/\/..org\/\uff09 \u4e0b\u8f7d\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\uff08Windows\uff09\u7684\u6700\u65b0 Tomcat \u7248\u672c 2. \u5b89\u88c5 Tomcat \u8fd0\u884c\u4e0b\u8f7d\u7684\u5b89\u88c5\u7a0b\u5e8f \u63a5\u53d7\u8bb8\u53ef\u534f\u8bae\u5e76\u9009\u62e9\u5b89\u88c5\u76ee\u5f55 \u786e\u4fdd\u9009\u4e2d\u201cUse Tomcat Native library\uff08\u4f7f\u7528 Tomcat Native \u5e93\uff09\u201d\u9009\u9879 3. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-37521","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/37521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=37521"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/37521\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=37521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=37521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=37521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}