{"id":57990,"date":"2025-08-15T23:42:36","date_gmt":"2025-08-15T15:42:36","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/57990.html"},"modified":"2025-08-15T23:42:36","modified_gmt":"2025-08-15T15:42:36","slug":"%e4%bc%81%e4%b8%9a%e7%ba%a7web%e5%ba%94%e7%94%a8%e6%9c%8d%e5%8a%a1%e5%99%a8tomcat-9","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/57990.html","title":{"rendered":"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668TOMCAT"},"content":{"rendered":"<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e00\u3001HTTP \u534f\u8bae&#xff08;Hypertext Transfer Protocol&#xff0c;\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">HTTP \u662f\u7528\u4e8e\u5728\u4e07\u7ef4\u7f51&#xff08;WWW&#xff09;\u4e2d\u4f20\u8f93\u6570\u636e\u7684\u5e94\u7528\u5c42\u534f\u8bae&#xff0c;\u662f\u5ba2\u6237\u7aef&#xff08;\u5982\u6d4f\u89c8\u5668&#xff09;\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u901a\u4fe1\u7684\u57fa\u7840\u3002\u5b83\u5b9a\u4e49\u4e86\u8bf7\u6c42\u548c\u54cd\u5e94\u7684\u683c\u5f0f\u3001\u4f20\u8f93\u89c4\u5219\u53ca\u72b6\u6001\u7801\u7b49&#xff0c;\u4f7f\u4e0d\u540c\u8bbe\u5907\u548c\u7cfb\u7edf\u80fd\u591f\u901a\u8fc7\u4e92\u8054\u7f51\u4ea4\u6362\u4fe1\u606f&#xff08;\u5982\u7f51\u9875\u3001\u56fe\u7247\u3001\u89c6\u9891\u7b49&#xff09;\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1. HTTP \u7684\u6838\u5fc3\u7279\u70b9<\/p>\n<ul>\n<li style=\"text-align:justify\">\u65e0\u8fde\u63a5&#xff1a;\u4f20\u7edf HTTP\/1.1 \u4e4b\u524d\u7684\u7248\u672c\u4e3a \u201c\u65e0\u8fde\u63a5\u201d \u6a21\u5f0f&#xff0c;\u5373\u6bcf\u6b21\u8bf7\u6c42 &#8211; \u54cd\u5e94\u540e\u8fde\u63a5\u5173\u95ed&#xff1b;HTTP\/1.1 \u5f15\u5165 \u201c\u6301\u4e45\u8fde\u63a5\u201d&#xff08;Connection: keep-alive&#xff09;&#xff0c;\u5141\u8bb8\u540c\u4e00\u8fde\u63a5\u5904\u7406\u591a\u4e2a\u8bf7\u6c42&#xff0c;\u51cf\u5c11\u8fde\u63a5\u5efa\u7acb\u5f00\u9500\u3002<\/li>\n<li style=\"text-align:justify\">\u65e0\u72b6\u6001&#xff1a;\u670d\u52a1\u5668\u4e0d\u4fdd\u7559\u5ba2\u6237\u7aef\u7684\u5386\u53f2\u8bf7\u6c42\u4fe1\u606f&#xff0c;\u6bcf\u6b21\u8bf7\u6c42\u90fd\u662f\u72ec\u7acb\u7684\u3002\u82e5\u9700\u7ef4\u6301\u72b6\u6001&#xff08;\u5982\u767b\u5f55\u72b6\u6001&#xff09;&#xff0c;\u9700\u901a\u8fc7 Cookie\u3001Session \u7b49\u673a\u5236\u5b9e\u73b0\u3002<\/li>\n<li style=\"text-align:justify\">\u5a92\u4f53\u65e0\u5173\u6027&#xff1a;\u53ea\u8981\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u90fd\u80fd\u5904\u7406\u5bf9\u5e94\u7684\u6570\u636e\u683c\u5f0f&#xff08;\u5982 HTML\u3001JSON\u3001\u56fe\u7247\u7b49&#xff09;&#xff0c;HTTP \u53ef\u4f20\u8f93\u4efb\u610f\u7c7b\u578b\u7684\u5a92\u4f53\u3002<\/li>\n<li style=\"text-align:justify\">\u8bf7\u6c42 &#8211; \u54cd\u5e94\u6a21\u5f0f&#xff1a;\u7531\u5ba2\u6237\u7aef\u4e3b\u52a8\u53d1\u8d77\u8bf7\u6c42&#xff0c;\u670d\u52a1\u5668\u88ab\u52a8\u54cd\u5e94&#xff0c;\u9075\u5faa \u201c\u4e00\u95ee\u4e00\u7b54\u201d \u7684\u4ea4\u4e92\u903b\u8f91\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2. HTTP \u8bf7\u6c42\u4e0e\u54cd\u5e94\u683c\u5f0f<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">HTTP \u901a\u4fe1\u901a\u8fc7 \u201c\u8bf7\u6c42\u62a5\u6587\u201d \u548c \u201c\u54cd\u5e94\u62a5\u6587\u201d \u5b8c\u6210&#xff0c;\u4e24\u8005\u683c\u5f0f\u7c7b\u4f3c&#xff0c;\u5747\u7531\u8d77\u59cb\u884c\u3001\u5934\u90e8\u5b57\u6bb5\u3001\u7a7a\u884c\u3001\u4e3b\u4f53\u56db\u90e8\u5206\u7ec4\u6210\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u8bf7\u6c42\u62a5\u6587<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">plaintext<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&lt;\u8bf7\u6c42\u65b9\u6cd5&gt; &lt;URL&gt; &lt;\u534f\u8bae\u7248\u672c&gt;\u00a0 # \u8d77\u59cb\u884c<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&lt;\u8bf7\u6c42\u5934\u90e8\u5b57\u6bb51&gt;: &lt;\u503c1&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u5934\u90e8&#xff08;\u952e\u503c\u5bf9&#xff0c;\u63cf\u8ff0\u8bf7\u6c42\u5c5e\u6027&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&lt;\u8bf7\u6c42\u5934\u90e8\u5b57\u6bb52&gt;: &lt;\u503c2&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#8230;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;\u7a7a\u884c&#xff0c;\u5206\u9694\u5934\u90e8\u4e0e\u4e3b\u4f53&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&lt;\u8bf7\u6c42\u4e3b\u4f53&gt;\u00a0 # \u53ef\u9009&#xff0c;\u5982POST\u8bf7\u6c42\u7684\u8868\u5355\u6570\u636e\u3001JSON\u7b49<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">\u8bf7\u6c42\u65b9\u6cd5&#xff1a;\u8868\u793a\u5bf9\u8d44\u6e90\u7684\u64cd\u4f5c&#xff0c;\u5e38\u89c1\u5305\u62ec&#xff1a;\n<ul>\n<li style=\"text-align:justify\">GET&#xff1a;\u83b7\u53d6\u8d44\u6e90&#xff08;\u5982\u6d4f\u89c8\u7f51\u9875&#xff09;&#xff0c;\u53c2\u6570\u5728 URL \u4e2d&#xff0c;\u957f\u5ea6\u6709\u9650\u5236\u3002<\/li>\n<li style=\"text-align:justify\">POST&#xff1a;\u63d0\u4ea4\u6570\u636e&#xff08;\u5982\u8868\u5355\u63d0\u4ea4&#xff09;&#xff0c;\u53c2\u6570\u5728\u8bf7\u6c42\u4e3b\u4f53\u4e2d&#xff0c;\u9002\u5408\u5927\u91cf\u6570\u636e\u3002<\/li>\n<li style=\"text-align:justify\">PUT\/DELETE&#xff1a;\u4fee\u6539 \/ \u5220\u9664\u8d44\u6e90&#xff08;RESTful API \u5e38\u7528&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">HEAD&#xff1a;\u4ec5\u83b7\u53d6\u54cd\u5e94\u5934\u90e8&#xff08;\u7528\u4e8e\u68c0\u67e5\u8d44\u6e90\u662f\u5426\u5b58\u5728&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u8bf7\u6c42\u5934\u90e8&#xff1a;\u793a\u4f8b\u5b57\u6bb5&#xff1a;\n<ul>\n<li style=\"text-align:justify\">Host&#xff1a;\u76ee\u6807\u670d\u52a1\u5668\u57df\u540d&#xff08;\u5982Host: www.example.com&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">User-Agent&#xff1a;\u5ba2\u6237\u7aef\u4fe1\u606f&#xff08;\u5982\u6d4f\u89c8\u5668\u7c7b\u578b&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">Accept&#xff1a;\u5ba2\u6237\u7aef\u53ef\u63a5\u6536\u7684\u6570\u636e\u683c\u5f0f&#xff08;\u5982text\/html&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">Cookie&#xff1a;\u5ba2\u6237\u7aef\u5b58\u50a8\u7684\u72b6\u6001\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u54cd\u5e94\u62a5\u6587<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">plaintext<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&lt;\u534f\u8bae\u7248\u672c&gt; &lt;\u72b6\u6001\u7801&gt; &lt;\u72b6\u6001\u63cf\u8ff0&gt;\u00a0 # \u8d77\u59cb\u884c<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&lt;\u54cd\u5e94\u5934\u90e8\u5b57\u6bb51&gt;: &lt;\u503c1&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u5934\u90e8&#xff08;\u63cf\u8ff0\u54cd\u5e94\u5c5e\u6027&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&lt;\u54cd\u5e94\u5934\u90e8\u5b57\u6bb52&gt;: &lt;\u503c2&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#8230;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;\u7a7a\u884c&#xff0c;\u5206\u9694\u5934\u90e8\u4e0e\u4e3b\u4f53&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&lt;\u54cd\u5e94\u4e3b\u4f53&gt;\u00a0 # \u670d\u52a1\u5668\u8fd4\u56de\u7684\u6570\u636e&#xff08;\u5982HTML\u3001JSON\u7b49&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">\u72b6\u6001\u7801&#xff1a;\u8868\u793a\u8bf7\u6c42\u5904\u7406\u7ed3\u679c&#xff0c;\u5206\u4e3a 5 \u7c7b&#xff1a;\n<ul>\n<li style=\"text-align:justify\">1xx&#xff08;\u4fe1\u606f&#xff09;&#xff1a;\u8bf7\u6c42\u5df2\u63a5\u6536&#xff0c;\u7ee7\u7eed\u5904\u7406&#xff08;\u5982100 Continue&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">2xx&#xff08;\u6210\u529f&#xff09;&#xff1a;\u8bf7\u6c42\u6b63\u5e38\u5904\u7406&#xff08;\u5982200 OK&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">3xx&#xff08;\u91cd\u5b9a\u5411&#xff09;&#xff1a;\u9700\u8fdb\u4e00\u6b65\u64cd\u4f5c&#xff08;\u5982301 Moved Permanently\u6c38\u4e45\u91cd\u5b9a\u5411&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">4xx&#xff08;\u5ba2\u6237\u7aef\u9519\u8bef&#xff09;&#xff1a;\u8bf7\u6c42\u6709\u8bef&#xff08;\u5982404 Not Found\u8d44\u6e90\u4e0d\u5b58\u5728&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">5xx&#xff08;\u670d\u52a1\u5668\u9519\u8bef&#xff09;&#xff1a;\u670d\u52a1\u5668\u5904\u7406\u5931\u8d25&#xff08;\u5982500 Internal Server Error&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u54cd\u5e94\u5934\u90e8&#xff1a;\u793a\u4f8b\u5b57\u6bb5&#xff1a;\n<ul>\n<li style=\"text-align:justify\">Content-Type&#xff1a;\u54cd\u5e94\u4e3b\u4f53\u7684\u6570\u636e\u7c7b\u578b&#xff08;\u5982text\/html; charset&#061;utf-8&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">Content-Length&#xff1a;\u54cd\u5e94\u4e3b\u4f53\u7684\u957f\u5ea6&#xff08;\u5b57\u8282\u6570&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">Set-Cookie&#xff1a;\u670d\u52a1\u5668\u5411\u5ba2\u6237\u7aef\u8bbe\u7f6e Cookie\u3002<\/li>\n<li style=\"text-align:justify\">Cache-Control&#xff1a;\u7f13\u5b58\u7b56\u7565&#xff08;\u5982max-age&#061;3600\u8868\u793a\u7f13\u5b58 1 \u5c0f\u65f6&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3. HTTP \u7248\u672c\u6f14\u8fdb<\/p>\n<ul>\n<li style=\"text-align:justify\">HTTP\/1.0&#xff08;1996&#xff09;&#xff1a;\u57fa\u7840\u7248\u672c&#xff0c;\u65e0\u6301\u4e45\u8fde\u63a5&#xff0c;\u6bcf\u6b21\u8bf7\u6c42\u9700\u65b0\u5efa\u8fde\u63a5&#xff0c;\u6548\u7387\u4f4e\u3002<\/li>\n<li style=\"text-align:justify\">HTTP\/1.1&#xff08;1999&#xff09;&#xff1a;\u652f\u6301\u6301\u4e45\u8fde\u63a5\u3001\u7ba1\u9053\u5316\u8bf7\u6c42&#xff08;\u540c\u4e00\u8fde\u63a5\u5e76\u884c\u53d1\u9001\u591a\u4e2a\u8bf7\u6c42&#xff09;\u3001\u865a\u62df\u4e3b\u673a&#xff08;\u901a\u8fc7Host\u5934\u90e8\u533a\u5206\u57df\u540d&#xff09;&#xff0c;\u662f\u76ee\u524d\u5e94\u7528\u6700\u5e7f\u6cdb\u7684\u7248\u672c\u3002<\/li>\n<li style=\"text-align:justify\">HTTP\/2&#xff08;2015&#xff09;&#xff1a;\u5f15\u5165\u4e8c\u8fdb\u5236\u5e27\u3001\u591a\u8def\u590d\u7528&#xff08;\u540c\u4e00\u8fde\u63a5\u5e76\u53d1\u5904\u7406\u591a\u4e2a\u8bf7\u6c42&#xff0c;\u65e0\u963b\u585e&#xff09;\u3001\u5934\u90e8\u538b\u7f29\u3001\u670d\u52a1\u5668\u63a8\u9001&#xff08;\u4e3b\u52a8\u63a8\u9001\u5173\u8054\u8d44\u6e90&#xff09;&#xff0c;\u5927\u5e45\u63d0\u5347\u6027\u80fd\u3002<\/li>\n<li style=\"text-align:justify\">HTTP\/3&#xff08;2022&#xff09;&#xff1a;\u57fa\u4e8e QUIC \u534f\u8bae&#xff08;UDP \u7684\u6539\u8fdb\u7248&#xff09;&#xff0c;\u89e3\u51b3 HTTP\/2 \u5728\u9ad8\u5ef6\u8fdf\u7f51\u7edc\u4e0b\u7684\u6027\u80fd\u95ee\u9898&#xff0c;\u652f\u6301\u66f4\u5feb\u7684\u8fde\u63a5\u5efa\u7acb\u548c\u66f4\u597d\u7684\u62e5\u585e\u63a7\u5236\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e8c\u3001B\/S \u7ed3\u6784&#xff08;Browser\/Server&#xff0c;\u6d4f\u89c8\u5668 \/ \u670d\u52a1\u5668\u7ed3\u6784&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">B\/S \u7ed3\u6784\u662f\u4e00\u79cd\u8f6f\u4ef6\u67b6\u6784\u6a21\u5f0f&#xff0c;\u901a\u8fc7\u6d4f\u89c8\u5668\u4f5c\u4e3a\u5ba2\u6237\u7aef&#xff0c;\u670d\u52a1\u5668\u4f5c\u4e3a\u6570\u636e\u5904\u7406\u4e2d\u5fc3&#xff0c;\u4e24\u8005\u901a\u8fc7 HTTP \u534f\u8bae\u901a\u4fe1&#xff0c;\u65e0\u9700\u5b89\u88c5\u4e13\u95e8\u7684\u5ba2\u6237\u7aef\u8f6f\u4ef6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1. B\/S \u7ed3\u6784\u7684\u7ec4\u6210<\/p>\n<ul>\n<li style=\"text-align:justify\">\u5ba2\u6237\u7aef&#xff08;Browser&#xff09;&#xff1a;\u7528\u6237\u901a\u8fc7\u6d4f\u89c8\u5668&#xff08;\u5982 Chrome\u3001Firefox&#xff09;\u53d1\u9001\u8bf7\u6c42&#xff0c;\u63a5\u6536\u5e76\u6e32\u67d3\u670d\u52a1\u5668\u8fd4\u56de\u7684\u5185\u5bb9&#xff08;\u5982 HTML \u9875\u9762\u3001\u56fe\u7247\u7b49&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u670d\u52a1\u5668&#xff08;Server&#xff09;&#xff1a;\u63a5\u6536\u5ba2\u6237\u7aef\u8bf7\u6c42&#xff0c;\u5904\u7406\u4e1a\u52a1\u903b\u8f91&#xff08;\u5982\u6570\u636e\u67e5\u8be2\u3001\u8ba1\u7b97&#xff09;&#xff0c;\u5e76\u8fd4\u56de\u54cd\u5e94&#xff08;\u5982\u52a8\u6001\u751f\u6210\u7684 HTML\u3001JSON \u6570\u636e&#xff09;\u3002\u670d\u52a1\u5668\u53ef\u5206\u4e3a&#xff1a;\n<ul>\n<li style=\"text-align:justify\">Web \u670d\u52a1\u5668&#xff1a;\u5904\u7406 HTTP \u8bf7\u6c42&#xff08;\u5982 Nginx\u3001Apache&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5e94\u7528\u670d\u52a1\u5668&#xff1a;\u6267\u884c\u4e1a\u52a1\u4ee3\u7801&#xff08;\u5982 Java \u7684 Tomcat\u3001Python \u7684 Django&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u6570\u636e\u5e93\u670d\u52a1\u5668&#xff1a;\u5b58\u50a8\u6570\u636e&#xff08;\u5982 MySQL\u3001PostgreSQL&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u901a\u4fe1\u534f\u8bae&#xff1a;\u57fa\u4e8e HTTP\/HTTPS&#xff0c;\u786e\u4fdd\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2. B\/S \u7ed3\u6784\u7684\u5de5\u4f5c\u6d41\u7a0b<\/p>\n<li style=\"text-align:justify\">\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165 URL&#xff08;\u5982https:\/\/www.example.com&#xff09;\u6216\u70b9\u51fb\u94fe\u63a5\u3002<\/li>\n<li style=\"text-align:justify\">\u6d4f\u89c8\u5668\u89e3\u6790 URL&#xff0c;\u901a\u8fc7 DNS \u83b7\u53d6\u670d\u52a1\u5668 IP \u5730\u5740&#xff0c;\u5efa\u7acb TCP \u8fde\u63a5&#xff08;HTTP \u57fa\u4e8e TCP&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u6d4f\u89c8\u5668\u53d1\u9001 HTTP \u8bf7\u6c42&#xff08;\u5982GET \/index.html&#xff09;\u5230\u670d\u52a1\u5668\u3002<\/li>\n<li style=\"text-align:justify\">\u670d\u52a1\u5668\u63a5\u6536\u8bf7\u6c42&#xff0c;\u5904\u7406\u4e1a\u52a1\u903b\u8f91&#xff08;\u5982\u67e5\u8be2\u6570\u636e\u5e93\u3001\u751f\u6210\u52a8\u6001\u9875\u9762&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u670d\u52a1\u5668\u8fd4\u56de HTTP \u54cd\u5e94&#xff08;\u5982 HTML \u9875\u9762\u3001JSON \u6570\u636e&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u6d4f\u89c8\u5668\u89e3\u6790\u54cd\u5e94\u5185\u5bb9&#xff0c;\u6e32\u67d3\u9875\u9762\u5e76\u5c55\u793a\u7ed9\u7528\u6237\u3002<\/li>\n<li style=\"text-align:justify\">\u82e5\u4e3a\u6301\u4e45\u8fde\u63a5&#xff0c;\u8fde\u63a5\u53ef\u590d\u7528&#xff1b;\u5426\u5219\u5173\u95ed TCP \u8fde\u63a5\u3002<\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3. B\/S \u7ed3\u6784\u7684\u4f18\u52bf\u4e0e\u52a3\u52bf<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u4f18\u52bf<\/p>\n<ul>\n<li style=\"text-align:justify\">\u65e0\u9700\u5b89\u88c5\u5ba2\u6237\u7aef&#xff1a;\u7528\u6237\u901a\u8fc7\u6d4f\u89c8\u5668\u5373\u53ef\u8bbf\u95ee&#xff0c;\u964d\u4f4e\u90e8\u7f72\u548c\u7ef4\u62a4\u6210\u672c&#xff08;\u5c24\u5176\u9002\u5408\u591a\u8bbe\u5907\u3001\u8de8\u5e73\u53f0\u573a\u666f&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u6613\u4e8e\u5347\u7ea7&#xff1a;\u53ea\u9700\u66f4\u65b0\u670d\u52a1\u5668\u7aef\u7a0b\u5e8f&#xff0c;\u6240\u6709\u7528\u6237\u5373\u53ef\u4f7f\u7528\u65b0\u529f\u80fd&#xff0c;\u65e0\u9700\u9010\u4e2a\u66f4\u65b0\u5ba2\u6237\u7aef\u3002<\/li>\n<li style=\"text-align:justify\">\u8de8\u5e73\u53f0\u6027&#xff1a;\u517c\u5bb9 Windows\u3001macOS\u3001Linux \u7b49\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u4ee5\u53ca\u624b\u673a\u3001\u5e73\u677f\u7b49\u79fb\u52a8\u8bbe\u5907\u3002<\/li>\n<li style=\"text-align:justify\">\u96c6\u4e2d\u7ba1\u7406&#xff1a;\u6570\u636e\u5b58\u50a8\u5728\u670d\u52a1\u5668&#xff0c;\u4fbf\u4e8e\u5907\u4efd\u3001\u5b89\u5168\u7ba1\u63a7\u548c\u7edf\u4e00\u7ef4\u62a4\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u52a3\u52bf<\/p>\n<ul>\n<li style=\"text-align:justify\">\u4f9d\u8d56\u7f51\u7edc&#xff1a;\u7f51\u7edc\u5ef6\u8fdf\u6216\u4e2d\u65ad\u4f1a\u76f4\u63a5\u5f71\u54cd\u4f7f\u7528\u4f53\u9a8c&#xff0c;\u79bb\u7ebf\u529f\u80fd\u53d7\u9650\u3002<\/li>\n<li style=\"text-align:justify\">\u670d\u52a1\u5668\u538b\u529b\u5927&#xff1a;\u6240\u6709\u8bf7\u6c42\u96c6\u4e2d\u5728\u670d\u52a1\u5668&#xff0c;\u9ad8\u5e76\u53d1\u573a\u666f\u4e0b\u9700\u66f4\u5f3a\u7684\u786c\u4ef6\u548c\u4f18\u5316\u3002<\/li>\n<li style=\"text-align:justify\">\u6d4f\u89c8\u5668\u517c\u5bb9\u6027&#xff1a;\u4e0d\u540c\u6d4f\u89c8\u5668\u5bf9 HTML\/CSS\/JavaScript \u7684\u89e3\u6790\u53ef\u80fd\u5b58\u5728\u5dee\u5f02&#xff0c;\u9700\u989d\u5916\u9002\u914d\u3002<\/li>\n<li style=\"text-align:justify\">\u5b89\u5168\u6027\u98ce\u9669&#xff1a;HTTP \u4f20\u8f93\u6570\u636e\u53ef\u80fd\u88ab\u52ab\u6301&#xff08;HTTPS \u53ef\u7f13\u89e3&#xff09;&#xff0c;\u9700\u4f9d\u8d56\u670d\u52a1\u5668\u5b89\u5168\u9632\u62a4\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e09\u3001HTTP \u534f\u8bae\u4e0e B\/S \u7ed3\u6784\u7684\u5173\u7cfb<\/p>\n<ul>\n<li style=\"text-align:justify\">HTTP \u662f B\/S \u7ed3\u6784\u7684\u901a\u4fe1\u57fa\u7840&#xff1a;\u6d4f\u89c8\u5668\u4e0e\u670d\u52a1\u5668\u901a\u8fc7 HTTP \u534f\u8bae\u4ea4\u6362\u6570\u636e&#xff0c;\u786e\u4fdd\u8bf7\u6c42\u548c\u54cd\u5e94\u7684\u683c\u5f0f\u7edf\u4e00\u3002<\/li>\n<li style=\"text-align:justify\">B\/S \u7ed3\u6784\u4f9d\u8d56 HTTP \u7684\u7279\u6027&#xff1a;\u4f8b\u5982&#xff0c;HTTP \u7684\u65e0\u72b6\u6001\u6027\u901a\u8fc7 Cookie\/Session \u5b9e\u73b0\u7528\u6237\u767b\u5f55\u72b6\u6001\u7ef4\u6301&#xff1b;HTTP\/2 \u7684\u591a\u8def\u590d\u7528\u63d0\u5347 B\/S \u67b6\u6784\u7684\u6027\u80fd\u3002<\/li>\n<li style=\"text-align:justify\">\u534f\u540c\u652f\u6491 Web \u5e94\u7528&#xff1a;B\/S \u7ed3\u6784\u5b9a\u4e49\u4e86 \u201c\u6d4f\u89c8\u5668 &#8211; \u670d\u52a1\u5668\u201d \u7684\u89d2\u8272\u5206\u5de5&#xff0c;HTTP \u5219\u5b9a\u4e49\u4e86\u4e24\u8005\u7684\u901a\u4fe1\u89c4\u5219&#xff0c;\u5171\u540c\u652f\u6491\u7f51\u9875\u6d4f\u89c8\u3001\u5728\u7ebf\u8d2d\u7269\u3001\u793e\u4ea4\u5e73\u53f0\u7b49 Web \u5e94\u7528\u7684\u8fd0\u884c\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u56db\u3001\u5178\u578b\u5e94\u7528\u573a\u666f<\/p>\n<ul>\n<li style=\"text-align:justify\">\u7f51\u7ad9\u6d4f\u89c8&#xff08;\u5982\u767e\u5ea6\u3001\u77e5\u4e4e&#xff09;&#xff1a;\u6d4f\u89c8\u5668\u53d1\u9001 HTTP \u8bf7\u6c42\u83b7\u53d6\u7f51\u9875&#xff0c;\u670d\u52a1\u5668\u8fd4\u56de HTML \u54cd\u5e94\u3002<\/li>\n<li style=\"text-align:justify\">\u5728\u7ebf\u529e\u516c&#xff08;\u5982\u9489\u9489\u3001\u4f01\u4e1a\u5fae\u4fe1&#xff09;&#xff1a;\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u670d\u52a1\u5668&#xff0c;\u5904\u7406\u6587\u6863\u3001\u6d88\u606f\u7b49\u6570\u636e\u3002<\/li>\n<li style=\"text-align:justify\">\u7535\u5546\u5e73\u53f0&#xff08;\u5982\u6dd8\u5b9d\u3001\u4eac\u4e1c&#xff09;&#xff1a;\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u63d0\u4ea4\u8ba2\u5355&#xff08;POST \u8bf7\u6c42&#xff09;&#xff0c;\u670d\u52a1\u5668\u5904\u7406\u5e76\u8fd4\u56de\u7ed3\u679c\u3002<\/li>\n<li style=\"text-align:justify\">API \u670d\u52a1&#xff08;\u5982\u5929\u6c14\u63a5\u53e3\u3001\u652f\u4ed8\u63a5\u53e3&#xff09;&#xff1a;\u5ba2\u6237\u7aef&#xff08;\u6d4f\u89c8\u5668\u6216 App&#xff09;\u901a\u8fc7 HTTP \u8bf7\u6c42\u8c03\u7528 API&#xff0c;\u670d\u52a1\u5668\u8fd4\u56de JSON \u683c\u5f0f\u6570\u636e\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u901a\u8fc7 HTTP \u534f\u8bae\u548c B\/S \u7ed3\u6784\u7684\u7ed3\u5408&#xff0c;\u4e92\u8054\u7f51\u5b9e\u73b0\u4e86\u5168\u7403\u8303\u56f4\u5185\u7684\u4fe1\u606f\u5171\u4eab\u548c\u4ea4\u4e92&#xff0c;\u6210\u4e3a\u73b0\u4ee3\u7f51\u7edc\u5e94\u7528\u7684\u6838\u5fc3\u67b6\u6784\u6a21\u5f0f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u524d\u7aef\u4e09\u5927\u6838\u5fc3\u6280\u672f<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u524d\u7aef\u4e09\u5927\u6838\u5fc3\u6280\u672f\u662f\u6784\u5efa\u7f51\u9875\u548c Web \u5e94\u7528\u7684\u57fa\u7840&#xff0c;\u5206\u522b\u8d1f\u8d23\u7ed3\u6784\u3001\u6837\u5f0f\u548c\u4ea4\u4e92\u903b\u8f91&#xff0c;\u4e09\u8005\u534f\u540c\u5de5\u4f5c\u5b9e\u73b0\u4e30\u5bcc\u7684\u7528\u6237\u754c\u9762\u548c\u4f53\u9a8c\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u4ecb\u7ecd&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1. HTML&#xff08;HyperText Markup Language&#xff0c;\u8d85\u6587\u672c\u6807\u8bb0\u8bed\u8a00&#xff09;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u6838\u5fc3\u4f5c\u7528&#xff1a;\u5b9a\u4e49\u7f51\u9875\u7684\u7ed3\u6784\u548c\u5185\u5bb9&#xff0c;\u662f\u7f51\u9875\u7684 \u201c\u9aa8\u67b6\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u672c\u8d28&#xff1a;\u4e0d\u662f\u7f16\u7a0b\u8bed\u8a00&#xff0c;\u800c\u662f\u4e00\u79cd\u6807\u8bb0\u8bed\u8a00&#xff0c;\u901a\u8fc7\u6807\u7b7e&#xff08;tag&#xff09;\u63cf\u8ff0\u6587\u672c\u3001\u56fe\u7247\u3001\u94fe\u63a5\u3001\u8868\u5355\u7b49\u5143\u7d20\u7684\u542b\u4e49\u548c\u6392\u5217\u65b9\u5f0f\u3002<\/li>\n<li style=\"text-align:justify\">\u5173\u952e\u7279\u6027&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u6807\u7b7e\u901a\u5e38\u6210\u5bf9\u51fa\u73b0&#xff08;\u5982\u00a0&lt;p&gt;&lt;\/p&gt;\u00a0\u8868\u793a\u6bb5\u843d&#xff0c;&lt;div&gt;&lt;\/div&gt;\u00a0\u8868\u793a\u5757\u7ea7\u5bb9\u5668&#xff09;&#xff0c;\u90e8\u5206\u4e3a\u5355\u6807\u7b7e&#xff08;\u5982\u00a0&lt;img&gt;\u00a0\u63d2\u5165\u56fe\u7247&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5177\u6709\u5d4c\u5957\u7ed3\u6784&#xff0c;\u53ef\u901a\u8fc7\u5c42\u7ea7\u5173\u7cfb\u7ec4\u7ec7\u5185\u5bb9&#xff08;\u5982\u00a0&lt;ul&gt;\u00a0\u5305\u542b\u00a0&lt;li&gt;\u00a0\u8868\u793a\u5217\u8868&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u652f\u6301\u8d85\u6587\u672c&#xff08;HyperText&#xff09;&#xff0c;\u5373\u901a\u8fc7\u00a0&lt;a&gt;\u00a0\u6807\u7b7e\u5b9e\u73b0\u4e0d\u540c\u9875\u9762\u6216\u8d44\u6e90\u7684\u8df3\u8f6c\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u4e3e\u4f8b&#xff1a;<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">html<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&lt;!DOCTYPE html&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&lt;html&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 &lt;head&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 &lt;title&gt;\u7f51\u9875\u6807\u9898&lt;\/title&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 &lt;\/head&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 &lt;body&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 &lt;h1&gt;\u8fd9\u662f\u4e00\u7ea7\u6807\u9898&lt;\/h1&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 &lt;p&gt;\u8fd9\u662f\u4e00\u6bb5\u6587\u672c&#xff0c;\u5305\u542b\u4e00\u4e2a&lt;a href&#061;&#034;https:\/\/example.com&#034;&gt;\u94fe\u63a5&lt;\/a&gt;\u3002&lt;\/p&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 &lt;img src&#061;&#034;image.jpg&#034; alt&#061;&#034;\u793a\u4f8b\u56fe\u7247&#034;&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 &lt;\/body&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&lt;\/html&gt;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2. CSS&#xff08;Cascading Style Sheets&#xff0c;\u5c42\u53e0\u6837\u5f0f\u8868&#xff09;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u6838\u5fc3\u4f5c\u7528&#xff1a;\u63a7\u5236\u7f51\u9875\u7684\u6837\u5f0f\u548c\u5e03\u5c40&#xff0c;\u662f\u7f51\u9875\u7684 \u201c\u5916\u89c2\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u672c\u8d28&#xff1a;\u7528\u4e8e\u5b9a\u4e49 HTML \u5143\u7d20\u7684\u89c6\u89c9\u8868\u73b0&#xff08;\u989c\u8272\u3001\u5b57\u4f53\u3001\u95f4\u8ddd\u3001\u4f4d\u7f6e\u7b49&#xff09;&#xff0c;\u5b9e\u73b0\u5185\u5bb9\u4e0e\u6837\u5f0f\u7684\u5206\u79bb\u3002<\/li>\n<li style=\"text-align:justify\">\u5173\u952e\u7279\u6027&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u9009\u62e9\u5668&#xff1a;\u901a\u8fc7\u6807\u7b7e\u540d\u3001\u7c7b\u540d&#xff08;class&#xff09;\u3001ID \u7b49\u5b9a\u4f4d HTML \u5143\u7d20&#xff08;\u5982\u00a0p\u00a0\u9009\u4e2d\u6240\u6709\u6bb5\u843d&#xff0c;.box\u00a0\u9009\u4e2d\u7c7b\u4e3a\u00a0box\u00a0\u7684\u5143\u7d20&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5c42\u53e0\u6027&#xff1a;\u591a\u4e2a\u6837\u5f0f\u89c4\u5219\u51b2\u7a81\u65f6&#xff0c;\u6309\u4f18\u5148\u7ea7&#xff08;\u6743\u91cd&#xff09;\u51b3\u5b9a\u6700\u7ec8\u751f\u6548\u7684\u6837\u5f0f&#xff08;\u5982 ID \u9009\u62e9\u5668\u4f18\u5148\u7ea7\u9ad8\u4e8e\u7c7b\u9009\u62e9\u5668&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u76d2\u5b50\u6a21\u578b&#xff1a;\u5c06\u5143\u7d20\u89c6\u4e3a \u201c\u76d2\u5b50\u201d&#xff0c;\u901a\u8fc7\u00a0margin&#xff08;\u5916\u8fb9\u8ddd&#xff09;\u3001border&#xff08;\u8fb9\u6846&#xff09;\u3001padding&#xff08;\u5185\u8fb9\u8ddd&#xff09;\u548c\u00a0content&#xff08;\u5185\u5bb9&#xff09;\u63a7\u5236\u5e03\u5c40\u3002<\/li>\n<li style=\"text-align:justify\">\u5e03\u5c40\u6280\u672f&#xff1a;\u652f\u6301\u6d6e\u52a8&#xff08;float&#xff09;\u3001\u5f39\u6027\u5e03\u5c40&#xff08;Flexbox&#xff09;\u3001\u7f51\u683c\u5e03\u5c40&#xff08;Grid&#xff09;\u7b49&#xff0c;\u5b9e\u73b0\u590d\u6742\u9875\u9762\u6392\u7248\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u4e3e\u4f8b&#xff1a;<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">css<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\/* \u9009\u4e2d\u6240\u6709\u6bb5\u843d&#xff0c;\u8bbe\u7f6e\u6587\u5b57\u989c\u8272\u548c\u5b57\u4f53 *\/<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">p {<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 color: #333;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 font-family: &#034;Arial&#034;, sans-serif;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 line-height: 1.6;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">}<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\/* \u9009\u4e2d\u7c7b\u4e3a &#034;box&#034; \u7684\u5143\u7d20&#xff0c;\u8bbe\u7f6e\u80cc\u666f\u548c\u8fb9\u8ddd *\/<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">.box {<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 background-color: #f0f0f0;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 padding: 20px;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 margin: 10px;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 border-radius: 5px;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">}<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3. JavaScript&#xff08;\u7b80\u79f0 JS&#xff09;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u6838\u5fc3\u4f5c\u7528&#xff1a;\u5b9e\u73b0\u7f51\u9875\u7684\u4ea4\u4e92\u903b\u8f91\u548c\u52a8\u6001\u6548\u679c&#xff0c;\u662f\u7f51\u9875\u7684 \u201c\u884c\u4e3a\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u672c\u8d28&#xff1a;\u4e00\u79cd\u7f16\u7a0b\u8bed\u8a00&#xff08;\u811a\u672c\u8bed\u8a00&#xff09;&#xff0c;\u53ef\u76f4\u63a5\u5d4c\u5165 HTML \u6216\u5355\u72ec\u4f5c\u4e3a\u6587\u4ef6\u5f15\u5165&#xff0c;\u7528\u4e8e\u54cd\u5e94\u7528\u6237\u64cd\u4f5c\u3001\u4fee\u6539\u9875\u9762\u5185\u5bb9\u3001\u4e0e\u670d\u52a1\u5668\u4ea4\u4e92\u7b49\u3002<\/li>\n<li style=\"text-align:justify\">\u5173\u952e\u7279\u6027&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u52a8\u6001\u6027&#xff1a;\u53ef\u5b9e\u65f6\u4fee\u6539 HTML \u548c CSS&#xff08;\u5982\u901a\u8fc7\u00a0document.getElementById()\u00a0\u64cd\u4f5c\u5143\u7d20&#xff0c;\u6539\u53d8\u5176\u5185\u5bb9\u6216\u6837\u5f0f&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u4e8b\u4ef6\u9a71\u52a8&#xff1a;\u901a\u8fc7\u76d1\u542c\u7528\u6237\u884c\u4e3a&#xff08;\u70b9\u51fb\u3001\u6eda\u52a8\u3001\u8f93\u5165\u7b49&#xff09;\u89e6\u53d1\u51fd\u6570&#xff08;\u5982\u00a0onclick\u00a0\u70b9\u51fb\u4e8b\u4ef6&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5f02\u6b65\u64cd\u4f5c&#xff1a;\u652f\u6301 AJAX&#xff08;\u5f02\u6b65\u8bf7\u6c42&#xff09;\u548c Fetch API&#xff0c;\u65e0\u9700\u5237\u65b0\u9875\u9762\u5373\u53ef\u4e0e\u670d\u52a1\u5668\u4ea4\u6362\u6570\u636e&#xff08;\u5982\u52a0\u8f7d\u65b0\u5185\u5bb9\u3001\u63d0\u4ea4\u8868\u5355&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u751f\u6001\u4e30\u5bcc&#xff1a;\u53ef\u901a\u8fc7\u6846\u67b6&#xff08;\u5982 React\u3001Vue&#xff09;\u548c\u5e93&#xff08;\u5982 jQuery&#xff09;\u6269\u5c55\u529f\u80fd&#xff0c;\u7b80\u5316\u590d\u6742\u5f00\u53d1\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u4e3e\u4f8b&#xff1a;<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">javascript<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\/\/ \u83b7\u53d6\u6309\u94ae\u5143\u7d20&#xff0c;\u70b9\u51fb\u65f6\u4fee\u6539\u6bb5\u843d\u5185\u5bb9<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">const btn &#061; document.getElementById(&#034;myBtn&#034;);<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">const para &#061; document.getElementById(&#034;myPara&#034;);<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">btn.onclick &#061; function() {<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 para.textContent &#061; &#034;\u6587\u672c\u5df2\u66f4\u65b0&#xff01;&#034;;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0 para.style.color &#061; &#034;blue&#034;; \/\/ \u540c\u65f6\u4fee\u6539\u6837\u5f0f<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">};<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e09\u8005\u5173\u7cfb\u603b\u7ed3<\/p>\n<ul>\n<li style=\"text-align:justify\">HTML\u00a0\u642d\u5efa\u57fa\u7840\u7ed3\u6784&#xff08;\u201c\u6709\u4ec0\u4e48\u201d&#xff09;&#xff0c;CSS\u00a0\u7f8e\u5316\u5448\u73b0\u6548\u679c&#xff08;\u201c\u957f\u4ec0\u4e48\u6837\u201d&#xff09;&#xff0c;JavaScript\u00a0\u8d4b\u4e88\u4ea4\u4e92\u80fd\u529b&#xff08;\u201c\u80fd\u505a\u4ec0\u4e48\u201d&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u73b0\u4ee3\u524d\u7aef\u5f00\u53d1\u4e2d&#xff0c;\u8fd9\u4e09\u8005\u4ecd\u662f\u6838\u5fc3\u57fa\u7840&#xff0c;\u5728\u6b64\u4e4b\u4e0a\u884d\u751f\u51fa\u5404\u79cd\u6846\u67b6&#xff08;\u5982 Vue\u3001React&#xff09;\u3001\u9884\u5904\u7406\u5668&#xff08;\u5982 Sass\u3001TypeScript&#xff09;&#xff0c;\u4f46\u672c\u8d28\u90fd\u662f\u5bf9\u8fd9\u4e09\u5927\u6280\u672f\u7684\u6269\u5c55\u548c\u4f18\u5316\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u540c\u6b65<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4ea4\u4e92\u5f0f\u7f51\u9875&#xff0c;\u7528\u6237\u63d0\u4ea4\u4e86\u8bf7\u6c42&#xff0c;\u5c31\u662f\u60f3\u770b\u5230\u67e5\u8be2\u7684\u7ed3\u679c\u3002\u670d\u52a1\u5668\u54cd\u5e94\u5230\u6765\u540e\u662f\u4e00\u4e2a\u5168\u65b0\u7684\u9875\u9762\u5185\u5bb9&#xff0c;\u54ea<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6015URL\u4e0d\u53d8&#xff0c;\u6574\u4e2a\u7f51\u9875\u90fd\u9700\u8981\u91cd\u65b0\u6e32\u67d3\u3002\u4f8b\u5982&#xff0c;\u7528\u6237\u586b\u5199\u6ce8\u518c\u4fe1\u606f&#xff0c;\u53ea\u662f2\u6b21\u5bc6\u7801\u4e0d\u4e00\u81f4&#xff0c;\u63d0\u4ea4\u540e&#xff0c;\u6574\u4e2a<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6ce8\u518c\u9875\u9762\u91cd\u65b0\u5237\u65b0&#xff0c;\u6240\u6709\u586b\u5199\u9879\u76ee\u91cd\u65b0\u586b\u5199(\u5f53\u7136\u6709\u529e\u6cd5\u8ba9\u7528\u6237\u51cf\u5c11\u91cd\u586b)\u3002\u8fd9\u79cd\u4ea4\u4e92\u975e\u5e38\u4e0d\u53cb\u597d\u3002\u4ece\u4ee3\u4ef7<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7684\u89d2\u5ea6\u770b&#xff0c;\u5c31\u662f\u4e3a\u4e86\u6ce8\u518c\u7684\u4e00\u70b9\u70b9\u4fe1\u606f&#xff0c;\u7ed3\u679c\u8fd4\u56de\u4e86\u6574\u4e2a\u7f51\u9875\u5185\u5bb9&#xff0c;\u4e0d\u4f46\u6d6a\u8d39\u4e86\u7f51\u7edc\u5e26\u5bbd&#xff0c;\u8fd8\u9700\u8981\u6d4f\u89c8<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5668\u91cd\u65b0\u6e32\u67d3\u7f51\u9875&#xff0c;\u592a\u6d6a\u8d39\u8d44\u6e90\u4e86&#xff0c;\u5f71\u54cd\u4e86\u7528\u6237\u4f53\u9a8c\u548c\u611f\u53d7\u3002\u4e0a\u9762\u8fd9\u4e9b\u8bf7\u6c42\u7684\u8fc7\u7a0b&#xff0c;\u5c31\u662f\u540c\u6b65\u8fc7\u7a0b&#xff0c;\u7528\u6237<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u53d1\u8d77\u8bf7\u6c42&#xff0c;\u9875\u9762\u6574\u4e2a\u5237\u65b0&#xff0c;\u76f4\u5230\u670d\u52a1\u5668\u7aef\u54cd\u5e94\u7684\u6570\u636e\u5230\u6765\u5e76\u91cd\u65b0\u6e32\u67d3\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5f02\u6b65<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1996\u5e74\u5fae\u8f6f\u5b9e\u73b0\u4e86iframe\u6807\u7b7e&#xff0c;\u53ef\u4ee5\u5728\u4e00\u4e2a\u7f51\u9875\u4f7f\u7528iframe\u6807\u7b7e\u5c40\u90e8\u5f02\u6b65\u52a0\u8f7d\u5185\u5bb9\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1999\u5e74\u5fae\u8f6f\u63a8\u51fa\u5f02\u6b65\u6570\u636e\u4f20\u8f93\u7684ActiveX\u63d2\u4ef6\u6280\u672f&#xff0c;\u592a\u7b28\u91cd\u4e86&#xff0c;\u4f46\u662f\u4e5f\u706b\u4e86\u5f88\u591a\u5e74\u3002\u6709\u4e00\u4e2a\u7ec4\u4ef6<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">XMLHttpRequest\u88ab\u5927\u591a\u6570\u6d4f\u89c8\u5668\u652f\u6301\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4f20\u7edf\u7684\u7f51\u9875\u5982\u679c\u9700\u8981\u66f4\u65b0\u5185\u5bb9&#xff0c;\u5fc5\u9700\u91cd\u8f7d\u6574\u4e2a\u7f51\u9875\u9762\u3002Ajax\u7684\u51fa\u73b0&#xff0c;\u6539\u53d8\u8fd9\u4e00\u5207&#xff0c;\u540c\u65f6\u6781\u5927\u7684\u4fc3\u8fdb\u4e86<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Javascript\u7684\u53d1\u5c55\u3002Ajax\u5373&#034;Asynchronous Javascript And XML&#034;&#xff08;\u5f02\u6b65 JavaScript \u548c XML&#xff09;&#xff0c;\u662f\u6307\u4e00\u79cd<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u521b\u5efa\u4ea4\u4e92\u5f0f\u3001\u5feb\u901f\u52a8\u6001\u7f51\u9875\u5e94\u7528\u7684\u7f51\u9875\u5f00\u53d1\u6280\u672f&#xff0c;\u6700\u65e9\u8d77\u6e90\u4e8e1998\u5e74\u5fae\u8f6f\u7684Outlook Web Access\u5f00\u53d1\u56e2<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u961f\u3002Ajax \u901a\u8fc7\u5728\u540e\u53f0\u4e0e\u670d\u52a1\u5668\u8fdb\u884c\u5c11\u91cf\u6570\u636e\u4ea4\u6362&#xff0c; \u53ef\u4ee5\u4f7f\u7f51\u9875\u5b9e\u73b0\u5f02\u6b65\u66f4\u65b0\u3002\u8fd9\u610f\u5473\u7740\u53ef\u4ee5\u5728\u4e0d\u91cd\u65b0\u52a0<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8f7d\u6574\u4e2a\u7f51\u9875\u7684\u60c5\u51b5\u4e0b&#xff0c;\u5bf9\u7f51\u9875\u7684\u67d0\u90e8\u5206\u8fdb\u884c\u66f4\u65b0\u3002Javascript \u901a\u8fc7\u8c03\u7528\u6d4f\u89c8\u5668\u5185\u7f6e\u7684WEB API\u4e2d\u7684<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">XMLHttpRequest \u5bf9\u8c61\u5b9e\u73b0Ajax \u6280\u672f\u3002\u65e9\u671fAjax\u7ed3\u5408\u6570\u636e\u683c\u5f0fXML&#xff0c;\u76ee\u524d\u66f4\u591a\u7684\u4f7f\u7528JSON\u3002\u5229\u7528AJAX\u53ef<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b9e\u73b0\u524d\u540e\u7aef\u5f00\u53d1\u7684\u5f7b\u5e95\u5206\u79bb&#xff0c;\u6539\u53d8\u4e86\u4f20\u7edf\u7684\u5f00\u53d1\u6a21\u5f0f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">AJAX\u662f\u4e00\u79cd\u6280\u672f\u7684\u7ec4\u5408&#xff0c;\u6280\u672f\u7684\u91cd\u65b0\u53d1\u73b0&#xff0c;\u800c\u4e0d\u662f\u53d1\u660e&#xff0c;\u4f46\u662f\u5b83\u6df1\u8fdc\u7684\u5f71\u54cd\u4e86\u6574\u4e2aWEB\u5f00\u53d1\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">tomcat\u7684\u529f\u80fd\u4ecb\u7ecd<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Tomcat \u662f\u4e00\u6b3e\u7531 Apache \u57fa\u91d1\u4f1a\u5f00\u53d1\u7684\u5f00\u6e90 Java Web \u670d\u52a1\u5668&#xff0c;\u540c\u65f6\u4e5f\u662f\u4e00\u4e2aServlet \u5bb9\u5668&#xff0c;\u4e3b\u8981\u7528\u4e8e\u8fd0\u884c Java Web \u5e94\u7528\u7a0b\u5e8f&#xff08;\u5982 JSP\u3001Servlet \u7b49&#xff09;\u3002\u5b83\u8f7b\u91cf\u3001\u7a33\u5b9a\u4e14\u517c\u5bb9\u6027\u5f3a&#xff0c;\u662f\u4e2d\u5c0f\u578b Java Web \u9879\u76ee\u7684\u5e38\u7528\u9009\u62e9&#xff0c;\u4e5f\u662f\u5b66\u4e60 Java Web \u5f00\u53d1\u7684\u7ecf\u5178\u5de5\u5177\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Tomcat \u7684\u6838\u5fc3\u529f\u80fd<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1. \u4f5c\u4e3a Servlet \u5bb9\u5668&#xff0c;\u8fd0\u884c Java Web \u7ec4\u4ef6<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Tomcat \u7684\u6838\u5fc3\u529f\u80fd\u662f\u89e3\u6790\u548c\u8fd0\u884c Servlet\u3001JSP&#xff08;JavaServer Pages&#xff09;\u00a0\u7b49 Java Web \u6280\u672f\u89c4\u8303\u7684\u7ec4\u4ef6&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">Servlet&#xff1a;\u5904\u7406\u5ba2\u6237\u7aef\u8bf7\u6c42\u7684 Java \u7a0b\u5e8f&#xff08;\u5982\u63a5\u6536\u8868\u5355\u6570\u636e\u3001\u4e0e\u6570\u636e\u5e93\u4ea4\u4e92&#xff09;&#xff0c;\u662f Java Web \u7684\u6838\u5fc3\u903b\u8f91\u8f7d\u4f53\u3002<\/li>\n<li style=\"text-align:justify\">JSP&#xff1a;\u5d4c\u5165 Java \u4ee3\u7801\u7684 HTML \u9875\u9762&#xff0c;\u672c\u8d28\u4e0a\u4f1a\u88ab Tomcat \u7f16\u8bd1\u4e3a Servlet \u6267\u884c&#xff0c;\u7528\u4e8e\u52a8\u6001\u751f\u6210\u7f51\u9875\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Tomcat \u4e25\u683c\u9075\u5faa Java EE&#xff08;\u73b0 Jakarta EE&#xff09;\u89c4\u8303\u4e2d\u7684 Servlet \u548c JSP \u6807\u51c6&#xff0c;\u786e\u4fdd\u7b26\u5408\u89c4\u8303\u7684 Java Web \u5e94\u7528\u80fd\u5728\u5176\u4e0a\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2. \u63d0\u4f9b Web \u670d\u52a1\u5668\u529f\u80fd<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u9664\u4e86\u4f5c\u4e3a\u5bb9\u5668&#xff0c;Tomcat \u672c\u8eab\u4e5f\u5177\u5907\u57fa\u7840\u7684 Web \u670d\u52a1\u5668\u80fd\u529b&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">\u9759\u6001\u8d44\u6e90\u670d\u52a1&#xff1a;\u53ef\u76f4\u63a5\u90e8\u7f72\u548c\u8bbf\u95ee HTML\u3001CSS\u3001JavaScript\u3001\u56fe\u7247\u7b49\u9759\u6001\u6587\u4ef6&#xff08;\u7c7b\u4f3c Nginx \u7684\u57fa\u7840\u529f\u80fd&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">HTTP \u534f\u8bae\u652f\u6301&#xff1a;\u5904\u7406 HTTP \u8bf7\u6c42\u4e0e\u54cd\u5e94&#xff0c;\u652f\u6301 HTTP\/1.1 \u534f\u8bae&#xff0c;\u90e8\u5206\u7248\u672c&#xff08;\u5982 Tomcat 9&#043;&#xff09;\u652f\u6301 HTTP\/2\u3002<\/li>\n<li style=\"text-align:justify\">\u865a\u62df\u4e3b\u673a\u914d\u7f6e&#xff1a;\u901a\u8fc7\u914d\u7f6e\u53ef\u5728\u540c\u4e00 Tomcat \u5b9e\u4f8b\u4e0a\u90e8\u7f72\u591a\u4e2a\u7f51\u7ad9&#xff08;\u7ed1\u5b9a\u4e0d\u540c\u57df\u540d&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u7aef\u53e3\u76d1\u542c&#xff1a;\u9ed8\u8ba4\u76d1\u542c 8080 \u7aef\u53e3&#xff08;HTTP&#xff09;\u548c 8443 \u7aef\u53e3&#xff08;HTTPS&#xff0c;\u9700\u914d\u7f6e\u8bc1\u4e66&#xff09;\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3. \u652f\u6301\u591a\u79cd\u90e8\u7f72\u65b9\u5f0f<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Tomcat \u63d0\u4f9b\u7075\u6d3b\u7684\u5e94\u7528\u90e8\u7f72\u673a\u5236&#xff0c;\u9002\u914d\u4e0d\u540c\u573a\u666f&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">\u81ea\u52a8\u90e8\u7f72&#xff1a;\u5c06 Web \u5e94\u7528\u7684 WAR \u5305&#xff08;Java Web \u5e94\u7528\u6253\u5305\u683c\u5f0f&#xff09;\u653e\u5165\u00a0webapps\u00a0\u76ee\u5f55&#xff0c;Tomcat \u4f1a\u81ea\u52a8\u89e3\u538b\u5e76\u90e8\u7f72\u3002<\/li>\n<li style=\"text-align:justify\">\u624b\u52a8\u90e8\u7f72&#xff1a;\u901a\u8fc7\u00a0server.xml\u00a0\u914d\u7f6e\u6587\u4ef6\u6216\u00a0context.xml\u00a0\u5355\u72ec\u6307\u5b9a\u5e94\u7528\u8def\u5f84\u548c\u8bbf\u95ee\u8def\u5f84\u3002<\/li>\n<li style=\"text-align:justify\">\u8fdc\u7a0b\u90e8\u7f72&#xff1a;\u901a\u8fc7 Tomcat \u7ba1\u7406\u754c\u9762&#xff08;Manager App&#xff09;\u6216 API \u8fdc\u7a0b\u4e0a\u4f20\u548c\u90e8\u7f72 WAR \u5305\u3002<\/li>\n<li style=\"text-align:justify\">\u70ed\u90e8\u7f72&#xff1a;\u5728\u4e0d\u91cd\u542f Tomcat \u7684\u60c5\u51b5\u4e0b\u66f4\u65b0\u5e94\u7528&#xff08;\u9700\u914d\u7f6e\u00a0reloadable&#061;&#034;true&#034;&#xff0c;\u5f00\u53d1\u73af\u5883\u5e38\u7528&#xff09;\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">4. \u5185\u7f6e\u7ba1\u7406\u5de5\u5177<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Tomcat \u63d0\u4f9b\u53ef\u89c6\u5316\u7ba1\u7406\u5de5\u5177&#xff0c;\u65b9\u4fbf\u8fd0\u7ef4\u548c\u8c03\u8bd5&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">Manager App&#xff1a;\u901a\u8fc7\u7f51\u9875\u754c\u9762\u7ba1\u7406\u5df2\u90e8\u7f72\u7684\u5e94\u7528&#xff08;\u542f\u52a8\u3001\u505c\u6b62\u3001\u5378\u8f7d\u3001\u90e8\u7f72\u65b0\u5e94\u7528\u7b49&#xff09;&#xff0c;\u9700\u914d\u7f6e\u7528\u6237\u540d\u5bc6\u7801\u3002<\/li>\n<li style=\"text-align:justify\">Host Manager&#xff1a;\u7ba1\u7406\u865a\u62df\u4e3b\u673a&#xff0c;\u53ef\u6dfb\u52a0\u3001\u5220\u9664\u6216\u914d\u7f6e\u57df\u540d\u7ed1\u5b9a\u3002<\/li>\n<li style=\"text-align:justify\">\u72b6\u6001\u76d1\u63a7&#xff1a;\u901a\u8fc7\u00a0\/manager\/status\u00a0\u67e5\u770b\u670d\u52a1\u5668\u72b6\u6001&#xff08;\u5982\u7ebf\u7a0b\u6570\u3001\u5185\u5b58\u4f7f\u7528\u3001\u8bf7\u6c42\u7edf\u8ba1\u7b49&#xff09;\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">5. \u5b89\u5168\u4e0e\u6269\u5c55\u6027<\/p>\n<ul>\n<li style=\"text-align:justify\">\u5b89\u5168\u914d\u7f6e&#xff1a;\u652f\u6301 HTTPS \u52a0\u5bc6\u4f20\u8f93&#xff08;\u9700\u914d\u7f6e SSL \u8bc1\u4e66&#xff09;\u3001IP \u8bbf\u95ee\u63a7\u5236\u3001\u7528\u6237\u8ba4\u8bc1&#xff08;\u57fa\u4e8e\u89d2\u8272\u7684\u6743\u9650\u7ba1\u7406&#xff09;\u7b49\u3002<\/li>\n<li style=\"text-align:justify\">\u6269\u5c55\u6027&#xff1a;\u53ef\u901a\u8fc7 Valve&#xff08;\u9600\u95e8&#xff09;\u3001Listener&#xff08;\u76d1\u542c\u5668&#xff09;\u7b49\u7ec4\u4ef6\u6269\u5c55\u529f\u80fd&#xff08;\u5982\u65e5\u5fd7\u8bb0\u5f55\u3001\u8bf7\u6c42\u8fc7\u6ee4\u3001\u6027\u80fd\u76d1\u63a7&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u96c6\u7fa4\u652f\u6301&#xff1a;\u901a\u8fc7\u914d\u7f6e\u53ef\u5b9e\u73b0\u591a Tomcat \u5b9e\u4f8b\u7684\u96c6\u7fa4\u90e8\u7f72&#xff0c;\u914d\u5408\u8d1f\u8f7d\u5747\u8861\u5668&#xff08;\u5982 Nginx&#xff09;\u63d0\u5347\u53ef\u7528\u6027\u548c\u5e76\u53d1\u80fd\u529b\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">6. \u8f7b\u91cf\u4e0e\u8de8\u5e73\u53f0<\/p>\n<ul>\n<li style=\"text-align:justify\">\u8f7b\u91cf\u6027&#xff1a;\u5b89\u88c5\u5305\u4f53\u79ef\u5c0f&#xff08;\u7ea6 10-20MB&#xff09;&#xff0c;\u542f\u52a8\u5feb&#xff0c;\u8d44\u6e90\u5360\u7528\u4f4e&#xff0c;\u9002\u5408\u5f00\u53d1\u73af\u5883\u548c\u4e2d\u5c0f\u578b\u751f\u4ea7\u73af\u5883\u3002<\/li>\n<li style=\"text-align:justify\">\u8de8\u5e73\u53f0&#xff1a;\u57fa\u4e8e Java \u5f00\u53d1&#xff0c;\u53ef\u8fd0\u884c\u5728 Windows\u3001Linux\u3001macOS \u7b49\u6240\u6709\u652f\u6301 JVM \u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Tomcat \u4e0e\u5176\u4ed6\u670d\u52a1\u5668\u7684\u533a\u522b<\/p>\n<ul>\n<li style=\"text-align:justify\">\u4e0e Nginx\/Apache \u5bf9\u6bd4&#xff1a;Nginx\/Apache \u662f\u901a\u7528 Web \u670d\u52a1\u5668&#xff0c;\u64c5\u957f\u5904\u7406\u9759\u6001\u8d44\u6e90\u548c\u53cd\u5411\u4ee3\u7406&#xff1b;Tomcat \u4e13\u6ce8\u4e8e\u8fd0\u884c Java Web \u5e94\u7528&#xff0c;\u9759\u6001\u8d44\u6e90\u5904\u7406\u80fd\u529b\u8f83\u5f31&#xff0c;\u901a\u5e38\u4f1a\u914d\u5408 Nginx \u4f7f\u7528&#xff08;Nginx \u5904\u7406\u9759\u6001\u8d44\u6e90 &#043; \u53cd\u5411\u4ee3\u7406\u5230 Tomcat&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u4e0e Jetty \u5bf9\u6bd4&#xff1a;\u4e24\u8005\u90fd\u662f Servlet \u5bb9\u5668&#xff0c;Tomcat \u66f4\u7a33\u5b9a\u3001\u751f\u6001\u66f4\u6210\u719f&#xff1b;Jetty \u66f4\u8f7b\u91cf\u3001\u542f\u52a8\u66f4\u5feb&#xff0c;\u9002\u5408\u5d4c\u5165\u5f0f\u573a\u666f&#xff08;\u5982 Spring Boot \u5185\u7f6e Jetty&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u4e0e WebLogic\/WebSphere \u5bf9\u6bd4&#xff1a;\u540e\u4e24\u8005\u662f\u5927\u578b\u5546\u4e1a Java EE \u5e94\u7528\u670d\u52a1\u5668&#xff0c;\u652f\u6301\u66f4\u591a\u4f01\u4e1a\u7ea7\u529f\u80fd&#xff08;\u5982 EJB\u3001\u5206\u5e03\u5f0f\u4e8b\u52a1&#xff09;&#xff0c;\u4f46\u4f53\u79ef\u5927\u3001\u914d\u7f6e\u590d\u6742&#xff1b;Tomcat \u662f\u8f7b\u91cf\u5f00\u6e90\u65b9\u6848&#xff0c;\u4ec5\u652f\u6301 Servlet\/JSP \u7b49\u6838\u5fc3\u89c4\u8303\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5178\u578b\u5e94\u7528\u573a\u666f<\/p>\n<ul>\n<li style=\"text-align:justify\">\u5f00\u53d1\u548c\u8c03\u8bd5 Java Web \u5e94\u7528&#xff08;\u5982\u57fa\u4e8e Spring MVC\u3001Struts \u7b49\u6846\u67b6\u7684\u9879\u76ee&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u90e8\u7f72\u4e2d\u5c0f\u578b Java Web \u5e94\u7528&#xff08;\u5982\u4f01\u4e1a\u5b98\u7f51\u3001\u5185\u90e8\u7ba1\u7406\u7cfb\u7edf&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u4f5c\u4e3a\u540e\u7aef\u670d\u52a1\u5bb9\u5668&#xff0c;\u914d\u5408 Nginx \u5b9e\u73b0\u52a8\u9759\u5206\u79bb\u548c\u8d1f\u8f7d\u5747\u8861\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u603b\u4e4b&#xff0c;Tomcat \u662f Java Web \u5f00\u53d1\u548c\u90e8\u7f72\u7684\u57fa\u7840\u5de5\u5177&#xff0c;\u5176\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e\u9ad8\u6548\u8fd0\u884c Servlet\/JSP \u5e94\u7528&#xff0c;\u540c\u65f6\u63d0\u4f9b\u8db3\u591f\u7684\u7075\u6d3b\u6027\u548c\u6269\u5c55\u6027\u6ee1\u8db3\u4e0d\u540c\u573a\u666f\u9700\u6c42\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b89\u88c5 Tomcat<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">yum install java-1.8.0-openjdk.x86_64 -y<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"120\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815154221-689f555d1e069.png\" width=\"865\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">cd \/etc\/alternatives\/jre<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">tar zxf apache-tomcat-9.0.107.tar.gz -C \/usr\/local\/<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">cd \/usr\/local\/<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">mv apache-tomcat-9.0.107\/ tomcat<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">cd tomcat\/<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">cd bin\/<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">.\/startup.sh<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">netstat -antlupe | grep java<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"353\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815154222-689f555e7d88a.png\" width=\"683\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8bbf\u95eetomcat<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"596\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815154223-689f555fb6a83.png\" width=\"690\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">tomcat\u7684\u6587\u4ef6\u7ed3\u6784\u548c\u7ec4\u6210<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Tomcat \u7684\u6587\u4ef6\u7ed3\u6784\u8bbe\u8ba1\u6e05\u6670&#xff0c;\u9075\u5faa\u6a21\u5757\u5316\u539f\u5219&#xff0c;\u4e3b\u8981\u5305\u542b\u4e8c\u8fdb\u5236\u6267\u884c\u6587\u4ef6\u3001\u914d\u7f6e\u6587\u4ef6\u3001web \u5e94\u7528\u76ee\u5f55\u3001\u65e5\u5fd7\u548c\u4e34\u65f6\u6587\u4ef6\u7b49\u3002\u4ee5\u4e0b\u662f Tomcat \u4e3b\u8981\u6587\u4ef6\u7ed3\u6784\u53ca\u5404\u90e8\u5206\u7684\u529f\u80fd\u8bf4\u660e&#xff08;\u4ee5 Tomcat 9 \u4e3a\u4f8b&#xff09;&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6838\u5fc3\u76ee\u5f55\u7ed3\u6784<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">apache-tomcat-9.0.x\/<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u251c\u2500\u2500 bin\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u4e8c\u8fdb\u5236\u6267\u884c\u6587\u4ef6&#xff08;\u542f\u52a8\/\u505c\u6b62\u811a\u672c&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u251c\u2500\u2500 conf\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u914d\u7f6e\u6587\u4ef6\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u251c\u2500\u2500 lib\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # Tomcat \u6838\u5fc3\u7c7b\u5e93&#xff08;JAR\u5305&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u251c\u2500\u2500 logs\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u65e5\u5fd7\u6587\u4ef6\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u251c\u2500\u2500 temp\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u4e34\u65f6\u6587\u4ef6\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u251c\u2500\u2500 webapps\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # Web \u5e94\u7528\u90e8\u7f72\u76ee\u5f55&#xff08;\u9ed8\u8ba4\u81ea\u52a8\u90e8\u7f72&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u251c\u2500\u2500 work\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # JSP \u7f16\u8bd1\u540e\u7684 Servlet \u7c7b\u6587\u4ef6\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u2514\u2500\u2500 LICENSE\/ NOTICE\/ RELEASE-NOTES\u00a0 # \u7248\u6743\u548c\u7248\u672c\u8bf4\u660e\u6587\u4ef6<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5404\u76ee\u5f55\u8be6\u7ec6\u8bf4\u660e<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1.\u00a0bin\/&#xff1a;\u6267\u884c\u811a\u672c\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b58\u653e\u542f\u52a8\u3001\u505c\u6b62 Tomcat \u7684\u811a\u672c\u548c\u5de5\u5177\u7a0b\u5e8f&#xff0c;\u662f\u64cd\u4f5c Tomcat \u7684\u5165\u53e3\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">Windows \u7cfb\u7edf&#xff1a;\n<ul>\n<li style=\"text-align:justify\">startup.bat&#xff1a;\u542f\u52a8 Tomcat \u670d\u52a1<\/li>\n<li style=\"text-align:justify\">shutdown.bat&#xff1a;\u505c\u6b62 Tomcat \u670d\u52a1<\/li>\n<li style=\"text-align:justify\">catalina.bat&#xff1a;\u6838\u5fc3\u811a\u672c&#xff08;startup\u00a0\u548c\u00a0shutdown\u00a0\u5b9e\u9645\u8c03\u7528\u6b64\u811a\u672c&#xff09;<\/li>\n<li style=\"text-align:justify\">tomcat9w.exe&#xff1a;Tomcat \u670d\u52a1\u76d1\u63a7\u5de5\u5177&#xff08;\u56fe\u5f62\u5316\u754c\u9762&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">Linux\/macOS \u7cfb\u7edf&#xff1a;\n<ul>\n<li style=\"text-align:justify\">startup.sh\u3001shutdown.sh\u3001catalina.sh&#xff1a;\u5bf9\u5e94 Shell \u811a\u672c<\/li>\n<li style=\"text-align:justify\">setclasspath.sh&#xff1a;\u8bbe\u7f6e Java \u7c7b\u8def\u5f84&#xff08;JRE\/JDK \u8def\u5f84&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u5176\u4ed6\u5de5\u5177&#xff1a;digest.sh\/bat&#xff08;\u5bc6\u7801\u52a0\u5bc6\u5de5\u5177&#xff09;\u3001version.sh\/bat&#xff08;\u67e5\u770b Tomcat \u7248\u672c&#xff09;\u7b49\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2.\u00a0conf\/&#xff1a;\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b58\u653e Tomcat \u6838\u5fc3\u914d\u7f6e\u6587\u4ef6&#xff0c;\u51b3\u5b9a\u670d\u52a1\u5668\u7684\u8fd0\u884c\u89c4\u5219&#xff08;\u5982\u7aef\u53e3\u3001\u865a\u62df\u4e3b\u673a\u3001\u7528\u6237\u6743\u9650\u7b49&#xff09;\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">server.xml&#xff1a;Tomcat \u6700\u6838\u5fc3\u7684\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5b9a\u4e49\u670d\u52a1\u5668\u6574\u4f53\u7ed3\u6784&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u76d1\u542c\u7aef\u53e3&#xff08;\u5982\u00a0Connector port&#061;&#034;8080&#034;\u00a0\u914d\u7f6e HTTP \u7aef\u53e3&#xff09;<\/li>\n<li style=\"text-align:justify\">\u865a\u62df\u4e3b\u673a&#xff08;Host\u00a0\u6807\u7b7e&#xff0c;\u914d\u7f6e\u57df\u540d\u548c\u5e94\u7528\u76ee\u5f55&#xff09;<\/li>\n<li style=\"text-align:justify\">\u5168\u5c40\u7ec4\u4ef6&#xff08;\u5982\u00a0Resource\u00a0\u914d\u7f6e\u6570\u636e\u5e93\u8fde\u63a5\u6c60&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">web.xml&#xff1a;Web \u5e94\u7528\u7684\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6&#xff08;\u5168\u5c40\u751f\u6548&#xff09;&#xff0c;\u5b9a\u4e49&#xff1a;\n<ul>\n<li style=\"text-align:justify\">Servlet \u6620\u5c04&#xff08;\u5982 JSP \u5bf9\u5e94\u7684\u00a0JspServlet&#xff09;<\/li>\n<li style=\"text-align:justify\">MIME \u7c7b\u578b&#xff08;\u6587\u4ef6\u6269\u5c55\u540d\u4e0e\u5185\u5bb9\u7c7b\u578b\u6620\u5c04&#xff09;<\/li>\n<li style=\"text-align:justify\">\u8fc7\u6ee4\u5668&#xff08;\u5982\u5b57\u7b26\u7f16\u7801\u8fc7\u6ee4\u5668\u00a0CharacterEncodingFilter&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">context.xml&#xff1a;\u4e0a\u4e0b\u6587\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5b9a\u4e49 Web \u5e94\u7528\u7684\u5168\u5c40\u4e0a\u4e0b\u6587\u53c2\u6570&#xff08;\u5982\u6570\u636e\u6e90\u3001\u4f1a\u8bdd\u914d\u7f6e&#xff09;&#xff0c;\u53ef\u88ab\u6240\u6709\u5e94\u7528\u5171\u4eab\u3002<\/li>\n<li style=\"text-align:justify\">tomcat-users.xml&#xff1a;\u914d\u7f6e Tomcat \u7ba1\u7406\u7528\u6237\u53ca\u6743\u9650&#xff08;\u5982\u8bbf\u95ee Manager App \u6240\u9700\u7684\u7528\u6237\u540d\u3001\u5bc6\u7801\u548c\u89d2\u8272&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">catalina.policy&#xff1a;Java \u5b89\u5168\u7b56\u7565\u914d\u7f6e\u6587\u4ef6&#xff0c;\u9650\u5236 Tomcat \u5bf9\u7cfb\u7edf\u8d44\u6e90\u7684\u8bbf\u95ee&#xff08;\u5982\u6587\u4ef6\u8bfb\u5199\u6743\u9650&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">catalina.properties&#xff1a;Tomcat \u7cfb\u7edf\u5c5e\u6027\u914d\u7f6e&#xff08;\u5982\u7c7b\u52a0\u8f7d\u8def\u5f84\u3001\u9ed8\u8ba4\u5b57\u7b26\u96c6&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">logging.properties&#xff1a;\u65e5\u5fd7\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5b9a\u4e49\u65e5\u5fd7\u8f93\u51fa\u683c\u5f0f\u3001\u7ea7\u522b\u548c\u8def\u5f84\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.\u00a0lib\/&#xff1a;\u6838\u5fc3\u7c7b\u5e93\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b58\u653e Tomcat \u8fd0\u884c\u6240\u9700\u7684\u6240\u6709 JAR \u5305&#xff0c;\u5305\u542b&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">Servlet\/JSP \u89c4\u8303\u7684\u5b9e\u73b0\u7c7b&#xff08;\u5982\u00a0servlet-api.jar\u3001jsp-api.jar&#xff09;<\/li>\n<li style=\"text-align:justify\">Tomcat \u81ea\u8eab\u7684\u6838\u5fc3\u7ec4\u4ef6&#xff08;\u5982\u00a0catalina.jar\u3001tomcat-util.jar&#xff09;<\/li>\n<li style=\"text-align:justify\">\u5e38\u7528\u4f9d\u8d56&#xff08;\u5982 XML \u89e3\u6790\u3001\u65e5\u5fd7\u5904\u7406\u76f8\u5173 JAR&#xff09;<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6ce8\u610f&#xff1a;\u6b64\u76ee\u5f55\u7684 JAR \u5305\u4f1a\u88ab\u6240\u6709 Web \u5e94\u7528\u5171\u4eab&#xff0c;\u65e0\u9700\u5728\u6bcf\u4e2a\u5e94\u7528\u7684\u00a0WEB-INF\/lib\u00a0\u4e2d\u91cd\u590d\u653e\u7f6e\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">4.\u00a0webapps\/&#xff1a;Web \u5e94\u7528\u90e8\u7f72\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Tomcat \u9ed8\u8ba4\u7684\u5e94\u7528\u90e8\u7f72\u76ee\u5f55&#xff0c;\u653e\u5165\u6b64\u76ee\u5f55\u7684 Web \u5e94\u7528&#xff08;WAR \u5305\u6216\u89e3\u538b\u540e\u7684\u6587\u4ef6\u5939&#xff09;\u4f1a\u88ab\u81ea\u52a8\u90e8\u7f72\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">\u9ed8\u8ba4\u5e94\u7528&#xff1a;\n<ul>\n<li style=\"text-align:justify\">ROOT\/&#xff1a;\u6839\u5e94\u7528&#xff0c;\u8bbf\u95ee\u00a0http:\/\/localhost:8080\u00a0\u65f6\u9ed8\u8ba4\u8bbf\u95ee\u6b64\u5e94\u7528\u3002<\/li>\n<li style=\"text-align:justify\">manager\/&#xff1a;Tomcat \u7ba1\u7406\u5e94\u7528&#xff08;Manager App&#xff09;&#xff0c;\u7528\u4e8e\u90e8\u7f72 \/ \u7ba1\u7406\u5176\u4ed6\u5e94\u7528&#xff08;\u9700\u5728\u00a0tomcat-users.xml\u00a0\u914d\u7f6e\u6743\u9650&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">host-manager\/&#xff1a;\u865a\u62df\u4e3b\u673a\u7ba1\u7406\u5e94\u7528&#xff08;Host Manager&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">docs\/&#xff1a;Tomcat \u5b98\u65b9\u6587\u6863\u548c\u793a\u4f8b\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u81ea\u5b9a\u4e49\u5e94\u7528&#xff1a;\u5c06\u81ea\u5df1\u7684 Web \u5e94\u7528&#xff08;\u5982\u00a0myapp.war&#xff09;\u653e\u5165\u6b64\u76ee\u5f55&#xff0c;Tomcat \u4f1a\u81ea\u52a8\u89e3\u538b\u4e3a\u00a0myapp\/\u00a0\u6587\u4ef6\u5939&#xff0c;\u901a\u8fc7\u00a0http:\/\/localhost:8080\/myapp\u00a0\u8bbf\u95ee\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">5.\u00a0work\/&#xff1a;JSP \u7f16\u8bd1\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Tomcat \u4f1a\u5c06 JSP \u9875\u9762\u7f16\u8bd1\u4e3a Java Servlet \u7c7b\u6587\u4ef6&#xff08;.java\u00a0\u548c\u00a0.class&#xff09;&#xff0c;\u5e76\u5b58\u653e\u5728\u6b64\u76ee\u5f55\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">\u8def\u5f84\u683c\u5f0f&#xff1a;work\/Catalina\/[\u4e3b\u673a\u540d]\/[\u5e94\u7528\u540d]\/&#xff08;\u5982\u00a0work\/Catalina\/localhost\/myapp\/&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u4f5c\u7528&#xff1a;\u7f16\u8bd1\u540e\u7684\u7c7b\u76f4\u63a5\u88ab Tomcat \u52a0\u8f7d\u6267\u884c&#xff0c;\u82e5 JSP \u5185\u5bb9\u4fee\u6539&#xff0c;Tomcat \u4f1a\u91cd\u65b0\u7f16\u8bd1\u5e76\u8986\u76d6\u65e7\u6587\u4ef6\u3002<\/li>\n<li style=\"text-align:justify\">\u6e05\u7406&#xff1a;\u5220\u9664\u6b64\u76ee\u5f55\u6587\u4ef6\u4e0d\u4f1a\u5f71\u54cd\u539f\u59cb JSP&#xff0c;\u91cd\u542f Tomcat \u4f1a\u91cd\u65b0\u7f16\u8bd1&#xff08;\u5e38\u7528\u4e8e\u89e3\u51b3 JSP \u7f13\u5b58\u5bfc\u81f4\u7684\u4fee\u6539\u4e0d\u751f\u6548\u95ee\u9898&#xff09;\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">6.\u00a0logs\/&#xff1a;\u65e5\u5fd7\u6587\u4ef6\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b58\u653e Tomcat \u8fd0\u884c\u8fc7\u7a0b\u4e2d\u4ea7\u751f\u7684\u65e5\u5fd7&#xff0c;\u662f\u6392\u67e5\u95ee\u9898\u7684\u5173\u952e\u4f9d\u636e\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">catalina.out&#xff1a;\u6838\u5fc3\u65e5\u5fd7\u6587\u4ef6&#xff0c;\u8bb0\u5f55 Tomcat \u542f\u52a8 \/ \u505c\u6b62\u4fe1\u606f\u3001\u7cfb\u7edf\u7ea7\u9519\u8bef&#xff08;\u6700\u5e38\u7528\u7684\u65e5\u5fd7&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">catalina.YYYY-MM-DD.log&#xff1a;\u6309\u65e5\u671f\u62c6\u5206\u7684 Catalina \u65e5\u5fd7&#xff08;\u4e0e\u00a0catalina.out\u00a0\u5185\u5bb9\u7c7b\u4f3c&#xff0c;\u6309\u65e5\u671f\u5f52\u6863&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">localhost.YYYY-MM-DD.log&#xff1a;Web \u5e94\u7528\u8f93\u51fa\u7684\u65e5\u5fd7&#xff08;\u5982\u5e94\u7528\u542f\u52a8\u5f02\u5e38\u3001System.out\u00a0\u6253\u5370\u7684\u5185\u5bb9&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">localhost_access_log.YYYY-MM-DD.txt&#xff1a;\u8bbf\u95ee\u65e5\u5fd7&#xff0c;\u8bb0\u5f55\u6240\u6709 HTTP \u8bf7\u6c42&#xff08;\u5305\u542b\u5ba2\u6237\u7aef IP\u3001\u8bf7\u6c42\u8def\u5f84\u3001\u54cd\u5e94\u72b6\u6001\u7801\u7b49&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">manager.YYYY-MM-DD.log&#xff1a;Manager App \u7684\u64cd\u4f5c\u65e5\u5fd7&#xff08;\u5982\u90e8\u7f72 \/ \u5378\u8f7d\u5e94\u7528\u7684\u8bb0\u5f55&#xff09;\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">7.\u00a0temp\/&#xff1a;\u4e34\u65f6\u6587\u4ef6\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Tomcat \u8fd0\u884c\u8fc7\u7a0b\u4e2d\u751f\u6210\u7684\u4e34\u65f6\u6587\u4ef6&#xff08;\u5982\u4e0a\u4f20\u6587\u4ef6\u7684\u4e34\u65f6\u5b58\u50a8\u3001\u538b\u7f29\u5305\u89e3\u538b\u4e34\u65f6\u6587\u4ef6\u7b49&#xff09;&#xff0c;Tomcat \u5173\u95ed\u65f6\u4f1a\u81ea\u52a8\u6e05\u7406&#xff08;\u4e5f\u53ef\u624b\u52a8\u5220\u9664&#xff09;\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Web \u5e94\u7528\u7684\u6807\u51c6\u7ed3\u6784&#xff08;\u4ee5\u00a0webapps\/myapp\/\u00a0\u4e3a\u4f8b&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6bcf\u4e2a\u90e8\u7f72\u5728 Tomcat \u4e2d\u7684 Web \u5e94\u7528\u9700\u9075\u5faa\u56fa\u5b9a\u76ee\u5f55\u7ed3\u6784&#xff08;Java EE \u89c4\u8303&#xff09;&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">myapp\/<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u251c\u2500\u2500 index.html\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u9996\u9875&#xff08;\u9759\u6001\u8d44\u6e90&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u251c\u2500\u2500 css\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u6837\u5f0f\u6587\u4ef6\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u251c\u2500\u2500 js\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # JavaScript \u6587\u4ef6\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u251c\u2500\u2500 images\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u56fe\u7247\u8d44\u6e90\u76ee\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u2514\u2500\u2500 WEB-INF\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u5e94\u7528\u79c1\u6709\u76ee\u5f55&#xff08;\u5ba2\u6237\u7aef\u65e0\u6cd5\u76f4\u63a5\u8bbf\u95ee&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 \u251c\u2500\u2500 web.xml\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u5e94\u7528\u7ea7\u914d\u7f6e\u6587\u4ef6&#xff08;Servlet \u6620\u5c04\u3001\u8fc7\u6ee4\u5668\u7b49&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 \u251c\u2500\u2500 classes\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u5e94\u7528\u7684 Java \u7c7b\u6587\u4ef6&#xff08;.class&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 \u251c\u2500\u2500 lib\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u5e94\u7528\u4f9d\u8d56\u7684 JAR \u5305&#xff08;\u4ec5\u5f53\u524d\u5e94\u7528\u53ef\u89c1&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 \u2514\u2500\u2500 jsp\/\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # \u79c1\u6709 JSP \u9875\u9762&#xff08;\u5ba2\u6237\u7aef\u65e0\u6cd5\u76f4\u63a5\u8bbf\u95ee&#xff0c;\u9700\u901a\u8fc7 Servlet \u8f6c\u53d1&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<ul>\n<li style=\"text-align:justify\">WEB-INF\/\u00a0\u662f\u5173\u952e\u76ee\u5f55&#xff0c;\u5305\u542b\u5e94\u7528\u7684\u6838\u5fc3\u914d\u7f6e\u548c\u4ee3\u7801&#xff0c;\u4e14\u5ba2\u6237\u7aef\u65e0\u6cd5\u901a\u8fc7 URL \u76f4\u63a5\u8bbf\u95ee&#xff08;\u4fdd\u8bc1\u5b89\u5168\u6027&#xff09;\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u603b\u7ed3<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Tomcat \u7684\u6587\u4ef6\u7ed3\u6784\u9075\u5faa \u201c\u529f\u80fd\u5206\u79bb\u201d \u539f\u5219&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">bin\/\u00a0\u8d1f\u8d23\u542f\u505c\u63a7\u5236&#xff0c;conf\/\u00a0\u8d1f\u8d23\u89c4\u5219\u914d\u7f6e&#xff0c;lib\/\u00a0\u63d0\u4f9b\u8fd0\u884c\u4f9d\u8d56&#xff1b;<\/li>\n<li style=\"text-align:justify\">webapps\/\u00a0\u662f\u5e94\u7528\u90e8\u7f72\u7684\u6838\u5fc3\u533a\u57df&#xff0c;work\/\u00a0\u548c\u00a0temp\/\u00a0\u662f\u8fd0\u884c\u65f6\u4e34\u65f6\u76ee\u5f55&#xff1b;<\/li>\n<li style=\"text-align:justify\">logs\/\u00a0\u8bb0\u5f55\u5168\u751f\u547d\u5468\u671f\u7684\u64cd\u4f5c\u548c\u9519\u8bef\u4fe1\u606f&#xff0c;\u4fbf\u4e8e\u95ee\u9898\u6392\u67e5\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7406\u89e3\u8fd9\u4e9b\u76ee\u5f55\u7684\u4f5c\u7528&#xff0c;\u80fd\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u9ad8\u6548\u5730\u914d\u7f6e Tomcat\u3001\u90e8\u7f72\u5e94\u7528\u548c\u6392\u67e5\u6545\u969c\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u751f\u6210tomcat\u7684\u4e3b\u914d\u7f6e\u6587\u4ef6<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">[root&#064;tomcat ~]# vim \/usr\/local\/tomcat\/conf\/tomcat.conf JAVA_HOME&#061;\/etc\/alternatives\/jre<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u751f\u6210\u542f\u52a8\u6587\u4ef6<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">[root&#064;tomcat ~]# vim \/lib\/systemd\/system\/tomcat.service<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0[Unit]<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0Description&#061;Tomcat<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0#After&#061;syslog.target network.target remote-fs.target nss-lookup.target<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0After&#061;syslog.target network.target<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0[Service]<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0Type&#061;forking<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0EnvironmentFile&#061;\/usr\/local\/tomcat\/conf\/tomcat.conf<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0ExecStart&#061;\/usr\/local\/tomcat\/bin\/startup.sh<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0ExecStop&#061;\/usr\/local\/tomcat\/bin\/shutdown.sh<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0PrivateTmp&#061;true<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0User&#061;tomcat<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0Group&#061;tomcat<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0[Install]<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0WantedBy&#061;multi-user.target<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u751f\u6210tomcat\u7528\u6237\u5e76\u8bbe\u5b9a\u8f6f\u4ef6\u5b89\u88c5\u76ee\u5f55\u6743\u9650<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">[root&#064;tomcatB bin]# useradd -s \/sbin\/nologin -M tomcat<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">[root&#064;tomcatB bin]# chown tomcat.tomcat \/usr\/local\/tomcat\/ -R<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7ed3\u5408\u53cd\u5411\u4ee3\u7406\u5b9e\u73b0tomcat\u90e8\u7f72<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5e38\u89c1\u90e8\u7f72\u65b9\u5f0f\u4ecb\u7ecd<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"510\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815154225-689f55617a2fe.png\" width=\"865\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">standalone\u6a21\u5f0f&#xff0c;Tomcat\u5355\u72ec\u8fd0\u884c&#xff0c;\u76f4\u63a5\u63a5\u53d7\u7528\u6237\u7684\u8bf7\u6c42&#xff0c;\u4e0d\u63a8\u8350\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u53cd\u5411\u4ee3\u7406&#xff0c;\u5355\u673a\u8fd0\u884c&#xff0c;\u63d0\u4f9b\u4e86\u4e00\u4e2aNginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406&#xff0c;\u53ef\u4ee5\u505a\u5230\u9759\u6001\u7531nginx\u63d0\u4f9b\u54cd\u5e94&#xff0c;\u52a8\u6001jsp\u4ee3<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7406\u7ed9Tomcat<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0LNMT&#xff1a;Linux &#043; Nginx &#043; MySQL &#043; Tomcat<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0LAMT&#xff1a;Linux &#043; Apache&#xff08;Httpd&#xff09;&#043; MySQL &#043; Tomcat<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u524d\u7f6e\u4e00\u53f0Nginx&#xff0c;\u7ed9\u591a\u53f0Tomcat\u5b9e\u4f8b\u505a\u53cd\u5411\u4ee3\u7406\u548c\u8d1f\u8f7d\u5747\u8861\u8c03\u5ea6&#xff0c;Tomcat\u4e0a\u90e8\u7f72\u7684\u7eaf\u52a8\u6001\u9875\u9762\u66f4<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u9002\u5408<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">LNMT&#xff1a;Linux &#043; Nginx &#043; MySQL &#043; Tomcat<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u591a\u7ea7\u4ee3\u7406<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">LNNMT&#xff1a;Linux &#043; Nginx &#043; Nginx &#043; MySQL &#043; Tomcat<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5229\u7528 nginx \u53cd\u5411\u4ee3\u7406\u5b9e\u73b0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"339\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815154228-689f55646d221.png\" width=\"865\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5229\u7528nginx\u53cd\u5411\u4ee3\u7406\u529f\u80fd&#xff0c;\u5b9e\u73b0\u56fe\u4e2d\u7684\u4ee3\u7406\u529f\u80fd&#xff0c;\u5c06\u7528\u6237\u8bf7\u6c42\u5168\u90e8\u8f6c\u53d1\u81f3\u6307\u5b9a\u7684\u540c\u4e00\u4e2atomcat\u4e3b\u673a<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5229\u7528nginx\u6307\u4ee4proxy_pass \u53ef\u4ee5\u5411\u540e\u7aef\u670d\u52a1\u5668\u8f6c\u53d1\u8bf7\u6c42\u62a5\u6587,\u5e76\u4e14\u5728\u8f6c\u53d1\u65f6\u4f1a\u4fdd\u7559\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\u62a5\u6587\u4e2d\u7684<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">host\u9996\u90e8<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">[root&#064;Nginx ~]# vim \/usr\/local\/nginx\/conf.d\/vhosts.conf<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0location ~ \\\\.jsp$ {<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0proxy_pass http:\/\/172.25.254.21:8080;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0}<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6d4b\u8bd5&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\u4fe1\u606f<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">172.25.254.21:8080\/test.jsp<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"400\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815154230-689f55668b1a9.png\" width=\"671\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b9e\u73b0tomcat\u4e2d\u7684\u8d1f\u8f7d\u5747\u8861<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u52a8\u6001\u670d\u52a1\u5668\u7684\u95ee\u9898&#xff0c;\u5f80\u5f80\u5c31\u662f\u5e76\u53d1\u80fd\u529b\u592a\u5f31&#xff0c;\u5f80\u5f80\u9700\u8981\u591a\u53f0\u52a8\u6001\u670d\u52a1\u5668\u4e00\u8d77\u63d0\u4f9b\u670d\u52a1\u3002\u5982\u4f55\u628a\u5e76\u53d1\u7684\u538b\u529b\u5206\u644a&#xff0c;\u8fd9\u5c31\u9700\u8981\u8c03\u5ea6&#xff0c;\u91c7\u7528\u4e00\u5b9a\u7684\u8c03\u5ea6\u7b56\u7565&#xff0c;\u5c06\u8bf7\u6c42\u5206\u53d1\u7ed9\u4e0d\u540c\u7684\u670d\u52a1\u5668&#xff0c;\u8fd9\u5c31\u662fLoad Balance\u8d1f\u8f7d \u5747\u8861\u3002 \u5f53\u5355\u673aTomcat&#xff0c;\u6f14\u5316\u51fa\u591a\u673a\u591a\u7ea7\u90e8\u7f72\u7684\u65f6\u5019&#xff0c;\u4e00\u4e2a\u95ee\u9898\u4fbf\u51f8\u663e\u51fa\u6765&#xff0c;\u8fd9\u5c31\u662fSession\u3002\u800c\u8fd9\u4e2a\u95ee\u9898\u7684\u7531 \u6765&#xff0c;\u90fd\u662f\u7531\u4e8eHTTP\u534f\u8bae\u5728\u8bbe\u8ba1\u4e4b\u521d\u6ca1\u6709\u60f3\u5230\u672a\u6765\u7684\u53d1\u5c55\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">HTTP \u534f\u8bae\u7684\u65e0\u72b6\u6001\u3001\u6709\u8fde\u63a5\u548c\u77ed\u8fde\u63a5\u662f\u5176\u6838\u5fc3\u7279\u6027&#xff0c;\u6df1\u523b\u5f71\u54cd\u7740\u7f51\u7edc\u901a\u4fe1\u7684\u8bbe\u8ba1\u548c\u5e94\u7528\u573a\u666f\u3002\u4ee5\u4e0b\u4ece\u6982\u5ff5\u3001\u7279\u70b9\u3001\u5f71\u54cd\u53ca\u5e94\u5bf9\u65b9\u5f0f\u7b49\u65b9\u9762\u8be6\u7ec6\u89e3\u6790&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e00\u3001HTTP \u7684\u65e0\u72b6\u6001&#xff08;Stateless&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b9a\u4e49&#xff1a;HTTP \u534f\u8bae\u672c\u8eab\u4e0d\u4fdd\u5b58\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u72b6\u6001&#xff0c;\u5373\u670d\u52a1\u5668\u5bf9\u5ba2\u6237\u7aef\u7684\u6bcf\u6b21\u8bf7\u6c42\u90fd\u662f\u72ec\u7acb\u5904\u7406\u7684&#xff0c;\u4e0d\u4f1a\u8bb0\u5fc6\u4e4b\u524d\u7684\u8bf7\u6c42\u4fe1\u606f&#xff08;\u5982\u7528\u6237\u767b\u5f55\u72b6\u6001\u3001\u64cd\u4f5c\u5386\u53f2\u7b49&#xff09;\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7279\u70b9&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u670d\u52a1\u5668 \u201c\u5fd8\u8bb0\u201d \u5386\u53f2&#xff1a;\u6bcf\u6b21\u8bf7\u6c42\u90fd\u662f\u5168\u65b0\u7684&#xff0c;\u670d\u52a1\u5668\u4e0d\u4f1a\u5b58\u50a8\u5ba2\u6237\u7aef\u7684\u4e0a\u4e0b\u6587\u4fe1\u606f&#xff08;\u5982 \u201c\u4e0a\u4e00\u6b21\u8bf7\u6c42\u6d4f\u89c8\u4e86\u54ea\u4e2a\u9875\u9762\u201d&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u8bf7\u6c42\u72ec\u7acb\u6027&#xff1a;\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u8bf7\u6c42\u5fc5\u987b\u5305\u542b\u6240\u6709\u5fc5\u8981\u4fe1\u606f&#xff08;\u5982\u8eab\u4efd\u8ba4\u8bc1\u3001\u53c2\u6570\u7b49&#xff09;&#xff0c;\u670d\u52a1\u5668\u65e0\u9700\u4f9d\u8d56\u8fc7\u5f80\u4ea4\u4e92\u5373\u53ef\u5904\u7406\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5f71\u54cd\u4e0e\u89e3\u51b3&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u95ee\u9898&#xff1a;\u65e0\u72b6\u6001\u5bfc\u81f4\u65e0\u6cd5\u7ef4\u6301\u7528\u6237\u4f1a\u8bdd&#xff08;\u5982\u767b\u5f55\u540e\u8df3\u8f6c\u9875\u9762\u4ecd\u9700\u9a8c\u8bc1\u8eab\u4efd&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u89e3\u51b3\u65b9\u6848&#xff1a;\n<ul>\n<li style=\"text-align:justify\">Cookie&#xff1a;\u5ba2\u6237\u7aef\u5b58\u50a8\u7684\u5c0f\u578b\u6587\u672c\u6587\u4ef6&#xff0c;\u7531\u670d\u52a1\u5668\u4e0b\u53d1&#xff0c;\u6bcf\u6b21\u8bf7\u6c42\u81ea\u52a8\u643a\u5e26&#xff0c;\u7528\u4e8e\u6807\u8bc6\u7528\u6237\u3002<\/li>\n<li style=\"text-align:justify\">Session&#xff1a;\u670d\u52a1\u5668\u7aef\u5b58\u50a8\u7684\u4f1a\u8bdd\u6570\u636e&#xff0c;\u901a\u8fc7 Cookie \u4e2d\u7684 SessionID \u5173\u8054\u5ba2\u6237\u7aef&#xff0c;\u5b9e\u73b0\u72b6\u6001\u8ddf\u8e2a\u3002<\/li>\n<li style=\"text-align:justify\">Token&#xff1a;\u5ba2\u6237\u7aef\u8bf7\u6c42\u65f6\u643a\u5e26\u7684\u4ee4\u724c&#xff08;\u5982 JWT&#xff09;&#xff0c;\u670d\u52a1\u5668\u901a\u8fc7\u4ee4\u724c\u9a8c\u8bc1\u8eab\u4efd\u548c\u6743\u9650&#xff0c;\u65e0\u9700\u5b58\u50a8\u4f1a\u8bdd\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e8c\u3001HTTP \u7684\u6709\u8fde\u63a5&#xff08;Connection-Oriented&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b9a\u4e49&#xff1a;HTTP \u57fa\u4e8e TCP \u534f\u8bae\u5b9e\u73b0\u901a\u4fe1&#xff0c;\u800c TCP \u662f \u201c\u6709\u8fde\u63a5\u201d \u7684\u534f\u8bae&#xff0c;\u5373\u901a\u4fe1\u524d\u5fc5\u987b\u5efa\u7acb\u8fde\u63a5&#xff0c;\u901a\u4fe1\u7ed3\u675f\u540e\u5173\u95ed\u8fde\u63a5\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7279\u70b9&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u8fde\u63a5\u5efa\u7acb\u6d41\u7a0b&#xff1a;\u9700\u7ecf\u8fc7\u4e09\u6b21\u63e1\u624b&#xff08;\u5ba2\u6237\u7aef\u2192\u670d\u52a1\u5668\u8bf7\u6c42\u8fde\u63a5\u2192\u670d\u52a1\u5668\u786e\u8ba4\u2192\u5ba2\u6237\u7aef\u786e\u8ba4&#xff09;\u5efa\u7acb TCP \u8fde\u63a5\u3002<\/li>\n<li style=\"text-align:justify\">\u4f9d\u8d56\u5e95\u5c42\u8fde\u63a5&#xff1a;HTTP \u8bf7\u6c42\u548c\u54cd\u5e94\u5fc5\u987b\u5728\u5df2\u5efa\u7acb\u7684 TCP \u8fde\u63a5\u4e2d\u4f20\u8f93&#xff0c;\u8fde\u63a5\u4e2d\u65ad\u5219\u901a\u4fe1\u5931\u8d25\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e0e HTTP \u7684\u5173\u7cfb&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">HTTP \u672c\u8eab\u4e0d\u76f4\u63a5\u7ba1\u7406\u8fde\u63a5&#xff0c;\u800c\u662f\u4f9d\u8d56 TCP \u7684\u8fde\u63a5\u673a\u5236\u3002\u4f8b\u5982&#xff0c;\u5ba2\u6237\u7aef\u53d1\u9001 HTTP \u8bf7\u6c42\u524d&#xff0c;\u9700\u5148\u901a\u8fc7 TCP \u4e0e\u670d\u52a1\u5668\u5efa\u7acb\u8fde\u63a5&#xff0c;\u8bf7\u6c42\u5b8c\u6210\u540e\u518d\u901a\u8fc7 TCP \u56db\u6b21\u6325\u624b\u5173\u95ed\u8fde\u63a5\u3002<\/li>\n<li style=\"text-align:justify\">\u6ce8\u610f&#xff1a;\u201c\u6709\u8fde\u63a5\u201d \u662f TCP \u7684\u7279\u6027&#xff0c;HTTP \u4ec5 \u201c\u501f\u7528\u201d TCP \u7684\u8fde\u63a5\u8fdb\u884c\u6570\u636e\u4f20\u8f93&#xff0c;\u56e0\u6b64\u5e38\u8bf4 \u201cHTTP \u57fa\u4e8e\u6709\u8fde\u63a5\u7684 TCP \u534f\u8bae\u201d\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e09\u3001HTTP \u7684\u77ed\u8fde\u63a5&#xff08;Short Connection&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b9a\u4e49&#xff1a;\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;HTTP\/1.0 \u53ca\u65e9\u671f\u7248\u672c\u91c7\u7528 \u201c\u77ed\u8fde\u63a5\u201d \u6a21\u5f0f&#xff0c;\u5373\u4e00\u6b21\u8fde\u63a5\u4ec5\u5904\u7406\u4e00\u4e2a HTTP \u8bf7\u6c42&#xff0c;\u8bf7\u6c42\u5b8c\u6210\u540e\u7acb\u5373\u5173\u95ed\u8fde\u63a5\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6d41\u7a0b&#xff1a;<\/p>\n<li style=\"text-align:justify\">\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5efa\u7acb TCP \u8fde\u63a5\u3002<\/li>\n<li style=\"text-align:justify\">\u5ba2\u6237\u7aef\u53d1\u9001\u4e00\u4e2a HTTP \u8bf7\u6c42\u3002<\/li>\n<li style=\"text-align:justify\">\u670d\u52a1\u5668\u8fd4\u56de HTTP \u54cd\u5e94\u3002<\/li>\n<li style=\"text-align:justify\">\u8fde\u63a5\u5173\u95ed&#xff08;TCP \u56db\u6b21\u6325\u624b&#xff09;\u3002<\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7279\u70b9&#xff1a;<\/p>\n<ul>\n<li style=\"text-align:justify\">\u8f7b\u91cf\u4f46\u4f4e\u6548&#xff1a;\u6bcf\u6b21\u8bf7\u6c42\u90fd\u9700\u91cd\u65b0\u5efa\u7acb\u8fde\u63a5&#xff0c;\u589e\u52a0\u4e86\u4e09\u6b21\u63e1\u624b\u3001\u56db\u6b21\u6325\u624b\u7684\u8017\u65f6&#xff08;\u5c24\u5176\u5bf9\u591a\u8d44\u6e90\u9875\u9762&#xff0c;\u5982\u5305\u542b\u591a\u4e2a\u56fe\u7247\u3001CSS \u7684\u7f51\u9875&#xff0c;\u9700\u591a\u6b21\u5efa\u7acb\u8fde\u63a5&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u9002\u7528\u4e8e\u7b80\u5355\u573a\u666f&#xff1a;\u5982\u65e9\u671f\u9759\u6001\u7f51\u9875&#xff0c;\u8d44\u6e90\u5c11\u3001\u8bf7\u6c42\u9891\u7387\u4f4e\u7684\u573a\u666f\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4f18\u5316&#xff1a;\u957f\u8fde\u63a5&#xff08;Persistent Connection&#xff09;<\/p>\n<ul>\n<li style=\"text-align:justify\">HTTP\/1.1 \u9ed8\u8ba4\u542f\u7528&#xff1a;\u901a\u8fc7Connection: keep-alive\u5934\u90e8&#xff0c;\u4f7f TCP \u8fde\u63a5\u5728\u4e00\u6b21\u8bf7\u6c42\u540e\u4e0d\u5173\u95ed&#xff0c;\u53ef\u590d\u7528\u8fde\u63a5\u5904\u7406\u591a\u4e2a HTTP \u8bf7\u6c42&#xff08;\u76f4\u5230\u8d85\u65f6\u6216\u88ab\u4e3b\u52a8\u5173\u95ed&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u4f18\u52bf&#xff1a;\u51cf\u5c11\u8fde\u63a5\u5efa\u7acb\u6b21\u6570&#xff0c;\u964d\u4f4e\u5ef6\u8fdf&#xff0c;\u63d0\u5347\u591a\u8d44\u6e90\u9875\u9762\u7684\u52a0\u8f7d\u6548\u7387\u3002<\/li>\n<li style=\"text-align:justify\">\u9002\u7528\u573a\u666f&#xff1a;\u52a8\u6001\u7f51\u9875\u3001\u9ad8\u5e76\u53d1\u8bf7\u6c42&#xff08;\u5982\u7535\u5546\u7f51\u7ad9&#xff09;&#xff0c;\u9700\u9891\u7e41\u4ea4\u4e92\u7684\u573a\u666f\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u603b\u7ed3&#xff1a;\u4e09\u8005\u5173\u7cfb<\/p>\n<ul>\n<li style=\"text-align:justify\">\u65e0\u72b6\u6001&#xff1a;HTTP \u534f\u8bae\u7684\u6838\u5fc3\u7279\u6027&#xff0c;\u51b3\u5b9a\u4e86\u5176\u65e0\u6cd5\u5929\u7136\u7ef4\u6301\u4f1a\u8bdd&#xff0c;\u9700\u901a\u8fc7 Cookie\u3001Session \u7b49\u673a\u5236\u8865\u5145\u3002<\/li>\n<li style=\"text-align:justify\">\u6709\u8fde\u63a5&#xff1a;HTTP \u4f9d\u8d56 TCP \u7684\u6709\u8fde\u63a5\u7279\u6027&#xff0c;\u901a\u4fe1\u524d\u5fc5\u987b\u5efa\u7acb TCP \u8fde\u63a5&#xff0c;\u662f\u6570\u636e\u4f20\u8f93\u7684\u57fa\u7840\u3002<\/li>\n<li style=\"text-align:justify\">\u77ed\u8fde\u63a5&#xff1a;HTTP \u65e9\u671f\u7684\u8fde\u63a5\u6a21\u5f0f&#xff0c;\u56e0\u6548\u7387\u95ee\u9898\u88ab HTTP\/1.1 \u7684\u957f\u8fde\u63a5\u66ff\u4ee3&#xff0c;\u4f46\u672c\u8d28\u662f\u5bf9 TCP \u8fde\u63a5\u7684\u4f7f\u7528\u65b9\u5f0f&#xff08;\u4e00\u6b21\u8fde\u63a5\u5904\u7406\u4e00\u4e2a\u8bf7\u6c42&#xff09;\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fd9\u4e9b\u7279\u6027\u5171\u540c\u5f71\u54cd\u4e86 HTTP \u7684\u8bbe\u8ba1&#xff0c;\u540e\u7eed HTTP\/2\u3001HTTP\/3 \u901a\u8fc7\u591a\u8def\u590d\u7528\u3001QUIC \u534f\u8bae\u7b49\u8fdb\u4e00\u6b65\u4f18\u5316\u4e86\u8fde\u63a5\u6548\u7387\u548c\u6027\u80fd&#xff0c;\u4f46\u6838\u5fc3\u7684\u65e0\u72b6\u6001\u7279\u6027\u4ecd\u88ab\u4fdd\u7559&#xff08;\u9700\u901a\u8fc7\u989d\u5916\u673a\u5236\u5b9e\u73b0\u72b6\u6001\u8ddf\u8e2a&#xff09;\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">upstream tomcat {<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 #hash $cookie_JSESSIONID;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 server 172.25.254.21:8080;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 server 172.25.254.22:8080;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">}<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">server {<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 listen 80;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 server_name www.xie.org;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 location ~ \\\\.jsp$ {<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 proxy_pass http:\/\/tomcat;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0 }<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">}<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"300\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815154232-689f556868c24.png\" width=\"431\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"293\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815154233-689f5569c346c.png\" width=\"422\" \/><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Memcached<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Memcached \u662f\u4e00\u6b3e\u9ad8\u6027\u80fd\u7684\u5206\u5e03\u5f0f\u5185\u5b58\u5bf9\u8c61\u7f13\u5b58\u7cfb\u7edf&#xff0c;\u4e3b\u8981\u7528\u4e8e\u51cf\u8f7b\u6570\u636e\u5e93\u8d1f\u8f7d\u3001\u52a0\u901f\u52a8\u6001 Web \u5e94\u7528\u7684\u54cd\u5e94\u901f\u5ea6\u3002\u5b83\u901a\u8fc7\u5c06\u9891\u7e41\u8bbf\u95ee\u7684\u6570\u636e\u5b58\u50a8\u5728\u5185\u5b58\u4e2d&#xff0c;\u907f\u514d\u4e86\u91cd\u590d\u4ece\u6570\u636e\u5e93\u6216\u78c1\u76d8\u8bfb\u53d6\u6570\u636e\u7684\u5f00\u9500&#xff0c;\u4ece\u800c\u663e\u8457\u63d0\u5347\u7cfb\u7edf\u6027\u80fd\u3002\u4ee5\u4e0b\u4ece\u6838\u5fc3\u7279\u6027\u3001\u5de5\u4f5c\u539f\u7406\u3001\u67b6\u6784\u3001\u5e94\u7528\u573a\u666f\u7b49\u65b9\u9762\u8be6\u7ec6\u4ecb\u7ecd&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e00\u3001\u6838\u5fc3\u7279\u6027<\/p>\n<li style=\"text-align:justify\">\u5185\u5b58\u5b58\u50a8<br \/>\n\u6570\u636e\u5b8c\u5168\u5b58\u50a8\u5728\u5185\u5b58\u4e2d&#xff0c;\u8bfb\u5199\u901f\u5ea6\u6781\u5feb&#xff08;\u5185\u5b58\u8bbf\u95ee\u5ef6\u8fdf\u901a\u5e38\u5728\u5fae\u79d2\u7ea7&#xff0c;\u8fdc\u4f4e\u4e8e\u78c1\u76d8\u7684\u6beb\u79d2\u7ea7&#xff09;&#xff0c;\u4f46\u670d\u52a1\u5668\u91cd\u542f\u6216\u65ad\u7535\u540e\u6570\u636e\u4f1a\u4e22\u5931&#xff0c;\u56e0\u6b64\u4e0d\u9002\u5408\u4f5c\u4e3a\u6301\u4e45\u5316\u5b58\u50a8&#xff0c;\u4ec5\u7528\u4e8e\u7f13\u5b58\u4e34\u65f6\u6570\u636e\u3002<\/li>\n<li style=\"text-align:justify\">\u952e\u503c\u5bf9\u5b58\u50a8<br \/>\n\u6570\u636e\u4ee5 \u201c\u952e&#xff08;Key&#xff09;- \u503c&#xff08;Value&#xff09;\u201d \u5f62\u5f0f\u5b58\u50a8&#xff0c;\u952e\u548c\u503c\u5747\u4e3a\u5b57\u7b26\u4e32\u7c7b\u578b&#xff08;\u503c\u53ef\u5e8f\u5217\u5316\u540e\u5b58\u50a8\u5bf9\u8c61\u3001\u6570\u7ec4\u7b49\u590d\u6742\u6570\u636e&#xff09;\u3002\u952e\u7684\u6700\u5927\u957f\u5ea6\u4e3a 250 \u5b57\u8282&#xff0c;\u503c\u7684\u9ed8\u8ba4\u6700\u5927\u9650\u5236\u4e3a 1MB&#xff08;\u53ef\u901a\u8fc7\u914d\u7f6e\u4fee\u6539&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u5206\u5e03\u5f0f\u8bbe\u8ba1<br \/>\n\u652f\u6301\u591a\u670d\u52a1\u5668\u96c6\u7fa4\u90e8\u7f72&#xff0c;\u5ba2\u6237\u7aef\u53ef\u901a\u8fc7\u54c8\u5e0c\u7b97\u6cd5&#xff08;\u5982\u4e00\u81f4\u6027\u54c8\u5e0c&#xff09;\u5c06\u4e0d\u540c\u7684\u952e\u5206\u914d\u5230\u4e0d\u540c\u670d\u52a1\u5668&#xff0c;\u5b9e\u73b0\u6570\u636e\u5206\u7247\u548c\u8d1f\u8f7d\u5747\u8861&#xff0c;\u8f7b\u677e\u6269\u5c55\u7f13\u5b58\u5bb9\u91cf\u3002<\/li>\n<li style=\"text-align:justify\">\u7b80\u5355\u534f\u8bae<br \/>\n\u91c7\u7528\u6587\u672c\u534f\u8bae&#xff08;\u5982set\u3001get\u3001delete\u7b49\u547d\u4ee4&#xff09;&#xff0c;\u901a\u4fe1\u7b80\u6d01\u9ad8\u6548&#xff0c;\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00&#xff08;Java\u3001Python\u3001PHP\u3001C# \u7b49&#xff09;\u7684\u5ba2\u6237\u7aef\u5e93\u3002<\/li>\n<li style=\"text-align:justify\">\u8fc7\u671f\u7b56\u7565<br \/>\n\u6bcf\u4e2a\u952e\u503c\u5bf9\u53ef\u8bbe\u7f6e\u8fc7\u671f\u65f6\u95f4&#xff08;TTL&#xff0c;Time To Live&#xff09;&#xff0c;\u8fc7\u671f\u540e\u6570\u636e\u81ea\u52a8\u5220\u9664&#xff0c;\u91ca\u653e\u5185\u5b58\u7a7a\u95f4\u3002\u82e5\u5185\u5b58\u4e0d\u8db3&#xff0c;\u4f1a\u89e6\u53d1LRU&#xff08;\u6700\u8fd1\u6700\u5c11\u4f7f\u7528&#xff09;\u6dd8\u6c70\u673a\u5236&#xff0c;\u5220\u9664\u6700\u4e45\u672a\u88ab\u8bbf\u95ee\u7684\u6570\u636e\u3002<\/li>\n<li style=\"text-align:justify\">\u65e0\u72b6\u6001<br \/>\n\u670d\u52a1\u5668\u4e0d\u4fdd\u5b58\u5ba2\u6237\u7aef\u4f1a\u8bdd\u4fe1\u606f&#xff0c;\u6bcf\u4e2a\u8bf7\u6c42\u90fd\u662f\u72ec\u7acb\u7684&#xff0c;\u4fbf\u4e8e\u96c6\u7fa4\u6269\u5c55&#xff08;\u65b0\u589e\u670d\u52a1\u5668\u65e0\u9700\u540c\u6b65\u72b6\u6001&#xff09;\u3002<\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e8c\u3001\u5de5\u4f5c\u539f\u7406<\/p>\n<li style=\"text-align:justify\">\u6570\u636e\u7f13\u5b58\u6d41\u7a0b\n<ul>\n<li style=\"text-align:justify\">\u5ba2\u6237\u7aef\u8bf7\u6c42\u6570\u636e\u65f6&#xff0c;\u5148\u67e5\u8be2 Memcached&#xff1a;\n<ul>\n<li style=\"text-align:justify\">\u82e5\u547d\u4e2d&#xff08;\u5b58\u5728\u5bf9\u5e94\u952e&#xff09;&#xff0c;\u76f4\u63a5\u8fd4\u56de\u7f13\u5b58\u6570\u636e&#xff0c;\u907f\u514d\u8bbf\u95ee\u6570\u636e\u5e93\u3002<\/li>\n<li style=\"text-align:justify\">\u82e5\u672a\u547d\u4e2d&#xff0c;\u5ba2\u6237\u7aef\u4ece\u6570\u636e\u5e93\u8bfb\u53d6\u6570\u636e&#xff0c;\u540c\u65f6\u5c06\u6570\u636e\u5199\u5165 Memcached&#xff08;\u4f9b\u540e\u7eed\u8bf7\u6c42\u4f7f\u7528&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u5206\u5e03\u5f0f\u54c8\u5e0c\u673a\u5236\n<ul>\n<li style=\"text-align:justify\">\u5ba2\u6237\u7aef\u901a\u8fc7\u54c8\u5e0c\u51fd\u6570&#xff08;\u5982\u5bf9 Key \u8fdb\u884c\u54c8\u5e0c&#xff09;\u8ba1\u7b97\u51fa\u4e00\u4e2a\u6570\u503c&#xff0c;\u518d\u6839\u636e\u670d\u52a1\u5668\u6570\u91cf\u53d6\u6a21&#xff0c;\u786e\u5b9a\u8be5 Key \u5e94\u5b58\u50a8\u5728\u54ea\u4e2a\u670d\u52a1\u5668\u8282\u70b9&#xff0c;\u5b9e\u73b0\u6570\u636e\u7684\u5206\u5e03\u5f0f\u5b58\u50a8\u3002<\/li>\n<li style=\"text-align:justify\">\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\u53ef\u51cf\u5c11\u670d\u52a1\u5668\u589e\u51cf\u65f6\u7684\u6570\u636e\u8fc1\u79fb\u91cf&#xff0c;\u63d0\u5347\u96c6\u7fa4\u7a33\u5b9a\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u5185\u5b58\u7ba1\u7406\n<ul>\n<li style=\"text-align:justify\">\u91c7\u7528\u9884\u5206\u914d\u5185\u5b58\u6c60&#xff08;Slab Allocation&#xff09;\u673a\u5236&#xff0c;\u5c06\u5185\u5b58\u5212\u5206\u4e3a\u4e0d\u540c\u5927\u5c0f\u7684\u5757&#xff08;Slab Class&#xff09;&#xff0c;\u6bcf\u4e2a\u5757\u53ea\u80fd\u5b58\u50a8\u7279\u5b9a\u5927\u5c0f\u7684\u6570\u636e\u3002<\/li>\n<li style=\"text-align:justify\">\u4f18\u52bf&#xff1a;\u51cf\u5c11\u5185\u5b58\u788e\u7247&#xff0c;\u63d0\u9ad8\u5185\u5b58\u5229\u7528\u7387&#xff1b;\u52a3\u52bf&#xff1a;\u82e5\u6570\u636e\u5927\u5c0f\u4e0e\u5757\u4e0d\u5339\u914d&#xff0c;\u53ef\u80fd\u5bfc\u81f4\u5185\u5b58\u6d6a\u8d39\u3002<\/li>\n<\/ul>\n<\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e09\u3001\u67b6\u6784\u7ec4\u6210<\/p>\n<li style=\"text-align:justify\">\u5ba2\u6237\u7aef&#xff08;Client&#xff09;\n<ul>\n<li style=\"text-align:justify\">\u96c6\u6210 Memcached \u5ba2\u6237\u7aef\u5e93\u7684\u5e94\u7528\u7a0b\u5e8f&#xff08;\u5982 Web \u670d\u52a1\u5668\u3001APP \u540e\u7aef&#xff09;&#xff0c;\u8d1f\u8d23\u5411 Memcached \u670d\u52a1\u5668\u53d1\u9001\u547d\u4ee4&#xff08;\u8bfb\u5199\u6570\u636e&#xff09;&#xff0c;\u5e76\u5904\u7406\u54c8\u5e0c\u5206\u7247\u903b\u8f91\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">Memcached \u670d\u52a1\u5668&#xff08;Server&#xff09;\n<ul>\n<li style=\"text-align:justify\">\u72ec\u7acb\u8fd0\u884c\u7684\u5b88\u62a4\u8fdb\u7a0b&#xff08;Daemon&#xff09;&#xff0c;\u76d1\u542c\u6307\u5b9a\u7aef\u53e3&#xff08;\u9ed8\u8ba4 11211&#xff09;&#xff0c;\u63a5\u6536\u5ba2\u6237\u7aef\u547d\u4ee4\u5e76\u7ba1\u7406\u5185\u5b58\u4e2d\u7684\u952e\u503c\u5bf9\u6570\u636e\u3002<\/li>\n<li style=\"text-align:justify\">\u5355\u53f0\u670d\u52a1\u5668\u53ef\u914d\u7f6e\u5185\u5b58\u5927\u5c0f&#xff08;\u901a\u8fc7-m\u53c2\u6570&#xff0c;\u5982-m 1024\u8868\u793a\u5206\u914d 1GB \u5185\u5b58&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li style=\"text-align:justify\">\u901a\u4fe1\u534f\u8bae\n<ul>\n<li style=\"text-align:justify\">\u57fa\u4e8e TCP \u534f\u8bae\u4f20\u8f93&#xff0c;\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u901a\u8fc7\u6587\u672c\u547d\u4ee4\u4ea4\u4e92&#xff0c;\u4f8b\u5982&#xff1a;\n<ul>\n<li style=\"text-align:justify\">set key 0 3600 5&#xff1a;\u5b58\u50a8\u952e\u4e3akey\u3001\u8fc7\u671f\u65f6\u95f4 3600 \u79d2\u3001\u503c\u957f\u5ea6 5 \u5b57\u8282\u7684\u6570\u636e\u3002<\/li>\n<li style=\"text-align:justify\">get key&#xff1a;\u83b7\u53d6\u952ekey\u5bf9\u5e94\u7684\u503c\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u56db\u3001\u5e94\u7528\u573a\u666f<\/p>\n<li style=\"text-align:justify\">\u6570\u636e\u5e93\u67e5\u8be2\u7f13\u5b58<br \/>\n\u7f13\u5b58\u9891\u7e41\u8bbf\u95ee\u7684\u6570\u636e\u5e93\u67e5\u8be2\u7ed3\u679c&#xff08;\u5982\u7528\u6237\u4fe1\u606f\u3001\u5546\u54c1\u5217\u8868&#xff09;&#xff0c;\u51cf\u5c11\u6570\u636e\u5e93\u7684\u67e5\u8be2\u538b\u529b&#xff0c;\u5c24\u5176\u9002\u7528\u4e8e\u8bfb\u591a\u5199\u5c11\u7684\u573a\u666f&#xff08;\u5982\u7535\u5546\u5546\u54c1\u8be6\u60c5\u9875&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u4f1a\u8bdd\u5b58\u50a8<br \/>\n\u5b58\u50a8\u7528\u6237\u4f1a\u8bdd\u6570\u636e&#xff08;\u5982\u767b\u5f55\u72b6\u6001\u3001\u8d2d\u7269\u8f66\u4fe1\u606f&#xff09;&#xff0c;\u66ff\u4ee3\u670d\u52a1\u5668\u672c\u5730 Session&#xff0c;\u652f\u6301\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u7684\u4f1a\u8bdd\u5171\u4eab&#xff08;\u5982\u591a\u53f0 Web \u670d\u52a1\u5668\u96c6\u7fa4&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u8ba1\u6570\u5668\u4e0e\u9650\u6d41<br \/>\n\u5229\u7528incr\/decr\u547d\u4ee4\u5b9e\u73b0\u5206\u5e03\u5f0f\u8ba1\u6570\u5668&#xff08;\u5982\u9875\u9762\u8bbf\u95ee\u91cf&#xff09;&#xff0c;\u6216\u7ed3\u5408\u8fc7\u671f\u65f6\u95f4\u5b9e\u73b0\u63a5\u53e3\u9650\u6d41&#xff08;\u5982\u9650\u5236\u67d0 IP \u7684\u8bf7\u6c42\u9891\u7387&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u4e34\u65f6\u6570\u636e\u7f13\u5b58<br \/>\n\u7f13\u5b58 API \u8c03\u7528\u7ed3\u679c\u3001\u9875\u9762\u7247\u6bb5&#xff08;\u5982\u9996\u9875\u70ed\u70b9\u65b0\u95fb&#xff09;\u3001\u4e34\u65f6\u751f\u6210\u7684\u52a8\u6001\u5185\u5bb9\u7b49&#xff0c;\u7f29\u77ed\u7528\u6237\u7b49\u5f85\u65f6\u95f4\u3002<\/li>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e94\u3001\u4f18\u7f3a\u70b9\u4e0e\u9002\u7528\u573a\u666f<\/p>\n<table cellspacing=\"0\">\n<tr>\n<td style=\"background-color:#f2f2f2\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:black\">\u4f18\u52bf<\/span><\/p>\n<\/td>\n<td style=\"background-color:#f2f2f2\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:black\">\u52a3\u52bf<\/span><\/p>\n<\/td>\n<\/tr>\n<tbody>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5185\u5b58\u5b58\u50a8&#xff0c;\u8bfb\u5199\u901f\u5ea6\u6781\u5feb<\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6570\u636e\u975e\u6301\u4e45\u5316&#xff0c;\u91cd\u542f\u4e22\u5931<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5206\u5e03\u5f0f\u8bbe\u8ba1&#xff0c;\u6613\u4e8e\u6269\u5c55<\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e0d\u652f\u6301\u590d\u6742\u67e5\u8be2&#xff08;\u4ec5\u952e\u503c\u67e5\u8be2&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u534f\u8bae\u7b80\u5355&#xff0c;\u517c\u5bb9\u6027\u5f3a<\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5355\u4e2a\u503c\u5927\u5c0f\u6709\u9650\u5236&#xff08;\u9ed8\u8ba4 1MB&#xff09;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u65e0\u72b6\u6001&#xff0c;\u96c6\u7fa4\u90e8\u7f72\u7075\u6d3b<\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4e0d\u652f\u6301\u6570\u636e\u5907\u4efd&#xff08;\u9700\u4f9d\u8d56\u5ba2\u6237\u7aef\u5b9e\u73b0&#xff09;<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u9002\u7528\u573a\u666f&#xff1a;\u9ad8\u5e76\u53d1\u8bfb\u573a\u666f\u3001\u4e34\u65f6\u6570\u636e\u7f13\u5b58\u3001\u5206\u5e03\u5f0f\u4f1a\u8bdd\u7ba1\u7406&#xff1b;<br \/>\n\u4e0d\u9002\u7528\u573a\u666f&#xff1a;\u9700\u8981\u6301\u4e45\u5316\u5b58\u50a8\u3001\u590d\u6742\u67e5\u8be2&#xff08;\u5982 SQL \u6761\u4ef6\u8fc7\u6ee4&#xff09;\u3001\u5927\u6570\u636e\u503c\u5b58\u50a8\u7684\u573a\u666f&#xff08;\u53ef\u8003\u8651 Redis \u7b49\u66ff\u4ee3\u65b9\u6848&#xff09;\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u516d\u3001\u4e0e Redis \u7684\u5bf9\u6bd4<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Memcached \u548c Redis \u5747\u4e3a\u5185\u5b58\u7f13\u5b58\u7cfb\u7edf&#xff0c;\u4f46\u5b58\u5728\u663e\u8457\u5dee\u5f02&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n\u00a0<\/p>\n<ul>\n<li style=\"text-align:justify\">\u6570\u636e\u7ed3\u6784&#xff1a;Memcached \u4ec5\u652f\u6301\u952e\u503c\u5bf9&#xff1b;Redis \u652f\u6301\u5b57\u7b26\u4e32\u3001\u54c8\u5e0c\u3001\u5217\u8868\u3001\u96c6\u5408\u7b49\u591a\u79cd\u6570\u636e\u7ed3\u6784\u3002<\/li>\n<li style=\"text-align:justify\">\u6301\u4e45\u5316&#xff1a;Memcached \u65e0\u6301\u4e45\u5316&#xff1b;Redis \u652f\u6301 RDB\u3001AOF \u6301\u4e45\u5316\u3002<\/li>\n<li style=\"text-align:justify\">\u529f\u80fd\u6269\u5c55&#xff1a;Redis \u652f\u6301\u4e8b\u52a1\u3001\u53d1\u5e03\u8ba2\u9605\u3001Lua \u811a\u672c\u7b49\u9ad8\u7ea7\u529f\u80fd&#xff1b;Memcached \u529f\u80fd\u66f4\u7b80\u5355\u3002<\/li>\n<li style=\"text-align:justify\">\u6027\u80fd&#xff1a;\u7b80\u5355\u952e\u503c\u573a\u666f\u4e0b\u4e24\u8005\u6027\u80fd\u63a5\u8fd1&#xff0c;\u590d\u6742\u64cd\u4f5c Redis \u66f4\u4f18\u3002<\/li>\n<\/ul>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u9009\u62e9\u65f6\u9700\u6839\u636e\u4e1a\u52a1\u9700\u6c42&#xff1a;\u8ffd\u6c42\u7b80\u5355\u9ad8\u6548\u7684\u5206\u5e03\u5f0f\u7f13\u5b58\u9009 Memcached&#xff1b;\u9700\u590d\u6742\u6570\u636e\u7ed3\u6784\u6216\u6301\u4e45\u5316\u9009 Redis\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u603b\u4e4b&#xff0c;Memcached \u51ed\u501f\u8f7b\u91cf\u3001\u9ad8\u6548\u3001\u5206\u5e03\u5f0f\u7684\u7279\u70b9&#xff0c;\u6210\u4e3a\u65e9\u671f Web \u5e94\u7528\u7f13\u5b58\u7684\u91cd\u8981\u9009\u62e9&#xff0c;\u81f3\u4eca\u4ecd\u5728\u90e8\u5206\u573a\u666f\u4e2d\u53d1\u6325\u4f5c\u7528\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb836\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u5982\u4f55\u628a\u5e76\u53d1\u7684\u538b\u529b\u5206\u644a\uff0c\u8fd9\u5c31\u9700\u8981\u8c03\u5ea6\uff0c\u91c7\u7528\u4e00\u5b9a\u7684\u8c03\u5ea6\u7b56\u7565\uff0c\u5c06\u8bf7\u6c42\u5206\u53d1\u7ed9\u4e0d\u540c\u7684\u670d\u52a1\u5668\uff0c\u8fd9\u5c31\u662fLoad Balance\u8d1f\u8f7d \u5747\u8861\u3002\u8fd9\u4e9b\u7279\u6027\u5171\u540c\u5f71\u54cd\u4e86 HTTP \u7684\u8bbe\u8ba1\uff0c\u540e\u7eed HTTP\/2\u3001HTTP\/3 \u901a\u8fc7\u591a\u8def\u590d\u7528\u3001QUIC \u534f\u8bae\u7b49\u8fdb\u4e00\u6b65\u4f18\u5316\u4e86\u8fde\u63a5\u6548\u7387\u548c\u6027\u80fd\uff0c\u4f46\u6838\u5fc3\u7684\u65e0\u72b6\u6001\u7279\u6027\u4ecd\u88ab\u4fdd\u7559\uff08\u9700\u901a\u8fc7\u989d\u5916\u673a\u5236\u5b9e\u73b0\u72b6\u6001\u8ddf\u8e2a\uff09\u3002\uff0c\u662f\u5ba2\u6237\u7aef\uff08\u5982\u6d4f\u89c8\u5668\uff09\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u901a\u4fe1\u7684\u57fa\u7840\u3002\uff1aHTTP \u534f\u8bae\u672c\u8eab\u4e0d\u4fdd\u5b58\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u72b6\u6001\uff0c\u5373\u670d\u52a1\u5668\u5bf9\u5ba2\u6237\u7aef\u7684\u6bcf\u6b21\u8bf7\u6c42\u90fd\u662f\u72ec\u7acb\u5904\u7406\u7684\uff0c\u4e0d\u4f1a\u8bb0\u5fc6\u4e4b\u524d\u7684\u8bf7\u6c42\u4fe1\u606f\uff08\u5982\u7528\u6237\u767b\u5f55\u72b6\u6001\u3001\u64cd\u4f5c\u5386\u53f2\u7b49\uff09\u3002<\/p>\n","protected":false},"author":2,"featured_media":57981,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,223,87],"topic":[],"class_list":["post-57990","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-tomcat","tag-87"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668TOMCAT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/57990.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668TOMCAT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb836\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u5982\u4f55\u628a\u5e76\u53d1\u7684\u538b\u529b\u5206\u644a\uff0c\u8fd9\u5c31\u9700\u8981\u8c03\u5ea6\uff0c\u91c7\u7528\u4e00\u5b9a\u7684\u8c03\u5ea6\u7b56\u7565\uff0c\u5c06\u8bf7\u6c42\u5206\u53d1\u7ed9\u4e0d\u540c\u7684\u670d\u52a1\u5668\uff0c\u8fd9\u5c31\u662fLoad Balance\u8d1f\u8f7d \u5747\u8861\u3002\u8fd9\u4e9b\u7279\u6027\u5171\u540c\u5f71\u54cd\u4e86 HTTP \u7684\u8bbe\u8ba1\uff0c\u540e\u7eed HTTP\/2\u3001HTTP\/3 \u901a\u8fc7\u591a\u8def\u590d\u7528\u3001QUIC \u534f\u8bae\u7b49\u8fdb\u4e00\u6b65\u4f18\u5316\u4e86\u8fde\u63a5\u6548\u7387\u548c\u6027\u80fd\uff0c\u4f46\u6838\u5fc3\u7684\u65e0\u72b6\u6001\u7279\u6027\u4ecd\u88ab\u4fdd\u7559\uff08\u9700\u901a\u8fc7\u989d\u5916\u673a\u5236\u5b9e\u73b0\u72b6\u6001\u8ddf\u8e2a\uff09\u3002\uff0c\u662f\u5ba2\u6237\u7aef\uff08\u5982\u6d4f\u89c8\u5668\uff09\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u901a\u4fe1\u7684\u57fa\u7840\u3002\uff1aHTTP \u534f\u8bae\u672c\u8eab\u4e0d\u4fdd\u5b58\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u72b6\u6001\uff0c\u5373\u670d\u52a1\u5668\u5bf9\u5ba2\u6237\u7aef\u7684\u6bcf\u6b21\u8bf7\u6c42\u90fd\u662f\u72ec\u7acb\u5904\u7406\u7684\uff0c\u4e0d\u4f1a\u8bb0\u5fc6\u4e4b\u524d\u7684\u8bf7\u6c42\u4fe1\u606f\uff08\u5982\u7528\u6237\u767b\u5f55\u72b6\u6001\u3001\u64cd\u4f5c\u5386\u53f2\u7b49\uff09\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/57990.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-15T15:42:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815154221-689f555d1e069.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/57990.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/57990.html\",\"name\":\"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668TOMCAT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-15T15:42:36+00:00\",\"dateModified\":\"2025-08-15T15:42:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/57990.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/57990.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/57990.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668TOMCAT\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668TOMCAT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/57990.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668TOMCAT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb836\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u5982\u4f55\u628a\u5e76\u53d1\u7684\u538b\u529b\u5206\u644a\uff0c\u8fd9\u5c31\u9700\u8981\u8c03\u5ea6\uff0c\u91c7\u7528\u4e00\u5b9a\u7684\u8c03\u5ea6\u7b56\u7565\uff0c\u5c06\u8bf7\u6c42\u5206\u53d1\u7ed9\u4e0d\u540c\u7684\u670d\u52a1\u5668\uff0c\u8fd9\u5c31\u662fLoad Balance\u8d1f\u8f7d \u5747\u8861\u3002\u8fd9\u4e9b\u7279\u6027\u5171\u540c\u5f71\u54cd\u4e86 HTTP \u7684\u8bbe\u8ba1\uff0c\u540e\u7eed HTTP\/2\u3001HTTP\/3 \u901a\u8fc7\u591a\u8def\u590d\u7528\u3001QUIC \u534f\u8bae\u7b49\u8fdb\u4e00\u6b65\u4f18\u5316\u4e86\u8fde\u63a5\u6548\u7387\u548c\u6027\u80fd\uff0c\u4f46\u6838\u5fc3\u7684\u65e0\u72b6\u6001\u7279\u6027\u4ecd\u88ab\u4fdd\u7559\uff08\u9700\u901a\u8fc7\u989d\u5916\u673a\u5236\u5b9e\u73b0\u72b6\u6001\u8ddf\u8e2a\uff09\u3002\uff0c\u662f\u5ba2\u6237\u7aef\uff08\u5982\u6d4f\u89c8\u5668\uff09\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u901a\u4fe1\u7684\u57fa\u7840\u3002\uff1aHTTP \u534f\u8bae\u672c\u8eab\u4e0d\u4fdd\u5b58\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u72b6\u6001\uff0c\u5373\u670d\u52a1\u5668\u5bf9\u5ba2\u6237\u7aef\u7684\u6bcf\u6b21\u8bf7\u6c42\u90fd\u662f\u72ec\u7acb\u5904\u7406\u7684\uff0c\u4e0d\u4f1a\u8bb0\u5fc6\u4e4b\u524d\u7684\u8bf7\u6c42\u4fe1\u606f\uff08\u5982\u7528\u6237\u767b\u5f55\u72b6\u6001\u3001\u64cd\u4f5c\u5386\u53f2\u7b49\uff09\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/57990.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-15T15:42:36+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815154221-689f555d1e069.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"13 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/57990.html","url":"https:\/\/www.wsisp.com\/helps\/57990.html","name":"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668TOMCAT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-15T15:42:36+00:00","dateModified":"2025-08-15T15:42:36+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/57990.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/57990.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/57990.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668TOMCAT"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/57990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=57990"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/57990\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/57981"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=57990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=57990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=57990"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=57990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}