{"id":58273,"date":"2025-08-16T07:20:58","date_gmt":"2025-08-15T23:20:58","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/58273.html"},"modified":"2025-08-16T07:20:58","modified_gmt":"2025-08-15T23:20:58","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-11","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/58273.html","title":{"rendered":"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668TOMCAT"},"content":{"rendered":"<h2><span style=\"color:#333333\">\u4e00<\/span><span style=\"color:#333333\"> WEB<\/span><span style=\"color:#333333\">\u6280\u672f<\/span><\/h2>\n<h3><span style=\"color:#333333\">1.1 HTTP<\/span><span style=\"color:#333333\">\u534f\u8bae\u548c<\/span><span style=\"color:#333333\">B\/S <\/span><span style=\"color:#333333\">\u7ed3\u6784<\/span><\/h3>\n<p>\u64cd\u4f5c\u7cfb\u7edf\u6709\u8fdb\u7a0b\u5b50\u7cfb\u7edf&#xff0c;\u4f7f\u7528\u591a\u8fdb\u7a0b\u5c31\u53ef\u4ee5\u5145\u5206\u5229\u7528\u786c\u4ef6\u8d44\u6e90\u3002\u8fdb\u7a0b\u4e2d\u53ef\u4ee5\u591a\u4e2a\u7ebf\u7a0b&#xff0c;\u6bcf\u4e00\u4e2a\u7ebf\u7a0b\u53ef\u4ee5\u88ab CPU \u8c03\u5ea6\u6267\u884c&#xff0c;\u8fd9\u6837\u5c31\u53ef\u4ee5\u8ba9\u7a0b\u5e8f\u5e76\u884c\u7684\u6267\u884c\u3002\u8fd9\u6837\u4e00\u53f0\u4e3b\u673a\u5c31\u53ef\u4ee5\u4f5c\u4e3a\u4e00\u4e2a\u670d\u52a1\u5668\u4e3a\u591a\u4e2a\u5ba2\u6237\u7aef\u63d0\u4f9b\u8ba1\u7b97\u670d\u52a1\u3002<\/p>\n<p>\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u7aef\u5f80\u5f80\u5904\u5728\u4e0d\u540c\u7684\u7269\u7406\u4e3b\u673a\u4e0a&#xff0c;\u5b83\u4eec\u5206\u5c5e\u4e0d\u540c\u7684\u8fdb\u7a0b&#xff0c;\u8fd9\u4e9b\u8fdb\u7a0b\u95f4\u9700\u8981\u901a\u4fe1\u3002\u8de8\u4e3b\u673a\u7684\u8fdb\u7a0b\u95f4\u901a\u4fe1\u9700\u8981\u4f7f\u7528\u7f51\u7edc\u7f16\u7a0b\u3002\u6700\u5e38\u89c1\u7684\u7f51\u7edc\u7f16\u7a0b\u63a5\u53e3\u662f Socket\u3002<\/p>\n<p>Socket \u79f0\u4e3a\u5957\u63a5\u5b57&#xff0c;\u672c\u610f\u662f\u63d2\u5ea7\u3002\u4e5f\u5c31\u662f\u8bf4\u7f51\u7edc\u901a\u8baf\u9700\u8981\u4e24\u7aef&#xff0c;\u5982\u679c\u4e00\u7aef\u88ab\u52a8\u7684\u63a5\u6536\u53e6\u4e00\u7aef\u8bf7\u6c42\u5e76\u63d0\u4f9b\u8ba1\u7b97\u548c\u6570\u636e\u7684\u79f0\u4e3a\u670d\u52a1\u5668\u7aef&#xff0c;\u53e6\u4e00\u7aef\u5f80\u5f80\u53ea\u662f\u53d1\u8d77\u8ba1\u7b97\u6216\u6570\u636e\u8bf7\u6c42&#xff0c;\u79f0\u4e3a\u5ba2\u6237\u7aef\u3002<\/p>\n<p>\u8fd9\u79cd\u7f16\u7a0b\u6a21\u5f0f\u79f0\u4e3a Client\/Server \u7f16\u7a0b\u6a21\u5f0f&#xff0c;\u7b80\u79f0 C\/S \u7f16\u7a0b\u3002\u5f00\u53d1\u7684\u7a0b\u5e8f\u4e5f\u79f0\u4e3a C\/S \u7a0b\u5e8f\u3002C\/S \u7f16\u7a0b\u5f80\u5f80\u4f7f\u7528\u4f20\u8f93\u5c42\u534f&#xff08;TCP\/UDP&#xff09;&#xff0c;\u8f83\u4e3a\u5e95\u5c42&#xff0c;\u6bd4\u5982&#xff1a;QQ&#xff0c;\u8fc5\u96f7&#xff0c;\u4e91\u97f3\u4e50&#xff0c;\u4e91\u76d8&#xff0c;foxmail&#xff0c;xshell \u7b49<\/p>\n<p>1990 \u5e74 HTTP \u534f\u8bae\u548c\u6d4f\u89c8\u5668\u8bde\u751f\u3002\u5728\u5e94\u7528\u5c42\u4f7f\u7528\u6587\u672c\u8de8\u7f51\u7edc\u5728\u4e0d\u540c\u8fdb\u7a0b\u95f4\u4f20\u8f93\u6570\u636e&#xff0c;\u6700\u540e\u5728\u6d4f\u89c8\u5668\u4e2d\u5c06\u670d\u52a1\u5668\u7aef\u8fd4\u56de\u7684 HTML \u6e32\u67d3\u51fa\u6765\u3002\u7531\u6b64&#xff0c;\u8bde\u751f\u4e86\u7f51\u9875\u5f00\u53d1\u3002<\/p>\n<p>\u7f51\u9875\u662f\u5b58\u50a8\u5728 WEB \u670d\u52a1\u5668\u7aef\u7684\u6587\u672c\u6587\u4ef6&#xff0c;\u6d4f\u89c8\u5668\u53d1\u8d77 HTTP \u8bf7\u6c42\u540e&#xff0c;\u5230\u8fbe WEB \u670d\u52a1\u7a0b\u5e8f\u540e&#xff0c;\u670d\u52a1\u7a0b\u5e8f\u6839\u636e URL \u8bfb\u53d6\u5bf9\u5e94\u7684 HTML \u6587\u4ef6&#xff0c;\u5e76\u5c01\u88c5\u6210 HTTP \u54cd\u5e94\u62a5\u6587\u8fd4\u56de\u7ed9\u6d4f\u89c8\u5668\u7aef\u3002<\/p>\n<p>\u8d77\u521d\u7f51\u9875\u5f00\u53d1\u4e3b\u8981\u6307\u7684\u662f HTML\u3001CSS \u7b49\u6587\u4ef6\u5236\u4f5c&#xff0c;\u76ee\u7684\u5c31\u662f\u663e\u793a\u6587\u5b57\u6216\u56fe\u7247&#xff0c;\u901a\u8fc7\u8d85\u7ea7\u94fe\u63a5\u8df3\u8f6c\u5230\u53e6\u4e00\u4e2a HTML \u5e76\u663e\u793a\u5176\u5185\u5bb9\u3002<\/p>\n<p>\u540e\u6765&#xff0c;\u7f51\u666f\u516c\u53f8\u610f\u8bc6\u5230\u8ba9\u7f51\u9875\u52a8\u8d77\u6765\u5f88\u91cd\u8981&#xff0c;\u508d\u7740 SUN \u7684 Java \u7684\u540d\u6c14\u53d1\u5e03\u4e86 JavaScript \u8bed\u8a00&#xff0c;\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u4f7f\u7528 JS \u5f15\u64ce\u6267\u884c\u7684\u811a\u672c\u8bed\u8a00&#xff0c;\u53ef\u4ee5\u8ba9\u7f51\u9875\u5143\u7d20\u52a8\u6001\u53d8\u5316&#xff0c;\u7f51\u9875\u52a8\u8d77\u6765\u4e86\u3002<\/p>\n<p>\u4e3a\u4e86\u8ba9\u7f51\u9875\u52a8\u8d77\u6765&#xff0c;\u5fae\u8f6f\u4f7f\u7528 ActiveX \u6280\u672f\u3001SUN \u7684 Applet \u90fd\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u6267\u884c\u4ee3\u7801&#xff0c;\u4f46\u90fd\u6709\u5b89\u5168\u6027\u95ee\u9898\u3002\u80fd\u4e0d\u80fd\u76f4\u63a5\u628a\u5185\u5bb9\u76f4\u63a5\u5728 WEB \u670d\u52a1\u5668\u7aef\u7ec4\u7ec7\u6210 HTML&#xff0c;\u7136\u540e\u628a HTML \u8fd4\u56de\u7ed9\u6d4f\u89c8\u5668\u6e32\u67d3\u5462&#xff1f;<\/p>\n<p>\u6700\u65e9\u51fa\u73b0\u4e86 CGI&#xff08;Common Gateway Interface&#xff09;\u901a\u7528\u7f51\u5173\u63a5\u53e3&#xff0c;\u901a\u8fc7\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165 URL \u76f4\u63a5\u6620\u5c04\u5230\u4e00\u4e2a\u670d\u52a1\u5668\u7aef\u7684\u811a\u672c\u7a0b\u5e8f\u6267\u884c&#xff0c;\u8fd9\u4e2a\u811a\u672c\u53ef\u4ee5\u67e5\u8be2\u6570\u636e\u5e93\u5e76\u8fd4\u56de\u7ed3\u679c\u7ed9\u6d4f\u89c8\u5668\u7aef\u3002\u8fd9\u79cd\u5c06\u7528\u6237\u8bf7\u6c42\u4f7f\u7528\u7a0b\u5e8f\u52a8\u6001\u751f\u6210\u7684\u6280\u672f&#xff0c;\u79f0\u4e3a\u52a8\u6001\u7f51\u9875\u6280\u672f\u3002\u5148\u540e\u51fa\u73b0\u4e86 ASP\u3001PHP\u3001JSP \u7b49\u6280\u672f&#xff0c;\u8fd9\u4e9b\u6280\u672f\u7684\u4f7f\u7528\u4e0d\u540c\u8bed\u8a00\u7f16\u5199\u7684\u7a0b\u5e8f\u90fd\u8fd0\u884c\u5728\u670d\u52a1\u5668\u7aef&#xff0c;\u6240\u4ee5\u79f0\u4e3a WEB \u540e\u7aef\u7f16\u7a0b\u3002\u6709\u4e00\u90e8\u5206\u7a0b\u5e8f\u5458\u8fd8\u662f\u8981\u7f16\u5199 HTML\u3001CSS\u3001JavaScript&#xff0c;\u8fd9\u4e9b\u4ee3\u7801\u8fd0\u884c\u5728\u6d4f\u89c8\u5668\u7aef&#xff0c;\u79f0\u4e3a WEB \u524d\u7aef\u7f16\u7a0b\u3002\u5408\u8d77\u6765\u79f0\u4e3a Browser\/Server \u7f16\u7a0b&#xff0c;\u5373 B\/S \u7f16\u7a0b\u3002<\/p>\n<h3><span style=\"color:#333333\">1.2 <\/span><span style=\"color:#333333\">\u524d\u7aef\u4e09\u5927\u6838\u5fc3\u6280\u672f<\/span><\/h3>\n<h4><span style=\"color:#333333\">1.2.1 HTML<\/span><\/h4>\n<p><span style=\"color:#333333\">HTML<\/span><span style=\"color:#333333\">&#xff08;<\/span><span style=\"color:#333333\">HyperText Markup Language<\/span><span style=\"color:#333333\">&#xff09;\u8d85\u6587\u672c\u6807\u8bb0\u8bed\u8a00&#xff0c;\u5b83\u4e0d\u540c\u4e8e\u4e00\u822c\u7684\u7f16\u7a0b\u8bed\u8a00\u3002\u8d85\u6587\u672c\u5373\u8d85\u51fa\u7eaf \u6587\u672c\u7684\u8303\u7574&#xff0c;\u4f8b\u5982&#xff1a;\u63cf\u8ff0\u6587\u672c\u989c\u8272\u3001\u5927\u5c0f\u3001\u5b57\u4f53\u7b49\u4fe1\u606f&#xff0c;\u6216\u4f7f\u7528\u56fe\u7247\u3001\u97f3\u9891\u3001\u89c6\u9891\u7b49\u975e\u6587\u672c\u5185\u5bb9\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">HTML<\/span><span style=\"color:#333333\">\u7531\u4e00\u4e2a\u4e2a\u7684\u6807\u7b7e&#xff08;\u6807\u8bb0&#xff09;\u7ec4\u6210&#xff0c;\u8fd9\u4e9b\u6807\u7b7e\u5404\u53f8\u5176\u804c&#xff0c;\u6709\u7684\u63d0\u4f9b\u7f51\u9875\u4fe1\u606f&#xff0c;\u6709\u7684\u8d1f\u8d23\u6587\u5b57&#xff0c;\u6709\u7684\u8d1f\u8d23 \u56fe\u7247&#xff0c;\u6709\u7684\u8d1f\u8d23\u7f51\u9875\u5e03\u5c40&#xff0c;\u6240\u4ee5\u4e00\u4e2aHTML<\/span><span style=\"color:#333333\">\u6587\u4ef6&#xff0c;\u662f\u7531\u683c\u5f0f\u6807\u7b7e\u548c\u6570\u636e\u7ec4\u6210\u3002<\/span><\/p>\n<p>&lt;!DOCTYPE html&gt;<br \/>\n&lt;html lang&#061;&#034;en&#034;&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta charset&#061;&#034;UTF-8&#034;&gt;<br \/>\n&lt;title&gt;\u9996\u9875&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\n&lt;h1&gt;\u55b5&lt;\/h1&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n<p><span style=\"color:#333333\">\u8d85\u6587\u672c\u9700\u8981\u663e\u793a&#xff0c;\u5c31\u5f97\u6709\u8f6f\u4ef6\u80fd\u591f\u5448\u73b0\u8d85\u6587\u672c\u5b9a\u4e49\u7684\u6392\u7248\u683c\u5f0f&#xff0c;\u4f8b\u5982\u663e\u793a&#xff1a;\u56fe\u7247\u3001\u8868\u683c&#xff0c;\u663e\u793a\u5b57\u4f53\u7684\u5927 \u5c0f\u3001\u989c\u8272&#xff0c;\u8fd9\u4e2a\u8f6f\u4ef6\u5c31\u662f\u6d4f\u89c8\u5668\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u8d85\u6587\u672c\u7684\u8bde\u751f\u662f\u4e3a\u4e86\u89e3\u51b3\u7eaf\u6587\u672c\u4e0d\u80fd\u683c\u5f0f\u663e\u793a\u7684\u95ee\u9898&#xff0c;\u662f\u4e3a\u4e86\u597d\u770b&#xff0c;\u4f46\u662f\u53ea\u6709\u901a\u8fc7\u7f51\u7edc\u624d\u80fd\u5206\u4eab\u8d85\u6587\u672c \u7684\u5185\u5bb9&#xff0c;\u6240\u4ee5\u5236\u5b9a\u4e86HTTP<\/span><span style=\"color:#333333\">\u534f\u8bae\u3002<\/span><\/p>\n<h4><span style=\"color:#333333\">1.2.2 CSS<\/span><span style=\"color:#333333\">&#xff08;<\/span><span style=\"color:#333333\">Cascading Style Sheets<\/span><span style=\"color:#333333\">&#xff09;\u5c42\u53e0\u6837\u5f0f\u8868<\/span><\/h4>\n<p><span style=\"color:#333333\">HTML<\/span><span style=\"color:#333333\">\u672c\u8eab\u4e3a\u4e86\u683c\u5f0f\u5316\u663e\u793a\u6587\u672c&#xff0c;\u4f46\u662f\u5f53\u7f51\u9875\u5448\u73b0\u5927\u5bb6\u9762\u524d\u7684\u65f6\u5019&#xff0c;\u9700\u6c42<\/span><span style=\"color:#333333\">HTML<\/span><span style=\"color:#333333\">\u63d0\u4f9b\u66f4\u591a\u6837\u5f0f\u80fd\u529b\u3002\u8fd9\u4f7f <\/span><\/p>\n<p><span style=\"color:#333333\">\u5f97<\/span><span style=\"color:#333333\">HTML<\/span><span style=\"color:#333333\">\u53d8\u5f97\u8d8a\u6765\u8d8a\u81c3\u80bf\u3002\u8fd9\u4fc3\u4f7f\u4e86<\/span><span style=\"color:#333333\">CSS<\/span><span style=\"color:#333333\">\u7684\u8bde\u751f\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">1994<\/span><span style=\"color:#333333\">\u5e74&#xff0c;<\/span><span style=\"color:#333333\">W3C<\/span><span style=\"color:#333333\">\u6210\u7acb&#xff0c;<\/span><span style=\"color:#333333\">CSS<\/span><span style=\"color:#333333\">\u8bbe\u8ba1\u5c0f\u7ec4\u6240\u6709\u6210\u5458\u52a0\u5165<\/span><span style=\"color:#333333\">W3C<\/span><span style=\"color:#333333\">&#xff0c;\u5e76\u52aa\u529b\u7814\u53d1<\/span><span style=\"color:#333333\">CSS<\/span><span style=\"color:#333333\">\u7684\u6807\u51c6&#xff0c;\u5fae\u8f6f\u6700\u7ec8\u52a0\u5165\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">1996<\/span><span style=\"color:#333333\">\u5e74<\/span><span style=\"color:#333333\">12<\/span><span style=\"color:#333333\">\u6708\u53d1\u5e03<\/span><span style=\"color:#333333\">CSS 1.0<\/span><span style=\"color:#333333\">\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">1998<\/span><span style=\"color:#333333\">\u5e74<\/span><span style=\"color:#333333\">5<\/span><span style=\"color:#333333\">\u6708\u53d1\u5e03<\/span><span style=\"color:#333333\">CSS 2.0 <\/span><\/p>\n<p><span style=\"color:#333333\">CSS 3<\/span><span style=\"color:#333333\">\u91c7\u7528\u4e86\u6a21\u5757\u5316\u601d\u60f3&#xff0c;\u6bcf\u4e2a\u6a21\u5757\u90fd\u5728<\/span><span style=\"color:#333333\">CSS 2<\/span><span style=\"color:#333333\">\u57fa\u7840\u4e0a\u5206\u522b\u589e\u5f3a\u529f\u80fd\u3002\u6240\u4ee5&#xff0c;\u8fd9\u4e9b\u6a21\u5757\u662f\u9646\u7eed\u53d1\u5e03\u7684\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u4e0d\u540c\u5382\u5bb6\u7684\u6d4f\u89c8\u5668\u4f7f\u7528\u7684\u5f15\u64ce&#xff0c;\u5bf9<\/span><span style=\"color:#333333\">CSS<\/span><span style=\"color:#333333\">\u7684\u652f\u6301\u4e0d\u4e00\u6837&#xff0c;\u5bfc\u81f4\u7f51\u9875\u5e03\u5c40\u3001\u6837\u5f0f\u5728\u4e0d\u540c\u6d4f\u89c8\u5668\u4e0d\u4e00\u6837\u3002\u56e0\u6b64&#xff0c;\u60f3\u8981\u4fdd\u8bc1\u4e0d\u540c\u7528\u6237\u4f7f\u7528\u4e0d\u540c\u6d4f\u89c8\u5668\u770b\u5230\u7684\u7f51\u9875\u6548\u679c\u4e00\u76f4\u975e\u5e38\u56f0\u96be\u3002<\/span><\/p>\n<h4><span style=\"color:#333333\">1.2.3 JavaScript<\/span><\/h4>\n<p><span style=\"color:#333333\">Javascript <\/span><span style=\"color:#333333\">\u7b80\u79f0<\/span><span style=\"color:#333333\">JS<\/span><span style=\"color:#333333\">&#xff0c;\u662f\u4e00\u79cd\u52a8\u6001\u7684\u5f31\u7c7b\u578b\u811a\u672c\u89e3\u91ca\u6027\u8bed\u8a00&#xff0c;\u548c<\/span><span style=\"color:#333333\">HTML<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">CSS<\/span><span style=\"color:#333333\">\u5e76\u79f0\u4e09\u5927<\/span><span style=\"color:#333333\">WEB<\/span><span style=\"color:#333333\">\u6838\u5fc3\u6280\u672f&#xff0c;\u5f97\u5230 <\/span><\/p>\n<p><span style=\"color:#333333\">\u4e86\u51e0\u4e4e\u4e3b\u6d41\u6d4f\u89c8\u5668\u652f\u6301\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">1994<\/span><span style=\"color:#333333\">\u5e74&#xff0c;\u7f51\u666f<\/span><span style=\"color:#333333\">Netscape<\/span><span style=\"color:#333333\">\u516c\u53f8\u6210\u7acb\u5e76\u53d1\u5e03\u4e86<\/span><span style=\"color:#333333\">Netscape Navigator<\/span><span style=\"color:#333333\">\u6d4f\u89c8\u5668&#xff0c;\u5360\u636e\u4e86\u5f88\u5927\u7684\u5e02\u573a\u4efd\u989d&#xff0c;\u7f51\u666f\u610f \u8bc6\u5230WEB<\/span><span style=\"color:#333333\">\u9700\u8981\u52a8\u6001&#xff0c;\u9700\u8981\u4e00\u79cd\u6280\u672f\u6765\u5b9e\u73b0\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">1995<\/span><span style=\"color:#333333\">\u5e74<\/span><span style=\"color:#333333\">9<\/span><span style=\"color:#333333\">\u6708\u7f51\u666f\u6d4f\u89c8\u5668<\/span><span style=\"color:#333333\">2<\/span><span style=\"color:#333333\">\u53d1\u5e03\u6d4b\u8bd5\u7248\u672c\u53d1\u5e03\u4e86<\/span><span style=\"color:#333333\">LiveScript<\/span><span style=\"color:#333333\">&#xff0c;\u968f\u5373\u5728<\/span><span style=\"color:#333333\">12<\/span><span style=\"color:#333333\">\u6708\u7684\u6d4b\u8bd5\u7248\u5c31\u66f4\u540d\u4e3a<\/span><span style=\"color:#333333\">JavaScript<\/span><span style=\"color:#333333\">\u3002\u540c\u65f6\u671f&#xff0c;\u5fae\u8f6f\u63a8\u51faIE<\/span><span style=\"color:#333333\">\u5e76\u652f\u6301<\/span><span style=\"color:#333333\">JScript<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">VBScript<\/span><span style=\"color:#333333\">&#xff0c;\u4e0e\u4e4b\u6297\u8861\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">1997<\/span><span style=\"color:#333333\">\u5e74&#xff0c;\u7f51\u666f\u3001\u5fae\u8f6f\u3001<\/span><span style=\"color:#333333\">SUN<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">Borland<\/span><span style=\"color:#333333\">\u516c\u53f8\u548c\u5176\u4ed6\u7ec4\u7ec7\u5728<\/span><span style=\"color:#333333\">ECMA<\/span><span style=\"color:#333333\">&#xff08;<\/span><span style=\"color:#333333\">European ComputerManufacturers Association \u6b27\u6d32\u8ba1\u7b97\u673a\u5236\u9020\u5546\u534f\u4f1a&#xff09;\u786e\u5b9a\u4e86<\/span><span style=\"color:#333333\">ECMAScript<\/span><span style=\"color:#333333\">\u7684\u672c\u7a0b\u5e8f\u8bbe\u8ba1\u8bed\u8a00\u7684\u6807\u51c6\u3002<\/span><span style=\"color:#333333\">JavaScript<\/span><span style=\"color:#333333\">\u548c<\/span><span style=\"color:#333333\">JScript <\/span><\/p>\n<p><span style=\"color:#333333\">\u90fd\u6210\u4e3a<\/span><span style=\"color:#333333\">ECMAScript<\/span><span style=\"color:#333333\">\u6807\u51c6\u7684\u5b9e\u73b0\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">2008<\/span><span style=\"color:#333333\">\u5e74\u540e\u968f\u7740<\/span><span style=\"color:#333333\">chrome<\/span><span style=\"color:#333333\">\u6d4f\u89c8\u5668\u7684<\/span><span style=\"color:#333333\">V8<\/span><span style=\"color:#333333\">\u5f15\u64ce\u53d1\u5e03\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">V8 JS<\/span><span style=\"color:#333333\">\u5f15\u64ce\u4e0d\u662f\u89e3\u91ca\u6267\u884c&#xff0c;\u800c\u662f\u672c\u5730\u7f16\u8bd1&#xff0c;\u5728<\/span><span style=\"color:#333333\">V8<\/span><span style=\"color:#333333\">\u5f15\u64ce\u505a\u4e86\u5f88\u591a\u4f18\u5316&#xff0c;<\/span><span style=\"color:#333333\">JS<\/span><span style=\"color:#333333\">\u7a0b\u5e8f\u5728\u5176\u4e0a\u8fd0\u884c\u582a\u6bd4\u672c\u5730\u4e8c\u8fdb\u5236\u7a0b \u5e8f\u3002V8<\/span><span style=\"color:#333333\">\u5f15\u64ce\u4f7f\u7528<\/span><span style=\"color:#333333\">C&#043;&#043;<\/span><span style=\"color:#333333\">\u5f00\u53d1&#xff0c;\u53ef\u4ee5\u5d4c\u5165\u5230\u4efb\u4f55<\/span><span style=\"color:#333333\">C&#043;&#043;<\/span><span style=\"color:#333333\">\u7a0b\u5e8f\u4e2d\u3002\u57fa\u4e8e<\/span><span style=\"color:#333333\">V8<\/span><span style=\"color:#333333\">\u5f15\u64ce&#xff0c;<\/span><span style=\"color:#333333\">2009<\/span><span style=\"color:#333333\">\u5e74\u57fa\u4e8e\u670d\u52a1\u5668<\/span><span style=\"color:#333333\">javascript<\/span><span style=\"color:#333333\">\u7684\u8fd0 \u884c\u73af\u5883Node.js<\/span><span style=\"color:#333333\">\u8bde\u751f&#xff0c;\u521b\u5efa\u4e86\u7b2c\u4e00\u7248<\/span><span style=\"color:#333333\">npm (Node.js<\/span><span style=\"color:#333333\">\u5305\u7ba1\u7406\u5668\u548c\u5f00\u6e90\u5e93\u751f\u6001\u7cfb\u7edf<\/span><span style=\"color:#333333\">), <\/span><span style=\"color:#333333\">\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u5e93\u4f9b\u7a0b\u5e8f\u5458 \u4f7f\u7528\u3002\u4ece\u6b64&#xff0c;\u4fbf\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u7aef\u771f\u6b63\u5927\u89c4\u6a21\u4f7f\u7528JavaScript<\/span><span style=\"color:#333333\">\u7f16\u7a0b\u4e86\u3002\u4e5f\u5c31\u662f\u8bf4<\/span><span style=\"color:#333333\"> JavaScript <\/span><span style=\"color:#333333\">\u4e5f\u53ef\u4ee5\u771f\u6b63\u79f0\u4e3a \u670d\u52a1\u5668\u7aef\u7f16\u7a0b\u8bed\u8a00\u4e86&#xff0c;\u6210\u4e3a\u76ee\u524d\u552f\u4e00\u7684\u524d&#xff0c;\u540e\u7aef\u901a\u7528\u7684\u8bed\u8a00\u3002<\/span><\/p>\n<p><span style=\"color:#333333\">\u540c\u6b65 <\/span><\/p>\n<p><span style=\"color:#333333\">\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 \u6015URL<\/span><span style=\"color:#333333\">\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\u662f<\/span><span style=\"color:#333333\">2<\/span><span style=\"color:#333333\">\u6b21\u5bc6\u7801\u4e0d\u4e00\u81f4&#xff0c;\u63d0\u4ea4\u540e&#xff0c;\u6574\u4e2a \u6ce8\u518c\u9875\u9762\u91cd\u65b0\u5237\u65b0&#xff0c;\u6240\u6709\u586b\u5199\u9879\u76ee\u91cd\u65b0\u586b\u5199(<\/span><span style=\"color:#333333\">\u5f53\u7136\u6709\u529e\u6cd5\u8ba9\u7528\u6237\u51cf\u5c11\u91cd\u586b<\/span><span style=\"color:#333333\">)<\/span><span style=\"color:#333333\">\u3002\u8fd9\u79cd\u4ea4\u4e92\u975e\u5e38\u4e0d\u53cb\u597d\u3002\u4ece\u4ee3\u4ef7 <\/span><\/p>\n<p><span style=\"color:#333333\">\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 \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 \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 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5f02\u6b65 <\/span><\/p>\n<p><span style=\"color:#333333\">1996<\/span><span style=\"color:#333333\">\u5e74\u5fae\u8f6f\u5b9e\u73b0\u4e86<\/span><span style=\"color:#333333\">iframe<\/span><span style=\"color:#333333\">\u6807\u7b7e&#xff0c;\u53ef\u4ee5\u5728\u4e00\u4e2a\u7f51\u9875\u4f7f\u7528<\/span><span style=\"color:#333333\">iframe<\/span><span style=\"color:#333333\">\u6807\u7b7e\u5c40\u90e8\u5f02\u6b65\u52a0\u8f7d\u5185\u5bb9\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">1999<\/span><span style=\"color:#333333\">\u5e74\u5fae\u8f6f\u63a8\u51fa\u5f02\u6b65\u6570\u636e\u4f20\u8f93\u7684<\/span><span style=\"color:#333333\">ActiveX<\/span><span style=\"color:#333333\">\u63d2\u4ef6\u6280\u672f&#xff0c;\u592a\u7b28\u91cd\u4e86&#xff0c;\u4f46\u662f\u4e5f\u706b\u4e86\u5f88\u591a\u5e74\u3002\u6709\u4e00\u4e2a\u7ec4\u4ef6 <\/span><\/p>\n<p><span style=\"color:#333333\">XMLHttpRequest<\/span><span style=\"color:#333333\">\u88ab\u5927\u591a\u6570\u6d4f\u89c8\u5668\u652f\u6301\u3002 \u4f20\u7edf\u7684\u7f51\u9875\u5982\u679c\u9700\u8981\u66f4\u65b0\u5185\u5bb9&#xff0c;\u5fc5\u9700\u91cd\u8f7d\u6574\u4e2a\u7f51\u9875\u9762\u3002Ajax<\/span><span style=\"color:#333333\">\u7684\u51fa\u73b0&#xff0c;\u6539\u53d8\u8fd9\u4e00\u5207&#xff0c;\u540c\u65f6\u6781\u5927\u7684\u4fc3\u8fdb\u4e86 <\/span><\/p>\n<p><span style=\"color:#333333\">Javascript<\/span><span style=\"color:#333333\">\u7684\u53d1\u5c55\u3002<\/span><span style=\"color:#333333\">Ajax<\/span><span style=\"color:#333333\">\u5373<\/span><span style=\"color:#333333\">&#034;Asynchronous Javascript And XML&#034;<\/span><span style=\"color:#333333\">&#xff08;\u5f02\u6b65<\/span><span style=\"color:#333333\"> JavaScript <\/span><span style=\"color:#333333\">\u548c<\/span><span style=\"color:#333333\"> XML<\/span><span style=\"color:#333333\">&#xff09;&#xff0c;\u662f\u6307\u4e00\u79cd \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<\/span><span style=\"color:#333333\">\u5e74\u5fae\u8f6f\u7684<\/span><span style=\"color:#333333\">Outlook Web Access<\/span><span style=\"color:#333333\">\u5f00\u53d1\u56e2 \u961f\u3002Ajax <\/span><span style=\"color:#333333\">\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\u8f7d\u6574\u4e2a\u7f51\u9875\u7684\u60c5\u51b5\u4e0b&#xff0c;\u5bf9\u7f51\u9875\u7684\u67d0\u90e8\u5206\u8fdb\u884c\u66f4\u65b0\u3002Javascript <\/span><span style=\"color:#333333\">\u901a\u8fc7\u8c03\u7528\u6d4f\u89c8\u5668\u5185\u7f6e\u7684<\/span><span style=\"color:#333333\">WEB API<\/span><span style=\"color:#333333\">\u4e2d\u7684 XMLHttpRequest \u5bf9\u8c61\u5b9e\u73b0<\/span><span style=\"color:#333333\">Ajax <\/span><span style=\"color:#333333\">\u6280\u672f\u3002\u65e9\u671f<\/span><span style=\"color:#333333\">Ajax<\/span><span style=\"color:#333333\">\u7ed3\u5408\u6570\u636e\u683c\u5f0f<\/span><span style=\"color:#333333\">XML<\/span><span style=\"color:#333333\">&#xff0c;\u76ee\u524d\u66f4\u591a\u7684\u4f7f\u7528<\/span><span style=\"color:#333333\">JSON<\/span><span style=\"color:#333333\">\u3002\u5229\u7528<\/span><span style=\"color:#333333\">AJAX<\/span><span style=\"color:#333333\">\u53ef \u5b9e\u73b0\u524d\u540e\u7aef\u5f00\u53d1\u7684\u5f7b\u5e95\u5206\u79bb&#xff0c;\u6539\u53d8\u4e86\u4f20\u7edf\u7684\u5f00\u53d1\u6a21\u5f0f\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">AJAX<\/span><span style=\"color:#333333\">\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\u4e2a<\/span><span style=\"color:#333333\">WEB<\/span><span style=\"color:#333333\">\u5f00\u53d1<\/span><\/p>\n<h3><span style=\"color:#333333\">\u4e8c<\/span><span style=\"color:#333333\"> WEB<\/span><span style=\"color:#333333\">\u6846\u67b6<\/span><\/h3>\n<h3><span style=\"color:#333333\">2.1 web<\/span><span style=\"color:#333333\">\u8d44\u6e90\u548c\u8bbf\u95ee<\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"337\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232036-689fc0c4db653.png\" width=\"534\" \/><\/p>\n<p><span style=\"color:#333333\">\u4ece\u9759\u6001\u670d\u52a1\u5668\u8bf7\u6c42<\/span><span style=\"color:#333333\">HTML<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">CSS<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">JS<\/span><span style=\"color:#333333\">\u7b49\u6587\u4ef6\u53d1\u9001\u5230\u6d4f\u89c8\u5668\u7aef&#xff0c;\u6d4f\u89c8\u5668\u7aef\u63a5\u6536\u540e\u6e32\u67d3\u5728\u6d4f\u89c8\u5668\u4e0a\u4ece\u56fe\u7247\u670d\u52a1\u5668\u8bf7\u6c42\u56fe\u7247\u8d44\u6e90\u663e\u793a <\/span><\/p>\n<p><span style=\"color:#333333\">\u4ece\u4e1a\u52a1\u670d\u52a1\u5668\u8bbf\u95ee\u52a8\u6001\u5185\u5bb9&#xff0c;\u52a8\u6001\u5185\u5bb9\u662f\u8bf7\u6c42\u540e\u6709\u540e\u53f0\u670d\u52a1\u8bbf\u95ee\u6570\u636e\u5e93\u540e\u5f97\u5230\u7684&#xff0c;\u6700\u7ec8\u8fd4\u56de\u5230\u6d4f\u89c8\u5668\u7aef <\/span><\/p>\n<p><span style=\"color:#333333\">\u624b\u673a<\/span><span style=\"color:#333333\"> App <\/span><span style=\"color:#333333\">\u8bbf\u95ee <\/span><\/p>\n<p><span style=\"color:#333333\">\u5185\u7f6e\u4e86<\/span><span style=\"color:#333333\">HTML<\/span><span style=\"color:#333333\">\u548c<\/span><span style=\"color:#333333\">JS<\/span><span style=\"color:#333333\">\u6587\u4ef6&#xff0c;\u4e0d\u9700\u8981\u4ece\u9759\u6001<\/span><span style=\"color:#333333\">WEB<\/span><span style=\"color:#333333\">\u670d\u52a1\u5668\u4e0b\u8f7d<\/span><span style=\"color:#333333\"> JS <\/span><span style=\"color:#333333\">\u6216<\/span><span style=\"color:#333333\"> HTML<\/span><span style=\"color:#333333\">\u3002\u4e3a\u7684\u5c31\u662f\u51cf\u5c11\u6587\u4ef6\u7684\u53d1\u9001&#xff0c;\u73b0\u4ee3\u524d\u7aef\u5f00\u53d1\u4f7f\u7528\u7684JS<\/span><span style=\"color:#333333\">\u6587\u4ef6\u592a\u591a\u6216\u592a\u5927\u4e86 <\/span><\/p>\n<p><span style=\"color:#333333\">\u6709\u5fc5\u8981\u5c31\u4ece\u56fe\u7247\u670d\u52a1\u5668\u8bf7\u6c42\u56fe\u7247&#xff0c;\u4ece\u4e1a\u52a1\u670d\u52a1\u5668\u8bf7\u6c42\u52a8\u6001\u6570\u636e \u5ba2\u6237\u9700\u6c42\u591a\u6837&#xff0c;\u66f4\u591a\u7684\u5185\u5bb9\u8fd8\u662f\u9700\u8981\u7531\u4e1a\u52a1\u670d\u52a1\u5668\u63d0\u4f9b&#xff0c;\u4e1a\u52a1\u670d\u52a1\u5668\u5f80\u5f80\u90fd\u662f\u7531\u4e00\u7ec4\u670d\u52a1\u5668\u7ec4\u6210\u3002<\/span><\/p>\n<h3><span style=\"color:#333333\">2.2 <\/span><span style=\"color:#333333\">\u540e\u53f0\u5e94\u7528\u67b6\u6784<\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"191\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232038-689fc0c68f5c4.png\" width=\"543\" \/><\/p>\n<h4><span style=\"color:#333333\">2.2.1 <\/span><span style=\"color:#333333\">\u5355\u4f53\u67b6\u6784<\/span><\/h4>\n<p><span style=\"color:#333333\">\u4f20\u7edf\u67b6\u6784&#xff08;\u5355\u673a\u7cfb\u7edf&#xff09;&#xff0c;\u4e00\u4e2a\u9879\u76ee\u4e00\u4e2a\u5de5\u7a0b&#xff1a;\u6bd4\u5982\u5546\u54c1\u3001\u8ba2\u5355\u3001\u652f\u4ed8\u3001\u5e93\u5b58\u3001\u767b\u5f55\u3001\u6ce8\u518c\u7b49\u7b49&#xff0c;\u7edf <\/span><\/p>\n<p><span style=\"color:#333333\">\u4e00\u90e8\u7f72&#xff0c;\u4e00\u4e2a\u8fdb\u7a0b <\/span><\/p>\n<p><span style=\"color:#333333\">all in one<\/span><span style=\"color:#333333\">\u7684\u67b6\u6784\u65b9\u5f0f&#xff0c;\u628a\u6240\u6709\u7684\u529f\u80fd\u5355\u5143\u653e\u5728\u4e00\u4e2a\u5e94\u7528\u91cc\u3002\u7136\u540e\u628a\u6574\u4e2a\u5e94\u7528\u90e8\u7f72\u5230\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5982\u679c\u8d1f\u8f7d\u80fd\u529b\u4e0d\u884c&#xff0c;\u5c06\u6574\u4e2a\u5e94\u7528\u8fdb\u884c\u6c34\u5e73\u590d\u5236&#xff0c;\u8fdb\u884c\u6269\u5c55&#xff0c;\u7136\u540e\u901a\u8fc7\u8d1f\u8f7d\u5747\u8861\u5b9e\u73b0\u8bbf\u95ee\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">Java<\/span><span style=\"color:#333333\">\u5b9e\u73b0&#xff1a;<\/span><span style=\"color:#333333\">JSP<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">Servlet<\/span><span style=\"color:#333333\">&#xff0c;\u6253\u5305\u6210\u4e00\u4e2a<\/span><span style=\"color:#333333\">jar<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">war<\/span><span style=\"color:#333333\">\u90e8\u7f72 <\/span><\/p>\n<p><span style=\"color:#333333\">\u6613\u4e8e\u5f00\u53d1\u548c\u6d4b\u8bd5<\/span><span style=\"color:#333333\">:<\/span><span style=\"color:#333333\">\u4e5f\u5341\u5206\u65b9\u4fbf\u90e8\u7f72<\/span><span style=\"color:#333333\">;<\/span><span style=\"color:#333333\">\u5f53\u9700\u8981\u6269\u5c55\u65f6&#xff0c;\u53ea\u9700\u8981\u5c06<\/span><span style=\"color:#333333\">war<\/span><span style=\"color:#333333\">\u590d\u5236\u591a\u4efd&#xff0c;\u7136\u540e\u653e\u5230\u591a\u4e2a\u670d\u52a1\u5668\u4e0a&#xff0c; \u518d\u505a\u4e2a\u8d1f\u8f7d\u5747\u8861\u5c31\u53ef\u4ee5\u4e86\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5982\u679c\u67d0\u4e2a\u529f\u80fd\u6a21\u5757\u51fa\u95ee\u9898&#xff0c;\u6709\u53ef\u80fd\u5168\u7ad9\u4e0d\u53ef\u8bbf\u95ee&#xff0c;\u4fee\u6539<\/span><span style=\"color:#333333\">Bug<\/span><span style=\"color:#333333\">\u540e\u3001\u67d0\u6a21\u5757\u529f\u80fd\u4fee\u6539\u6216\u5347\u7ea7\u540e&#xff0c;\u9700\u8981\u505c <\/span><\/p>\n<p><span style=\"color:#333333\">\u6389\u6574\u4e2a\u670d\u52a1&#xff0c;\u91cd\u65b0\u6574\u4f53\u91cd\u65b0\u6253\u5305\u3001\u90e8\u7f72\u8fd9\u4e2a\u5e94\u7528<\/span><span style=\"color:#333333\">war<\/span><span style=\"color:#333333\">\u5305&#xff0c;\u529f\u80fd\u6a21\u5757\u76f8\u4e92\u4e4b\u95f4\u8026\u5408\u5ea6\u9ad8<\/span><span style=\"color:#333333\">,<\/span><span style=\"color:#333333\">\u76f8\u4e92\u5f71\u54cd<\/span><span style=\"color:#333333\">,<\/span><span style=\"color:#333333\">\u4e0d\u9002 \u5408\u5f53\u4eca\u4e92\u8054\u7f51\u4e1a\u52a1\u529f\u80fd\u7684\u5feb\u901f\u8fed\u4ee3\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u7279\u522b\u662f\u5bf9\u4e8e\u4e00\u4e2a\u5927\u578b\u5e94\u7528&#xff0c;\u6211\u4eec\u4e0d\u53ef\u80fd\u5427\u6240\u6709\u5185\u5bb9\u90fd\u653e\u5728\u4e00\u4e2a\u5e94\u7528\u91cc\u9762&#xff0c;\u6211\u4eec\u5982\u4f55\u7ef4\u62a4\u3001\u5982\u4f55\u5206\u5de5 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5408\u4f5c\u90fd\u662f\u95ee\u9898\u3002\u5982\u679c\u9879\u76ee\u5e9e\u5927&#xff0c;\u7ba1\u7406\u96be\u5ea6\u5927 <\/span><\/p>\n<p><span style=\"color:#333333\">web<\/span><span style=\"color:#333333\">\u5e94\u7528\u670d\u52a1\u5668&#xff1a;\u5f00\u6e90\u7684<\/span><span style=\"color:#333333\">tomcat<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">jetty<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">glassfish<\/span><span style=\"color:#333333\">\u3002\u5546\u7528\u7684\u6709<\/span><span style=\"color:#333333\">weblogic<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">websphere<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">Jboss<\/span><\/p>\n<h4><span style=\"color:#333333\">2.2.2 <\/span><span style=\"color:#333333\">\u5fae\u670d\u52a1<\/span><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"216\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232039-689fc0c7aa146.png\" width=\"617\" \/><\/p>\n<p><span style=\"color:#333333\">\u5c5e\u4e8e<\/span><span style=\"color:#333333\">SOA<\/span><span style=\"color:#333333\">&#xff08;<\/span><span style=\"color:#333333\">Service Oriented Architecture<\/span><span style=\"color:#333333\">&#xff09;\u7684\u5b50\u96c6 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5fae\u670d\u52a1\u5316\u7684\u6838\u5fc3\u5c31\u662f\u5c06\u4f20\u7edf\u7684\u4e00\u7ad9\u5f0f\u5e94\u7528&#xff0c;\u6839\u636e\u4e1a\u52a1\u62c6\u5206\u6210\u4e00\u4e2a\u4e00\u4e2a\u7684\u670d\u52a1&#xff0c;\u5f7b\u5e95\u53bb\u6389\u8026\u5408&#xff0c;\u6bcf\u4e00 <\/span><\/p>\n<p><span style=\"color:#333333\">\u4e2a\u5fae\u670d\u52a1\u63d0\u4f9b\u5355\u4e2a\u4e1a\u52a1\u529f\u80fd&#xff0c;\u4e00\u4e2a\u670d\u52a1\u53ea\u505a\u4e00\u4ef6\u4e8b\u3002\u6bcf\u4e2a\u670d\u52a1\u90fd\u56f4\u7ed5\u7740\u5177\u4f53\u4e1a\u52a1\u8fdb\u884c\u6784\u5efa&#xff0c;\u5e76\u4e14\u80fd \u591f\u88ab\u72ec\u7acb\u5730\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883\u3001\u7c7b\u751f\u4ea7\u73af\u5883\u7b49 <\/span><\/p>\n<p><span style=\"color:#333333\">\u4ece\u6280\u672f\u89d2\u5ea6\u8bb2\u5c31\u662f\u4e00\u79cd\u5c0f\u800c\u72ec\u7acb\u7684\u5904\u7406\u8fc7\u7a0b&#xff0c;\u7c7b\u4f3c\u4e0e\u8fdb\u7a0b\u7684\u6982\u5ff5&#xff0c;\u80fd\u591f\u81ea\u884c\u5355\u72ec\u542f\u52a8\u6216\u9500\u6bc1\u5fae\u670d\u52a1\u67b6\u6784&#xff08;\u5206\u5e03\u5f0f\u7cfb\u7edf&#xff09;&#xff0c;\u5404\u4e2a\u6a21\u5757\/<\/span><span style=\"color:#333333\">\u670d\u52a1&#xff0c;\u5404\u81ea\u72ec\u7acb\u51fa\u6765&#xff0c;<\/span><span style=\"color:#333333\">&#034;<\/span><span style=\"color:#333333\">\u8ba9\u4e13\u4e1a\u7684\u4eba\u5e72\u4e13\u4e1a\u7684\u4e8b<\/span><span style=\"color:#333333\">&#034;<\/span><span style=\"color:#333333\">&#xff0c;\u72ec\u7acb\u90e8 <\/span><\/p>\n<p><span style=\"color:#333333\">\u7f72\u3002\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d&#xff0c;\u4e0d\u540c\u7684\u670d\u52a1\u53ef\u4ee5\u4f7f\u7528\u5404\u81ea\u72ec\u7acb\u7684\u6570\u636e\u5e93\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u670d\u52a1\u4e4b\u95f4\u91c7\u7528\u8f7b\u91cf\u7ea7\u7684\u901a\u4fe1\u673a\u5236&#xff08;\u901a\u5e38\u662f\u57fa\u4e8e<\/span><span style=\"color:#333333\">HTTP<\/span><span style=\"color:#333333\">\u7684<\/span><span style=\"color:#333333\">RESTful API<\/span><span style=\"color:#333333\">&#xff09;\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5fae\u670d\u52a1\u8bbe\u8ba1\u7684\u601d\u60f3\u6539\u53d8\u4e86\u539f\u6709\u7684\u4f01\u4e1a\u7814\u53d1\u56e2\u961f\u7ec4\u7ec7\u67b6\u6784\u3002\u4f20\u7edf\u7684\u7814\u53d1\u7ec4\u7ec7\u67b6\u6784\u662f\u6c34\u5e73\u67b6\u6784&#xff0c;\u524d\u7aef\u3001 <\/span><\/p>\n<p><span style=\"color:#333333\">\u540e\u7aef\u3001<\/span><span style=\"color:#333333\">DBA<\/span><span style=\"color:#333333\">\u3001\u6d4b\u8bd5\u5206\u522b\u6709\u81ea\u5df1\u5bf9\u5e94\u7684\u56e2\u961f&#xff0c;\u5c5e\u4e8e\u6c34\u5e73\u56e2\u961f\u7ec4\u7ec7\u67b6\u6784\u3002\u800c\u5fae\u670d\u52a1\u7684\u8bbe\u8ba1\u601d\u60f3\u5bf9\u56e2\u961f\u7684 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5212\u5206\u6709\u7740\u4e00\u5b9a\u7684\u5f71\u54cd&#xff0c;\u4f7f\u5f97\u56e2\u961f\u7ec4\u7ec7\u67b6\u6784\u7684\u5212\u5206\u66f4\u503e\u5411\u4e8e\u5782\u76f4\u67b6\u6784&#xff0c;\u6bd4\u5982\u7528\u6237\u4e1a\u52a1\u662f\u4e00\u4e2a\u56e2\u961f\u6765\u8d1f <\/span><\/p>\n<p><span style=\"color:#333333\">\u8d23&#xff0c;\u652f\u4ed8\u4e1a\u52a1\u662f\u4e00\u4e2a\u56e2\u961f\u6765\u8d1f\u8d23\u3002\u4f46\u5b9e\u9645\u4e0a\u5728\u4f01\u4e1a\u4e2d\u5e76\u4e0d\u4f1a\u628a\u56e2\u961f\u7ec4\u7ec7\u67b6\u6784\u62c6\u5206\u5f97\u8fd9\u4e48\u7edd\u5bf9&#xff0c;\u5782\u76f4 <\/span><\/p>\n<p><span style=\"color:#333333\">\u67b6\u6784\u53ea\u662f\u4e00\u79cd\u7406\u60f3\u7684\u67b6\u6784 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5fae\u670d\u52a1\u7684\u5b9e\u73b0\u6846\u67b6\u6709\u591a\u79cd&#xff0c;\u4e0d\u540c\u7684\u5e94\u7528\u67b6\u6784&#xff0c;\u90e8\u7f72\u65b9\u5f0f\u4e5f\u6709\u4e0d\u540c<\/span><\/p>\n<h4><span style=\"color:#333333\">2.2.3 <\/span><span style=\"color:#333333\">\u5355\u4f53\u67b6\u6784\u548c\u5fae\u670d\u52a1\u6bd4\u8f83<\/span><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"709\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232040-689fc0c8859af.png\" width=\"597\" \/><\/p>\n<p><span style=\"color:#333333\">\u5fae\u670d\u52a1\u7684\u4f18\u70b9 <\/span><\/p>\n<p><span style=\"color:#333333\">\u6bcf\u4e2a\u670d\u52a1\u8db3\u591f\u5185\u805a&#xff0c;\u8db3\u591f\u5c0f&#xff0c;\u4ee3\u7801\u5bb9\u6613\u7406\u89e3\u3002\u8fd9\u6837\u80fd\u805a\u7126\u4e00\u4e2a\u53ea\u5f53\u7684\u4e1a\u52a1\u529f\u80fd\u6216\u4e1a\u52a1\u9700\u6c42\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5f00\u53d1\u7b80\u5355\u3001\u5f00\u53d1\u6548\u7387\u63d0\u9ad8&#xff0c;\u4e00\u4e2a\u670d\u52a1\u53ef\u80fd\u5c31\u662f\u4e13\u4e1a\u7684\u53ea\u5e72\u4e00\u4ef6\u4e8b&#xff0c;\u5fae\u670d\u52a1\u80fd\u591f\u88ab\u5c0f\u56e2\u961f\u5355\u72ec\u5f00\u53d1&#xff0c; <\/span><\/p>\n<p><span style=\"color:#333333\">\u8fd9\u4e2a\u5c0f\u56e2\u961f\u53ef\u4ee5\u662f<\/span><span style=\"color:#333333\">2<\/span><span style=\"color:#333333\">\u5230<\/span><span style=\"color:#333333\">5<\/span><span style=\"color:#333333\">\u4eba\u7684\u5f00\u53d1\u4eba\u5458\u7ec4\u6210 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5fae\u670d\u52a1\u662f\u677e\u8026\u5408\u7684&#xff0c;\u662f\u6709\u529f\u80fd\u610f\u4e49\u7684\u670d\u52a1&#xff0c;\u65e0\u8bba\u662f\u5728\u5f00\u53d1\u9636\u6bb5\u6216\u90e8\u7f72\u9636\u6bb5\u90fd\u662f\u72ec\u7acb\u7684\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5fae\u670d\u52a1\u80fd\u4f7f\u7528\u4e0d\u540c\u7684\u8bed\u8a00\u5f00\u53d1 <\/span><\/p>\n<p><span style=\"color:#333333\">\u6613\u4e8e\u548c\u7b2c\u4e09\u65b9\u96c6\u6210&#xff0c;\u5fae\u670d\u52a1\u8fd0\u884c\u5bb9\u6613\u4e14\u7075\u6d3b\u7684\u65b9\u5f0f\u96c6\u6210\u81ea\u52a8\u90e8\u7f72&#xff0c;\u901a\u8fc7\u6301\u7eed\u96c6\u6210\u5de5\u5177&#xff0c;\u5982<\/span><span style=\"color:#333333\">: <\/span><\/p>\n<p><span style=\"color:#333333\">Jenkins<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">Hudson<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">Bamboo<\/span><span style=\"color:#333333\">\u5fae\u670d\u52a1\u6613\u4e8e\u88ab\u4e00\u4e2a\u5f00\u53d1\u4eba\u5458\u7406\u89e3\u3001\u4fee\u6539\u548c\u7ef4\u62a4&#xff0c;\u8fd9\u6837\u5c0f\u56e2\u961f\u80fd\u591f\u66f4\u5173\u6ce8\u81ea\u5df1\u7684\u5de5\u4f5c\u6210\u679c&#xff0c;\u65e0\u9700\u901a\u8fc7\u5408\u4f5c\u624d\u80fd\u4f53\u73b0\u4ef7\u503c <\/span><\/p>\n<p><span style=\"color:#333333\">\u5fae\u670d\u52a1\u5141\u8bb8\u4f60\u5229\u7528\u878d\u5408\u6700\u65b0\u6280\u672f\u3002\u5fae\u670d\u52a1\u53ea\u662f\u4e1a\u52a1\u903b\u8f91\u7684\u4ee3\u7801&#xff0c;\u4e0d\u4f1a\u548c<\/span><span style=\"color:#333333\">HTML\/CSS<\/span><span style=\"color:#333333\">\u6216\u5176\u4ed6\u754c\u9762\u7ec4\u4ef6 <\/span><\/p>\n<p><span style=\"color:#333333\">\u6df7\u5408&#xff0c;\u5373\u524d\u540e\u7aef\u5206\u79bb <\/span><\/p>\n<p><span style=\"color:#333333\">\u6bcf\u4e2a\u5fae\u670d\u52a1\u90fd\u6709\u81ea\u5df1\u7684\u5b58\u50a8\u80fd\u529b&#xff0c;\u53ef\u4ee5\u6709\u81ea\u5df1\u7684\u6570\u636e\u5e93&#xff0c;\u4e5f\u53ef\u4ee5\u6709\u7edf\u4e00\u6570\u636e\u5e93 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5fae\u670d\u52a1\u7f3a\u70b9&#xff1a; <\/span><\/p>\n<p><span style=\"color:#333333\">\u5fae\u670d\u52a1\u628a\u539f\u6709\u7684\u4e00\u4e2a\u9879\u76ee\u62c6\u5206\u6210\u591a\u4e2a\u72ec\u7acb\u5de5\u7a0b&#xff0c;\u589e\u52a0\u4e86\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u8fd0\u7ef4\u3001\u76d1\u63a7\u7b49\u7684\u590d\u6742\u5ea6 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5fae\u670d\u52a1\u67b6\u6784\u9700\u8981\u4fdd\u8bc1\u4e0d\u540c\u670d\u52a1\u4e4b\u95f4\u7684\u6570\u636e\u4e00\u81f4\u6027&#xff0c;\u5f15\u5165\u4e86\u5206\u5e03\u5f0f\u4e8b\u52a1\u548c\u5f02\u6b65\u8865\u507f\u673a\u5236&#xff0c;\u4e3a\u8bbe\u8ba1\u548c\u5f00 <\/span><\/p>\n<p><span style=\"color:#333333\">\u53d1\u5e26\u6765\u4e00\u5b9a\u6311\u6218 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5f00\u53d1\u4eba\u5458\u548c\u8fd0\u7ef4\u9700\u8981\u5904\u7406\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u590d\u6742\u6027&#xff0c;\u9700\u8981\u66f4\u5f3a\u7684\u6280\u672f\u80fd\u529b <\/span><\/p>\n<p><span style=\"color:#333333\">\u5fae\u670d\u52a1\u9002\u7528\u4e8e\u590d\u6742\u7684\u5927\u7cfb\u7edf&#xff0c;\u5bf9\u4e8e\u5c0f\u578b\u5e94\u7528\u4f7f\u7528\u5fae\u670d\u52a1&#xff0c;\u8fdb\u884c\u76f2\u76ee\u7684\u62c6\u5206\u53ea\u4f1a\u589e\u52a0\u5176\u7ef4\u62a4\u548c\u5f00\u53d1\u6210 <\/span><\/p>\n<p><span style=\"color:#333333\">\u672c<\/span><\/p>\n<p><span style=\"color:#333333\">\u5e38\u89c1\u7684\u5fae\u670d\u52a1\u6846\u67b6 <\/span><\/p>\n<p><span style=\"color:#333333\">Dubbo <\/span><\/p>\n<p><span style=\"color:#333333\">\u963f\u91cc\u5f00\u6e90\u8d21\u732e\u7ed9\u4e86<\/span><span style=\"color:#333333\">ASF<\/span><span style=\"color:#333333\">&#xff0c;\u76ee\u524d\u5df2\u7ecf\u662f<\/span><span style=\"color:#333333\">Apache<\/span><span style=\"color:#333333\">\u7684\u9876\u7ea7\u9879\u76ee <\/span><\/p>\n<p><span style=\"color:#333333\">\u4e00\u6b3e\u9ad8\u6027\u80fd\u7684<\/span><span style=\"color:#333333\">Java RPC<\/span><span style=\"color:#333333\">\u670d\u52a1\u6846\u67b6&#xff0c;\u5fae\u670d\u52a1\u751f\u6001\u4f53\u7cfb\u4e2d\u7684\u4e00\u4e2a\u91cd\u8981\u7ec4\u4ef6 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5c06\u5355\u4f53\u7a0b\u5e8f\u5206\u89e3\u6210\u591a\u4e2a\u529f\u80fd\u670d\u52a1\u6a21\u5757&#xff0c;\u6a21\u5757\u95f4\u4f7f\u7528<\/span><span style=\"color:#333333\">Dubbo<\/span><span style=\"color:#333333\">\u6846\u67b6\u63d0\u4f9b\u7684\u9ad8\u6027\u80fd<\/span><span style=\"color:#333333\">RPC<\/span><span style=\"color:#333333\">\u901a\u4fe1 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5185\u90e8\u534f\u8c03\u4f7f\u7528<\/span><span style=\"color:#333333\">Zookeeper<\/span><span style=\"color:#333333\">&#xff0c;\u5b9e\u73b0\u670d\u52a1\u6ce8\u518c\u3001\u670d\u52a1\u53d1\u73b0\u548c\u670d\u52a1\u6cbb\u7406 <\/span><\/p>\n<p><span style=\"color:#333333\">Spring cloud <\/span><\/p>\n<p><span style=\"color:#333333\">\u4e00\u4e2a\u5b8c\u6574\u7684\u5fae\u670d\u52a1\u89e3\u51b3\u65b9\u6848&#xff0c;\u76f8\u5f53\u4e8e<\/span><span style=\"color:#333333\">Dubbo<\/span><span style=\"color:#333333\">\u7684\u8d85\u96c6 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5fae\u670d\u52a1\u6846\u67b6&#xff0c;\u5c06\u5355\u4f53\u5e94\u7528\u62c6\u5206\u4e3a\u7c92\u5ea6\u66f4\u5c0f\u7684\u5355\u4e00\u529f\u80fd\u670d\u52a1 <\/span><\/p>\n<p><span style=\"color:#333333\">\u57fa\u4e8e<\/span><span style=\"color:#333333\">HTTP<\/span><span style=\"color:#333333\">\u534f\u8bae\u7684<\/span><span style=\"color:#333333\">REST(Representational State Transfer <\/span><span style=\"color:#333333\">\u8868\u8ff0\u6027\u72b6\u6001\u8f6c\u79fb&#xff09;\u98ce\u683c\u5b9e\u73b0\u6a21\u5757\u95f4\u901a\u4fe1<\/span><\/p>\n<h2><span style=\"color:#333333\">\u4e09<\/span><span style=\"color:#333333\"> tomcat<\/span><span style=\"color:#333333\">\u7684\u529f\u80fd\u4ecb\u7ecd<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"311\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232043-689fc0cbea7e2.png\" width=\"602\" \/><\/p>\n<p><span style=\"color:#333333\">Tomcat <\/span><span style=\"color:#333333\">\u670d\u52a1\u5668\u662f\u4e00\u4e2a\u514d\u8d39\u7684\u5f00\u653e\u6e90\u4ee3\u7801\u7684<\/span><span style=\"color:#333333\">Web <\/span><span style=\"color:#333333\">\u5e94\u7528\u670d\u52a1\u5668&#xff0c;\u5c5e\u4e8e\u8f7b\u91cf\u7ea7\u5e94\u7528\u670d\u52a1\u5668&#xff0c;\u5728\u4e2d\u5c0f\u578b\u7cfb\u7edf\u548c <\/span><\/p>\n<p><span style=\"color:#333333\">\u5e76\u53d1\u8bbf\u95ee\u7528\u6237\u4e0d\u662f\u5f88\u591a\u7684\u573a\u5408\u4e0b\u88ab\u666e\u904d\u4f7f\u7528&#xff0c;<\/span><span style=\"color:#333333\">Tomcat <\/span><span style=\"color:#333333\">\u5177\u6709\u5904\u7406<\/span><span style=\"color:#333333\">HTML<\/span><span style=\"color:#333333\">\u9875\u9762\u7684\u529f\u80fd&#xff0c;\u5b83\u8fd8\u662f\u4e00\u4e2a<\/span><span style=\"color:#333333\">Servlet<\/span><span style=\"color:#333333\">\u548c <\/span><\/p>\n<p><span style=\"color:#333333\">JSP<\/span><span style=\"color:#333333\">\u5bb9\u5668<\/span><span style=\"color:#333333\">\u8d77\u59cb\u4e8e<\/span><span style=\"color:#333333\">SUN <\/span><span style=\"color:#333333\">\u516c\u53f8\u7684\u4e00\u4e2a<\/span><span style=\"color:#333333\">Servlet<\/span><span style=\"color:#333333\">\u7684\u53c2\u8003\u5b9e\u73b0\u9879\u76ee<\/span><span style=\"color:#333333\"> Java Web Server<\/span><span style=\"color:#333333\">&#xff0c;\u5f00\u53d1\u8005\u662f<\/span><span style=\"color:#333333\"> James Duncan Davidson<\/span><span style=\"color:#333333\">&#xff0c; <\/span><\/p>\n<p><span style=\"color:#333333\">\u5728<\/span><span style=\"color:#333333\">1999<\/span><span style=\"color:#333333\">\u5e74&#xff0c;\u5c06\u9879\u76ee\u8d21\u732e\u7ed9\u4e86<\/span><span style=\"color:#333333\">apache<\/span><span style=\"color:#333333\">\u8f6f\u4ef6\u57fa\u91d1\u4f1a&#xff08;<\/span><span style=\"color:#333333\">ASF<\/span><span style=\"color:#333333\">&#xff09;&#xff0c;\u548c<\/span><span style=\"color:#333333\">ASF<\/span><span style=\"color:#333333\">\u73b0\u6709\u7684\u9879\u76ee<\/span><span style=\"color:#333333\"> JServ <\/span><span style=\"color:#333333\">\u5408\u5e76&#xff0c;\u5e76\u5f00\u6e90\u6210\u4e3a\u9876\u7ea7 \u9879\u76ee <\/span><\/p>\n<p><span style=\"color:#333333\">Tomcat <\/span><span style=\"color:#333333\">\u4ec5\u4ec5\u5b9e\u73b0\u4e86<\/span><span style=\"color:#333333\">Java EE<\/span><span style=\"color:#333333\">\u89c4\u8303\u4e2d\u4e0e<\/span><span style=\"color:#333333\">Servlet<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">JSP<\/span><span style=\"color:#333333\">\u76f8\u5173\u7684\u7c7b\u5e93&#xff0c;\u662f<\/span><span style=\"color:#333333\">JavaEE<\/span><span style=\"color:#333333\">\u4e0d\u5b8c\u6574\u5b9e\u73b0\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">1999<\/span><span style=\"color:#333333\">\u5e74\u53d1\u5e03\u521d\u59cb\u7248\u672c\u662f<\/span><span style=\"color:#333333\">Tomcat 3.0<\/span><span style=\"color:#333333\">&#xff0c;\u5b9e\u73b0\u4e86<\/span><span style=\"color:#333333\">Servlet 2.2 <\/span><span style=\"color:#333333\">\u548c<\/span><span style=\"color:#333333\"> JSP 1.1<\/span><span style=\"color:#333333\">\u89c4\u8303\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">Tomcat 4.x<\/span><span style=\"color:#333333\">\u53d1\u5e03\u65f6&#xff0c;\u5185\u5efa\u4e86<\/span><span style=\"color:#333333\">Catalina<\/span><span style=\"color:#333333\">&#xff08;<\/span><span style=\"color:#333333\">Servlet<\/span><span style=\"color:#333333\">\u5bb9\u5668&#xff09;\u548c<\/span><span style=\"color:#333333\"> Jasper<\/span><span style=\"color:#333333\">&#xff08;<\/span><span style=\"color:#333333\">JSP engine<\/span><span style=\"color:#333333\">&#xff09;\u7b49 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5f53\u524d<\/span><span style=\"color:#333333\"> Tomcat <\/span><span style=\"color:#333333\">\u7684\u6b63\u5f0f\u7248\u672c\u5df2\u7ecf\u66f4\u65b0\u5230<\/span><span style=\"color:#333333\"> 9.0.x <\/span><span style=\"color:#333333\">\u7248\u672c&#xff0c;\u4f46\u5f53\u524d\u4f01\u4e1a\u4e2d\u4e3b\u6d41\u7248\u672c\u4e3a<\/span><span style=\"color:#333333\"> 8.x <\/span><span style=\"color:#333333\">\u548c<\/span><span style=\"color:#333333\"> 7.x <\/span><\/p>\n<p><span style=\"color:#333333\">\u5b98\u7f51<\/span><span style=\"color:#333333\">: <\/span><\/p>\n<p><span style=\"color:#4183c4\">http:\/\/tomcat.apache.org\/ <\/span><\/p>\n<p><span style=\"color:#333333\">\u5b98\u7f51\u6587\u6863<\/span><span style=\"color:#333333\">: <\/span><\/p>\n<p><span style=\"color:#4183c4\">https:\/\/tomcat.apache.org\/tomcat-8.5-doc\/index.html <\/span><\/p>\n<p><span style=\"color:#333333\">\u5e2e\u52a9\u6587\u6863<\/span><span style=\"color:#333333\">: <\/span><\/p>\n<p><span style=\"color:#4183c4\">https:\/\/cwiki.apache.org\/confluence\/display\/tomcat\/ <\/span><\/p>\n<p><span style=\"color:#4183c4\">https:\/\/cwiki.apache.org\/confluence\/display\/tomcat\/FAQ<\/span><\/p>\n<h3><span style=\"color:#333333\">3.1 <\/span><span style=\"color:#333333\">\u5b89\u88c5<\/span><span style=\"color:#333333\"> Tomcat<\/span><\/h3>\n<p><span style=\"color:#333333\">,<\/span><span style=\"color:#333333\">\u63a8\u8350\u4ece<\/span><span style=\"color:#333333\">Apache<\/span><span style=\"color:#333333\">\u5b98\u7f51\u4e0b\u8f7d\u6e90\u7801\u5305\u76f4\u63a5\u5b89\u88c5\u542f\u52a8 <\/span><\/p>\n<p><span style=\"color:#333333\">1.<\/span><span style=\"color:#333333\">\u5b89\u88c5<\/span><span style=\"color:#333333\">java<\/span><span style=\"color:#333333\">\u73af\u5883<\/span><\/p>\n<p>#\u5b89\u88c5java\u73af\u5883<br \/>\n[root&#064;tomcat ~]# yum install java-1.8.0-openjdk.x86_64 -y<br \/>\n#\u67e5\u770bjava\u7248\u672c<br \/>\n[root&#064;tomcatA ~]# java -version<br \/>\nopenjdk version &#034;1.8.0_402&#034;<br \/>\nOpenJDK Runtime Environment (build 1.8.0_402-b06)<br \/>\nOpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode)<br \/>\n#\u67e5\u770bjava\u7684\u73af\u5883\u76ee\u5f55<br \/>\n[root&#064;tomcatA ~]# which java<br \/>\n\/usr\/bin\/java<br \/>\n[root&#064;tomcatA ~]# ll \/usr\/bin\/java<br \/>\nlrwxrwxrwx 1 root root 22 Jul 30 10:41 \/usr\/bin\/java -&gt; \/etc\/alternatives\/java<br \/>\n#java\u7684\u8fd0\u884c\u73af\u5883<br \/>\n[root&#064;tomcatA ~]# cd \/etc\/alternatives\/jre<br \/>\n[root&#064;tomcatA jre]# ls<br \/>\nASSEMBLY_EXCEPTION bin lib LICENSE THIRD_PARTY_README<\/p>\n<p><span style=\"color:#333333\">2.<\/span><span style=\"color:#333333\">\u5b89\u88c5\u5e76\u542f\u52a8<\/span><span style=\"color:#333333\">tomcat<\/span><\/p>\n<p>#\u89e3\u538b\u5e76\u751f\u6210tomcat\u7684\u7a0b\u5e8f\u76ee\u5f55<br \/>\n[root&#064;tomcatA ~]# tar zxf apache-tomcat-9.0.107.tar.gz -C \/usr\/local\/<br \/>\n[root&#064;tomcatA ~]# cd \/usr\/local\/<br \/>\n[root&#064;tomcatA local]# ls<br \/>\napache-tomcat-9.0.107 bin etc games include lib lib64 libexec sbin share<br \/>\nsrc<br \/>\n[root&#064;tomcatA local]# mv apache-tomcat-9.0.107\/ tomcat<br \/>\n[root&#064;tomcatA local]# ls<\/p>\n<p>bin etc games include lib lib64 libexec sbin share src tomcat<br \/>\n#\u542f\u52a8tomcat<br \/>\n[root&#064;tomcatA local]# cd tomcat\/<br \/>\n[root&#064;tomcatA tomcat]# cd bin\/<br \/>\n[root&#064;tomcatA bin]# ls<br \/>\nbootstrap.jar commons-daemon-native.tar.gz makebase.sh tomcatjuli.jar<br \/>\ncatalina.bat configtest.bat setclasspath.bat tomcatnative.tar.gz<br \/>\ncatalina.sh configtest.sh setclasspath.sh toolwrapper.bat<br \/>\ncatalina-tasks.xml daemon.sh shutdown.bat toolwrapper.sh<br \/>\nciphers.bat digest.bat shutdown.sh version.bat<br \/>\nciphers.sh digest.sh startup.bat version.sh<br \/>\ncommons-daemon.jar makebase.bat startup.sh<br \/>\n[root&#064;tomcatA bin]# .\/startup.sh<br \/>\nUsing CATALINA_BASE: \/usr\/local\/tomcat<br \/>\nUsing CATALINA_HOME: \/usr\/local\/tomcat<br \/>\nUsing CATALINA_TMPDIR: \/usr\/local\/tomcat\/temp<br \/>\nUsing JRE_HOME: \/usr<br \/>\nUsing CLASSPATH:<br \/>\n\/usr\/local\/tomcat\/bin\/bootstrap.jar:\/usr\/local\/tomcat\/bin\/tomcat-juli.jar<br \/>\nUsing CATALINA_OPTS:<br \/>\nTomcat started<\/p>\n<p><span style=\"color:#333333\">3.<\/span><span style=\"color:#333333\">\u67e5\u770b\u7aef\u53e3<\/span><\/p>\n<p>[root&#064;tomcat ~]# netstat -antlupe | grep java<br \/>\ntcp6 0 0 :::8080 :::* LISTEN 0<br \/>\n68636 32887\/java<\/p>\n<p>\u5982\u56fe&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"339\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232045-689fc0cd58c66.png\" width=\"508\" \/><\/p>\n<p><span style=\"color:#333333\">4.<\/span><span style=\"color:#333333\">\u8bbf\u95ee<\/span><span style=\"color:#333333\">tomcat<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"518\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232048-689fc0d0c550a.png\" width=\"523\" \/><\/p>\n<h3><span style=\"color:#333333\">3.2 tomcat<\/span><span style=\"color:#333333\">\u7684\u6587\u4ef6\u7ed3\u6784\u548c\u7ec4\u6210<\/span><\/h3>\n<p><span style=\"color:#333333\">\u76ee\u5f55\u7ed3\u6784<\/span><\/p>\n<p>\u76ee\u5f55 \u8bf4\u660e<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nbin \u670d\u52a1\u542f\u52a8\u3001\u505c\u6b62\u7b49\u76f8\u5173\u7a0b\u5e8f\u548c\u6587\u4ef6<br \/>\nconf \u914d\u7f6e\u6587\u4ef6<br \/>\nlib \u5e93\u76ee\u5f55<br \/>\nlogs \u65e5\u5fd7\u76ee\u5f55<br \/>\nwebapps \u5e94\u7528\u7a0b\u5e8f&#xff0c;\u5e94\u7528\u90e8\u7f72\u76ee\u5f55&#xff0c;\u76f8\u5f53\u4e8enginx\u7684\u9ed8\u8ba4\u53d1\u5e03\u76ee\u5f55<br \/>\nwork jsp \u7f16\u8bd1\u540e\u7684\u7ed3\u679c\u6587\u4ef6&#xff0c;\u5efa\u8bae\u63d0\u524d\u9884\u70ed\u8bbf\u95ee<\/p>\n<p><span style=\"color:#333333\">\u67e5\u770b<\/span><span style=\"color:#333333\">tomcat<\/span><span style=\"color:#333333\">\u76f8\u5173\u76ee\u5f55\u548c\u6587\u4ef6<\/span><\/p>\n<p>[root&#064;tomcat ~]# ls \/usr\/local\/tomcat\/<br \/>\nbin conf lib logs README.md RUNNING.txt<br \/>\nwebapps<br \/>\nBUILDING.txt CONTRIBUTING.md LICENSE NOTICE RELEASE-NOTES temp work<\/p>\n<p><span style=\"color:#333333\">3.3 <\/span><span style=\"color:#333333\">\u751f\u6210<\/span><span style=\"color:#333333\">tomcat<\/span><span style=\"color:#333333\">\u7684\u542f\u52a8\u6587\u4ef6<\/span><\/p>\n<p><span style=\"color:#333333\">1.<\/span><span style=\"color:#333333\">\u751f\u6210<\/span><span style=\"color:#333333\">tomcat<\/span><span style=\"color:#333333\">\u7684\u4e3b\u914d\u7f6e\u6587\u4ef6<\/span><\/p>\n<p>[root&#064;tomcat ~]# vim \/usr\/local\/tomcat\/conf\/tomcat.conf<br \/>\nJAVA_HOME&#061;\/etc\/alternatives\/jre<\/p>\n<p><span style=\"color:#333333\">2.<\/span><span style=\"color:#333333\">\u751f\u6210\u542f\u52a8\u6587\u4ef6<\/span><\/p>\n<p>[Unit]<br \/>\nDescription&#061;Tomcat<br \/>\n#After&#061;syslog.target network.target remote-fs.target nss-lookup.target<br \/>\nAfter&#061;syslog.target network.target<\/p>\n<p>[Service]<br \/>\nType&#061;forking<br \/>\nEnvironmentFile&#061;\/usr\/local\/tomcat\/conf\/tomcat.conf<br \/>\nExecStart&#061;\/usr\/local\/tomcat\/bin\/startup.sh<br \/>\nExecStop&#061;\/usr\/local\/tomcat\/bin\/shutdown.sh<br \/>\nPrivateTmp&#061;true<br \/>\nUser&#061;tomcat<br \/>\nGroup&#061;tomcat<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<\/p>\n<p><span style=\"color:#333333\">3.<\/span><span style=\"color:#333333\">\u751f\u6210<\/span><span style=\"color:#333333\">tomcat<\/span><span style=\"color:#333333\">\u7528\u6237\u5e76\u8bbe\u5b9a\u8f6f\u4ef6\u5b89\u88c5\u76ee\u5f55\u6743\u9650<\/span><\/p>\n<p>[root&#064;tomcatB bin]# useradd -s \/sbin\/nologin -M tomcat<br \/>\n[root&#064;tomcatB bin]# chown tomcat.tomcat \/usr\/local\/tomcat\/ -R<\/p>\n<p><span style=\"color:#333333\">4.<\/span><span style=\"color:#333333\">\u7528\u542f\u52a8\u811a\u672c\u5f00\u542f\u670d\u52a1<\/span><\/p>\n<p>[root&#064;tomcatB ~]# systemctl enable &#8211;now tomcat<\/p>\n<h2><span style=\"color:#333333\">\u56db \u7ed3\u5408\u53cd\u5411\u4ee3\u7406\u5b9e\u73b0<\/span><span style=\"color:#333333\">tomcat<\/span><span style=\"color:#333333\">\u90e8\u7f72<\/span><\/h2>\n<h3><span style=\"color:#333333\">4.1 <\/span><span style=\"color:#333333\">\u5e38\u89c1\u90e8\u7f72\u65b9\u5f0f\u4ecb\u7ecd<\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"340\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232051-689fc0d3ee061.png\" width=\"560\" \/><\/p>\n<p><span style=\"color:#333333\">standalone<\/span><span style=\"color:#333333\">\u6a21\u5f0f&#xff0c;<\/span><span style=\"color:#333333\">Tomcat<\/span><span style=\"color:#333333\">\u5355\u72ec\u8fd0\u884c&#xff0c;\u76f4\u63a5\u63a5\u53d7\u7528\u6237\u7684\u8bf7\u6c42&#xff0c;\u4e0d\u63a8\u8350\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u53cd\u5411\u4ee3\u7406&#xff0c;\u5355\u673a\u8fd0\u884c&#xff0c;\u63d0\u4f9b\u4e86\u4e00\u4e2a<\/span><span style=\"color:#333333\">Nginx<\/span><span style=\"color:#333333\">\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406&#xff0c;\u53ef\u4ee5\u505a\u5230\u9759\u6001\u7531<\/span><span style=\"color:#333333\">nginx<\/span><span style=\"color:#333333\">\u63d0\u4f9b\u54cd\u5e94&#xff0c;\u52a8\u6001<\/span><span style=\"color:#333333\">jsp<\/span><span style=\"color:#333333\">\u4ee3 <\/span><\/p>\n<p><span style=\"color:#333333\">\u7406\u7ed9<\/span><span style=\"color:#333333\">Tomcat <\/span><\/p>\n<p><span style=\"color:#333333\">LNMT<\/span><span style=\"color:#333333\">&#xff1a;<\/span><span style=\"color:#333333\">Linux &#043; Nginx &#043; MySQL &#043; Tomcat <\/span><\/p>\n<p><span style=\"color:#333333\">LAMT<\/span><span style=\"color:#333333\">&#xff1a;<\/span><span style=\"color:#333333\">Linux &#043; Apache<\/span><span style=\"color:#333333\">&#xff08;<\/span><span style=\"color:#333333\">Httpd<\/span><span style=\"color:#333333\">&#xff09;<\/span><span style=\"color:#333333\">&#043; MySQL &#043; Tomcat <\/span><\/p>\n<p><span style=\"color:#333333\">\u524d\u7f6e\u4e00\u53f0<\/span><span style=\"color:#333333\">Nginx<\/span><span style=\"color:#333333\">&#xff0c;\u7ed9\u591a\u53f0<\/span><span style=\"color:#333333\">Tomcat<\/span><span style=\"color:#333333\">\u5b9e\u4f8b\u505a\u53cd\u5411\u4ee3\u7406\u548c\u8d1f\u8f7d\u5747\u8861\u8c03\u5ea6&#xff0c;<\/span><span style=\"color:#333333\">Tomcat<\/span><span style=\"color:#333333\">\u4e0a\u90e8\u7f72\u7684\u7eaf\u52a8\u6001\u9875\u9762\u66f4 <\/span><\/p>\n<p><span style=\"color:#333333\">\u9002\u5408 <\/span><\/p>\n<p><span style=\"color:#333333\">LNMT<\/span><span style=\"color:#333333\">&#xff1a;<\/span><span style=\"color:#333333\">Linux &#043; Nginx &#043; MySQL &#043; Tomcat <\/span><\/p>\n<p><span style=\"color:#333333\">\u591a\u7ea7\u4ee3\u7406 <\/span><\/p>\n<p><span style=\"color:#333333\">LNNMT<\/span><span style=\"color:#333333\">&#xff1a;<\/span><span style=\"color:#333333\">Linux &#043; Nginx &#043; Nginx &#043; MySQL &#043; Tomcat<\/span><\/p>\n<h3><span style=\"color:#333333\">4.2 <\/span><span style=\"color:#333333\">\u5229\u7528<\/span><span style=\"color:#333333\"> nginx <\/span><span style=\"color:#333333\">\u53cd\u5411\u4ee3\u7406\u5b9e\u73b0<\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"231\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232052-689fc0d4d6bd0.png\" width=\"616\" \/><\/p>\n<p>[root&#064;Nginx ~]# vim \/usr\/local\/nginx\/conf.d\/vhosts.conf<br \/>\nlocation ~ \\\\.jsp$ {<br \/>\nproxy_pass http:\/\/172.25.254.10:8080;<\/p>\n<p>\u6d4f\u89c8\u5668\u6d4b\u8bd5\u7ed3\u679c:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"343\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232053-689fc0d5adec1.png\" width=\"610\" \/><\/p>\n<h3><span style=\"color:#333333\">4.3 <\/span><span style=\"color:#333333\">\u5b9e\u73b0<\/span><span style=\"color:#333333\">tomcat<\/span><span style=\"color:#333333\">\u4e2d\u7684\u8d1f\u8f7d\u5747\u8861<\/span><\/h3>\n<p><span style=\"color:#333333\">\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<\/span><span style=\"color:#333333\">\u8d1f\u8f7d \u5747\u8861\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5f53\u5355\u673a<\/span><span style=\"color:#333333\">Tomcat<\/span><span style=\"color:#333333\">&#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\u662f<\/span><span style=\"color:#333333\">Session<\/span><span style=\"color:#333333\">\u3002\u800c\u8fd9\u4e2a\u95ee\u9898\u7684\u7531 \u6765&#xff0c;\u90fd\u662f\u7531\u4e8eHTTP<\/span><span style=\"color:#333333\">\u534f\u8bae\u5728\u8bbe\u8ba1\u4e4b\u521d\u6ca1\u6709\u60f3\u5230\u672a\u6765\u7684\u53d1\u5c55\u3002<\/span><\/p>\n<h4><span style=\"color:#333333\">4.3.1 HTTP<\/span><span style=\"color:#333333\">\u7684\u65e0\u72b6\u6001&#xff0c;\u6709\u8fde\u63a5\u548c\u77ed\u8fde\u63a5<\/span><\/h4>\n<p><span style=\"color:#333333\">\u65e0\u72b6\u6001&#xff1a;\u6307\u7684\u662f\u670d\u52a1\u5668\u7aef\u65e0\u6cd5\u77e5\u9053<\/span><span style=\"color:#333333\">2<\/span><span style=\"color:#333333\">\u6b21\u8bf7\u6c42\u4e4b\u95f4\u7684\u8054\u7cfb&#xff0c;\u5373\u4f7f\u662f\u524d\u540e<\/span><span style=\"color:#333333\">2<\/span><span style=\"color:#333333\">\u6b21\u8bf7\u6c42\u6765\u81ea\u540c\u4e00\u4e2a\u6d4f\u89c8\u5668&#xff0c;\u4e5f <\/span><\/p>\n<p><span style=\"color:#333333\">\u6ca1\u6709\u4efb\u4f55\u6570\u636e\u80fd\u591f\u5224\u65ad\u51fa\u662f\u540c\u4e00\u4e2a\u6d4f\u89c8\u5668\u7684\u8bf7\u6c42\u3002\u540e\u6765\u53ef\u4ee5\u901a\u8fc7<\/span><span style=\"color:#333333\">cookie<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">session<\/span><span style=\"color:#333333\">\u673a\u5236\u6765\u5224\u65ad\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u6d4f\u89c8\u5668\u7aef\u7b2c\u4e00\u6b21<\/span><span style=\"color:#333333\">HTTP<\/span><span style=\"color:#333333\">\u8bf7\u6c42\u670d\u52a1\u5668\u7aef\u65f6&#xff0c;\u5728\u670d\u52a1\u5668\u7aef\u4f7f\u7528<\/span><span style=\"color:#333333\">session<\/span><span style=\"color:#333333\">\u8fd9\u79cd\u6280\u672f&#xff0c;\u5c31\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u7aef <\/span><\/p>\n<p><span style=\"color:#333333\">\u4ea7\u751f\u4e00\u4e2a\u968f\u673a\u503c\u5373<\/span><span style=\"color:#333333\">SessionID<\/span><span style=\"color:#333333\">\u53d1\u7ed9\u6d4f\u89c8\u5668\u7aef&#xff0c;\u6d4f\u89c8\u5668\u7aef\u6536\u5230\u540e\u4f1a\u4fdd\u6301\u8fd9\u4e2a<\/span><span style=\"color:#333333\">SessionID<\/span><span style=\"color:#333333\">\u5728<\/span><span style=\"color:#333333\">Cookie<\/span><span style=\"color:#333333\">\u5f53 <\/span><\/p>\n<p><span style=\"color:#333333\">\u4e2d&#xff0c;\u8fd9\u4e2a<\/span><span style=\"color:#333333\">Cookie<\/span><span style=\"color:#333333\">\u503c\u4e00\u822c\u4e0d\u80fd\u6301\u4e45\u5b58\u50a8&#xff0c;\u6d4f\u89c8\u5668\u5173\u95ed\u5c31\u6d88\u5931\u3002\u6d4f\u89c8\u5668\u5728\u6bcf\u4e00\u6b21\u63d0\u4ea4<\/span><span style=\"color:#333333\">HTTP<\/span><span style=\"color:#333333\">\u8bf7\u6c42\u7684 <\/span><\/p>\n<p><span style=\"color:#333333\">\u65f6\u5019\u4f1a\u628a\u8fd9\u4e2a<\/span><span style=\"color:#333333\">SessionID<\/span><span style=\"color:#333333\">\u4f20\u7ed9\u670d\u52a1\u5668\u7aef&#xff0c;\u670d\u52a1\u5668\u7aef\u5c31\u53ef\u4ee5\u901a\u8fc7\u6bd4\u5bf9\u77e5\u9053\u662f\u8c01\u4e86 <\/span><\/p>\n<p><span style=\"color:#333333\">Session<\/span><span style=\"color:#333333\">\u901a\u5e38\u4f1a\u4fdd\u5b58\u5728\u670d\u52a1\u5668\u7aef\u5185\u5b58\u4e2d&#xff0c;\u5982\u679c\u6ca1\u6709\u6301\u4e45\u5316&#xff0c;\u5219\u6613\u4e22\u5931 <\/span><\/p>\n<p><span style=\"color:#333333\">Session<\/span><span style=\"color:#333333\">\u4f1a\u5b9a\u65f6\u8fc7\u671f\u3002\u8fc7\u671f\u540e\u6d4f\u89c8\u5668\u5982\u679c\u518d\u8bbf\u95ee&#xff0c;\u670d\u52a1\u7aef\u53d1\u73b0\u6ca1\u6709\u6b64<\/span><span style=\"color:#333333\">ID<\/span><span style=\"color:#333333\">&#xff0c;\u5c06\u7ed9\u6d4f\u89c8\u5668\u7aef\u91cd\u65b0\u53d1 <\/span><\/p>\n<p><span style=\"color:#333333\">\u65b0\u7684<\/span><span style=\"color:#333333\">SessionID <\/span><\/p>\n<p><span style=\"color:#333333\">\u66f4\u6362\u6d4f\u89c8\u5668\u4e5f\u5c06\u91cd\u65b0\u83b7\u5f97\u65b0\u7684<\/span><span style=\"color:#333333\">SessionID <\/span><\/p>\n<p><span style=\"color:#333333\">\u6709\u8fde\u63a5&#xff1a;\u662f\u56e0\u4e3a\u5b83\u57fa\u4e8e<\/span><span style=\"color:#333333\">TCP<\/span><span style=\"color:#333333\">\u534f\u8bae&#xff0c;\u662f\u9762\u5411\u8fde\u63a5\u7684&#xff0c;\u9700\u8981<\/span><span style=\"color:#333333\">3<\/span><span style=\"color:#333333\">\u6b21\u63e1\u624b\u3001<\/span><span style=\"color:#333333\">4<\/span><span style=\"color:#333333\">\u6b21\u65ad\u5f00\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u77ed\u8fde\u63a5&#xff1a;<\/span><span style=\"color:#333333\">Http 1.1<\/span><span style=\"color:#333333\">\u4e4b\u524d&#xff0c;\u90fd\u662f\u4e00\u4e2a\u8bf7\u6c42\u4e00\u4e2a\u8fde\u63a5&#xff0c;\u800c<\/span><span style=\"color:#333333\">Tcp<\/span><span style=\"color:#333333\">\u7684\u8fde\u63a5\u521b\u5efa\u9500\u6bc1\u6210\u672c\u9ad8&#xff0c;\u5bf9\u670d\u52a1\u5668\u6709\u5f88\u5927\u7684 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5f71\u54cd\u3002\u6240\u4ee5&#xff0c;\u81ea<\/span><span style=\"color:#333333\">Http 1.1<\/span><span style=\"color:#333333\">\u5f00\u59cb&#xff0c;\u652f\u6301<\/span><span style=\"color:#333333\">keep-alive<\/span><span style=\"color:#333333\">&#xff0c;\u9ed8\u8ba4\u4e5f\u5f00\u542f&#xff0c;\u4e00\u4e2a\u8fde\u63a5\u6253\u5f00\u540e&#xff0c;\u4f1a\u4fdd\u6301\u4e00\u6bb5\u65f6\u95f4 <\/span><\/p>\n<p><span style=\"color:#333333\">&#xff08;\u53ef\u8bbe\u7f6e&#xff09;&#xff0c;\u6d4f\u89c8\u5668\u518d\u8bbf\u95ee\u8be5\u670d\u52a1\u5668\u5c31\u4f7f\u7528\u8fd9\u4e2a<\/span><span style=\"color:#333333\">Tcp<\/span><span style=\"color:#333333\">\u8fde\u63a5&#xff0c;\u51cf\u8f7b\u4e86\u670d\u52a1\u5668\u538b\u529b&#xff0c;\u63d0\u9ad8\u4e86\u6548\u7387\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u670d\u52a1\u5668\u7aef\u5982\u679c\u6545\u969c&#xff0c;\u5373\u4f7f<\/span><span style=\"color:#333333\">Session<\/span><span style=\"color:#333333\">\u88ab\u6301\u4e45\u5316\u4e86&#xff0c;\u4f46\u662f\u670d\u52a1\u6ca1\u6709\u6062\u590d\u524d\u90fd\u4e0d\u80fd\u4f7f\u7528\u8fd9\u4e9b<\/span><span style=\"color:#333333\">SessionID<\/span><span style=\"color:#333333\">\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5982\u679c\u4f7f\u7528<\/span><span style=\"color:#333333\">HAProxy<\/span><span style=\"color:#333333\">\u6216\u8005<\/span><span style=\"color:#333333\">Nginx<\/span><span style=\"color:#333333\">\u7b49\u505a\u8d1f\u8f7d\u5747\u8861\u5668&#xff0c;\u8c03\u5ea6\u5230\u4e86\u4e0d\u540c\u7684<\/span><span style=\"color:#333333\">Tomcat<\/span><span style=\"color:#333333\">\u4e0a&#xff0c;\u90a3\u4e48\u4e5f\u4f1a\u51fa\u73b0\u627e\u4e0d\u5230 <\/span><\/p>\n<p><span style=\"color:#333333\">SessionID<\/span><span style=\"color:#333333\">\u7684\u60c5\u51b5\u3002<\/span><\/p>\n<h4><span style=\"color:#333333\">4.3.2 tomcat<\/span><span style=\"color:#333333\">\u8d1f\u8f7d\u5747\u8861\u5b9e\u73b0<\/span><\/h4>\n<p>[root&#064;Nginx ~]# vim \/usr\/local\/nginx\/conf.d\/vhosts.conf<br \/>\nupstream tomcat {<br \/>\n#ip_bash;<br \/>\n#hash $cookie_JSESSIONID;<br \/>\nserver 172.25.254.10:8080;<br \/>\nserver 172.25.254.20:8080;<br \/>\n}<br \/>\nserver {<br \/>\nlisten 80;<br \/>\nserver_name lee.timinglee.org;<br \/>\nroot \/webdataw\/nginx\/timinglee.org\/lee;<br \/>\naccess_log \/var\/log\/nginx\/access.log;<br \/>\nerror_log \/var\/log\/nginx\/error.log;<br \/>\ntry_files $uri $uri.html $uri\/index.html \/error\/default.html;<br \/>\nlocation ~ \\\\.jsp$ {<br \/>\nproxy_pass http:\/\/tomcat;<br \/>\n}<br \/>\n}<\/p>\n<h2><span style=\"color:#333333\">\u4e94<\/span><span style=\"color:#333333\"> Memcached<\/span><\/h2>\n<h3><span style=\"color:#333333\">5.1 Memcached<\/span><span style=\"color:#333333\">\u7b80\u4ecb<\/span><\/h3>\n<p><span style=\"color:#333333\">Memcached <\/span><span style=\"color:#333333\">\u53ea\u652f\u6301\u80fd\u5e8f\u5217\u5316\u7684\u6570\u636e\u7c7b\u578b&#xff0c;\u4e0d\u652f\u6301\u6301\u4e45\u5316&#xff0c;\u57fa\u4e8e<\/span><span style=\"color:#333333\">Key-Value<\/span><span style=\"color:#333333\">\u7684\u5185\u5b58\u7f13\u5b58\u7cfb\u7edf<\/span><span style=\"color:#333333\">memcached \u867d\u7136\u6ca1\u6709\u50cfredis<\/span><span style=\"color:#333333\">\u6240\u5177\u5907\u7684\u6570\u636e\u6301\u4e45\u5316\u529f\u80fd&#xff0c;\u6bd4\u5982<\/span><span style=\"color:#333333\">RDB<\/span><span style=\"color:#333333\">\u548c<\/span><span style=\"color:#333333\">AOF<\/span><span style=\"color:#333333\">\u90fd\u6ca1\u6709&#xff0c;\u4f46\u662f\u53ef\u4ee5\u901a\u8fc7\u505a\u96c6\u7fa4\u540c\u6b65\u7684\u65b9\u5f0f&#xff0c;\u8ba9\u5404memcached<\/span><span style=\"color:#333333\">\u670d\u52a1\u5668\u7684\u6570\u636e\u8fdb\u884c\u540c\u6b65&#xff0c;\u4ece\u800c\u5b9e\u73b0\u6570\u636e\u7684\u4e00\u81f4\u6027&#xff0c;\u5373\u4fdd\u8bc1\u5404<\/span><span style=\"color:#333333\">memcached<\/span><span style=\"color:#333333\">\u7684\u6570\u636e\u662f\u4e00\u6837 \u7684&#xff0c;\u5373\u4f7f\u6709\u4efb\u4f55\u4e00\u53f0 memcached <\/span><span style=\"color:#333333\">\u53d1\u751f\u6545\u969c&#xff0c;\u53ea\u8981\u96c6\u7fa4\u4e2d\u6709\u4e00\u53f0<\/span><span style=\"color:#333333\"> memcached <\/span><span style=\"color:#333333\">\u53ef\u7528\u5c31\u4e0d\u4f1a\u51fa\u73b0\u6570\u636e\u4e22 \u5931\u5f53\u5176\u4ed6memcached <\/span><span style=\"color:#333333\">\u91cd\u65b0\u52a0\u5165\u5230\u96c6\u7fa4\u7684\u65f6\u5019<\/span><span style=\"color:#333333\">,<\/span><span style=\"color:#333333\">\u53ef\u4ee5\u81ea\u52a8\u4ece\u6709\u6570\u636e\u7684<\/span><span style=\"color:#333333\">memcached <\/span><span style=\"color:#333333\">\u5f53\u4e2d\u81ea\u52a8\u83b7\u53d6\u6570\u636e\u5e76\u63d0\u4f9b\u670d\u52a1\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">Memcached <\/span><span style=\"color:#333333\">\u501f\u52a9\u4e86\u64cd\u4f5c\u7cfb\u7edf\u7684<\/span><span style=\"color:#333333\"> libevent <\/span><span style=\"color:#333333\">\u5de5\u5177\u505a\u9ad8\u6548\u7684\u8bfb\u5199\u3002<\/span><span style=\"color:#333333\">libevent<\/span><span style=\"color:#333333\">\u662f\u4e2a\u7a0b\u5e8f\u5e93&#xff0c;\u5b83\u5c06<\/span><span style=\"color:#333333\">Linux<\/span><span style=\"color:#333333\">\u7684<\/span><span style=\"color:#333333\">epoll<\/span><span style=\"color:#333333\">\u3001 BSD\u7c7b\u64cd\u4f5c\u7cfb\u7edf\u7684<\/span><span style=\"color:#333333\">kqueue<\/span><span style=\"color:#333333\">\u7b49\u4e8b\u4ef6\u5904\u7406\u529f\u80fd\u5c01\u88c5\u6210\u7edf\u4e00\u7684\u63a5\u53e3\u3002\u5373\u4f7f\u5bf9\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6570\u589e\u52a0&#xff0c;\u4e5f\u80fd\u53d1\u6325\u9ad8\u6027\u80fd\u3002memcached<\/span><span style=\"color:#333333\">\u4f7f\u7528\u8fd9\u4e2a<\/span><span style=\"color:#333333\">libevent<\/span><span style=\"color:#333333\">\u5e93&#xff0c;\u56e0\u6b64\u80fd\u5728<\/span><span style=\"color:#333333\">Linux<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">BSD<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">Solaris<\/span><span style=\"color:#333333\">\u7b49\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53d1\u6325\u5176\u9ad8\u6027\u80fd <\/span><\/p>\n<p><span style=\"color:#333333\">Memcached <\/span><span style=\"color:#333333\">\u652f\u6301\u6700\u5927\u7684\u5185\u5b58\u5b58\u50a8\u5bf9\u8c61\u4e3a<\/span><span style=\"color:#333333\">1M<\/span><span style=\"color:#333333\">&#xff0c;\u8d85\u8fc7<\/span><span style=\"color:#333333\">1M<\/span><span style=\"color:#333333\">\u7684\u6570\u636e\u53ef\u4ee5\u4f7f\u7528\u5ba2\u6237\u7aef\u538b\u7f29\u6216\u62c6\u5206\u62a5\u5305\u653e\u5230\u591a\u4e2a <\/span><\/p>\n<p><span style=\"color:#333333\">key<\/span><span style=\"color:#333333\">\u4e2d&#xff0c;\u6bd4\u8f83\u5927\u7684\u6570\u636e\u5728\u8fdb\u884c\u8bfb\u53d6\u7684\u65f6\u5019\u9700\u8981\u6d88\u8017\u7684\u65f6\u95f4\u6bd4\u8f83\u957f&#xff0c;<\/span><span style=\"color:#333333\">memcached <\/span><span style=\"color:#333333\">\u6700\u9002\u5408\u4fdd\u5b58\u7528\u6237\u7684 <\/span><\/p>\n<p><span style=\"color:#333333\">session<\/span><span style=\"color:#333333\">\u5b9e\u73b0<\/span><span style=\"color:#333333\">session<\/span><span style=\"color:#333333\">\u5171\u4eab Memcached\u5b58\u50a8\u6570\u636e\u65f6<\/span><span style=\"color:#333333\">, Memcached<\/span><span style=\"color:#333333\">\u4f1a\u53bb\u7533\u8bf7<\/span><span style=\"color:#333333\">1MB<\/span><span style=\"color:#333333\">\u7684\u5185\u5b58<\/span><span style=\"color:#333333\">, <\/span><span style=\"color:#333333\">\u628a\u8be5\u5757\u5185\u5b58\u79f0\u4e3a\u4e00\u4e2a<\/span><span style=\"color:#333333\">slab, <\/span><span style=\"color:#333333\">\u4e5f\u79f0\u4e3a\u4e00\u4e2a<\/span><span style=\"color:#333333\">page Memcached \u652f\u6301\u591a\u79cd\u5f00\u53d1\u8bed\u8a00&#xff0c;\u5305\u62ec&#xff1a;<\/span><span style=\"color:#333333\">JAVA,C,Python,PHP,C#,Ruby,Perl<\/span><span style=\"color:#333333\">\u7b49 <\/span><\/p>\n<p><span style=\"color:#333333\">Memcached <\/span><span style=\"color:#333333\">\u5b98\u7f51&#xff1a;<\/span><span style=\"color:#4183c4\">http:\/\/memcached.org\/<\/span><\/p>\n<h3><span style=\"color:#333333\">5.2 memcached<\/span><span style=\"color:#333333\">\u7684\u5b89\u88c5\u4e0e\u542f\u52a8<\/span><\/h3>\n<p>[root&#064;tomcat ~]# yum install memcached -y<br \/>\n[root&#064;tomcat ~]# vim \/etc\/sysconfig\/memcached<br \/>\nPORT&#061;&#034;11211&#034;<br \/>\nUSER&#061;&#034;memcached&#034;<br \/>\nMAXCONN&#061;&#034;1024&#034;<br \/>\nCACHESIZE&#061;&#034;64&#034;<br \/>\nOPTIONS&#061;&#034;-l 0.0.0.0,::1&#034;<br \/>\n[root&#064;tomcat ~]# systemctl enable &#8211;now memcached<br \/>\n[root&#064;tomcat ~]# netstat -antlupe | grep memcache<br \/>\ntcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN<br \/>\n980 97815 34711\/memcached<\/p>\n<p><span style=\"color:#333333\">5.3 memcached <\/span><span style=\"color:#333333\">\u64cd\u4f5c\u547d\u4ee4<\/span><\/p>\n<p><span style=\"color:#333333\">\u4e94\u79cd\u57fa\u672c<\/span><span style=\"color:#333333\"> memcached <\/span><span style=\"color:#333333\">\u547d\u4ee4\u6267\u884c\u6700\u7b80\u5355\u7684\u64cd\u4f5c\u3002\u8fd9\u4e9b\u547d\u4ee4\u548c\u64cd\u4f5c\u5305\u62ec&#xff1a; <\/span><\/p>\n<p><span style=\"color:#333333\">set <\/span><\/p>\n<p><span style=\"color:#333333\">add <\/span><\/p>\n<p><span style=\"color:#333333\">replace <\/span><\/p>\n<p><span style=\"color:#333333\">get <\/span><\/p>\n<p><span style=\"color:#333333\">delete<\/span><\/p>\n<p>#\u524d\u4e09\u4e2a\u547d\u4ee4\u662f\u7528\u4e8e\u64cd\u4f5c\u5b58\u50a8\u5728 memcached \u4e2d\u7684\u952e\u503c\u5bf9\u7684\u6807\u51c6\u4fee\u6539\u547d\u4ee4,\u90fd\u4f7f\u7528\u5982\u4e0b\u6240\u793a\u7684\u8bed\u6cd5&#xff1a;<br \/>\ncommand &lt;key&gt; &lt;flags&gt; &lt;expiration time&gt; &lt;bytes&gt;<br \/>\n&lt;value&gt;<br \/>\n#\u53c2\u6570\u8bf4\u660e\u5982\u4e0b&#xff1a;<br \/>\ncommand set\/add\/replace<br \/>\nkey key \u7528\u4e8e\u67e5\u627e\u7f13\u5b58\u503c<br \/>\nflags \u53ef\u4ee5\u5305\u62ec\u952e\u503c\u5bf9\u7684\u6574\u578b\u53c2\u6570&#xff0c;\u5ba2\u6237\u673a\u4f7f\u7528\u5b83\u5b58\u50a8\u5173\u4e8e\u952e\u503c\u5bf9\u7684\u989d\u5916\u4fe1\u606f<br \/>\nexpiration time \u5728\u7f13\u5b58\u4e2d\u4fdd\u5b58\u952e\u503c\u5bf9\u7684\u65f6\u95f4\u957f\u5ea6&#xff08;\u4ee5\u79d2\u4e3a\u5355\u4f4d&#xff0c;0 \u8868\u793a\u6c38\u8fdc&#xff09;<br \/>\nbytes \u5728\u7f13\u5b58\u4e2d\u5b58\u50a8\u7684\u5b57\u8282\u6570<br \/>\nvalue \u5b58\u50a8\u7684\u503c&#xff08;\u59cb\u7ec8\u4f4d\u4e8e\u7b2c\u4e8c\u884c&#xff09;<br \/>\n#\u589e\u52a0key&#xff0c;\u8fc7\u671f\u65f6\u95f4\u4e3a\u79d2&#xff0c;bytes\u4e3a\u5b58\u50a8\u6570\u636e\u7684\u5b57\u8282\u6570<br \/>\nadd key flags exptime bytes<\/p>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>[root&#064;tomcat ~]# telnet localhost 11211<br \/>\nTrying ::1&#8230;<br \/>\nConnected to localhost.<br \/>\nEscape character is &#039;^]&#039;.<br \/>\n#\u589e\u52a0<br \/>\nadd leekey 0 60 4 #0 \u662f\u5426\u538b\u7f29 60 \u8fc7\u671f\u65f6\u95f4 4 \u5b57\u957f<br \/>\ntest<br \/>\nSTORED<br \/>\nadd leekey1 0 60 3<br \/>\nlee<br \/>\nSTORED<br \/>\n#\u67e5\u770b<br \/>\nget leekey<br \/>\nVALUE leekey 0 4<br \/>\ntest<br \/>\nget leekey1<br \/>\nVALUE leekey1 0 3<br \/>\nlee<br \/>\n#\u6539<br \/>\nset leekey 0 60 5<br \/>\ntest1<br \/>\nSTORED<br \/>\nget leekey<br \/>\nVALUE leekey 0 5<br \/>\ntest1<br \/>\nEND<br \/>\nadd leekey1 0 60 4<br \/>\ntest<br \/>\n#\u5220\u9664<br \/>\ndelete leekey<br \/>\nDELETED<br \/>\nget leekey<br \/>\nEND<\/p>\n<p>get leekey1<br \/>\nVALUE leekey1 0 3<br \/>\nlee<br \/>\n#\u6e05\u7a7a<br \/>\nflush_all<br \/>\nOK<br \/>\nget leekey1<br \/>\nEND<\/p>\n<h2><span style=\"color:#333333\">\u516d<\/span><span style=\"color:#333333\"> session <\/span><span style=\"color:#333333\">\u5171\u4eab\u670d\u52a1\u5668<\/span><\/h2>\n<h3><span style=\"color:#333333\">6.1 msm <\/span><span style=\"color:#333333\">\u4ecb\u7ecd<\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"334\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232054-689fc0d65e5f3.png\" width=\"949\" \/><\/p>\n<p><span style=\"color:#333333\">msm<\/span><span style=\"color:#333333\">&#xff08;<\/span><span style=\"color:#333333\">memcached session manager<\/span><span style=\"color:#333333\">&#xff09;\u63d0\u4f9b\u5c06<\/span><span style=\"color:#333333\">Tomcat<\/span><span style=\"color:#333333\">\u7684<\/span><span style=\"color:#333333\">session<\/span><span style=\"color:#333333\">\u4fdd\u6301\u5230<\/span><span style=\"color:#333333\">memcached<\/span><span style=\"color:#333333\">\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u53ef\u7528\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u9879\u76ee\u65e9\u671f\u6258\u7ba1\u5728<\/span><span style=\"color:#333333\">google code,<\/span><span style=\"color:#333333\">\u76ee\u524d\u5728<\/span><span style=\"color:#333333\">Github <\/span><\/p>\n<p><span style=\"color:#333333\">github<\/span><span style=\"color:#333333\">\u7f51\u7ad9\u94fe\u63a5<\/span><span style=\"color:#333333\">: <\/span><span style=\"color:#4183c4\">https:\/\/github.com\/magro\/memcached-session-manager <\/span><\/p>\n<p><span style=\"color:#333333\">\u652f\u6301<\/span><span style=\"color:#333333\">Tomcat<\/span><span style=\"color:#333333\">\u7684<\/span><span style=\"color:#333333\"> 6.x<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">7.x<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">8.x<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">9.x <\/span><\/p>\n<p><span style=\"color:#333333\">Tomcat<\/span><span style=\"color:#333333\">\u7684<\/span><span style=\"color:#333333\">Session<\/span><span style=\"color:#333333\">\u7ba1\u7406\u7c7b&#xff0c;<\/span><span style=\"color:#333333\">Tomcat<\/span><span style=\"color:#333333\">\u7248\u672c\u4e0d\u540c <\/span><\/p>\n<p><span style=\"color:#333333\">memcached-session-manager-2.3.2.jar <\/span><\/p>\n<p><span style=\"color:#333333\">memcached-session-manager-tc9-2.3.2.jar <\/span><\/p>\n<p><span style=\"color:#333333\">Session<\/span><span style=\"color:#333333\">\u6570\u636e\u7684\u5e8f\u5217\u5316\u3001\u53cd\u5e8f\u5217\u5316\u7c7b <\/span><\/p>\n<p><span style=\"color:#333333\">\u5b98\u65b9\u63a8\u8350<\/span><span style=\"color:#333333\">kyro <\/span><\/p>\n<p><span style=\"color:#333333\">\u5728<\/span><span style=\"color:#333333\">webapp<\/span><span style=\"color:#333333\">\u4e2d<\/span><span style=\"color:#333333\">WEB-INF\/lib\/<\/span><span style=\"color:#333333\">\u4e0b <\/span><\/p>\n<p><span style=\"color:#333333\">\u9a71\u52a8\u7c7b <\/span><\/p>\n<p><span style=\"color:#333333\">memcached(spymemcached.jar) <\/span><\/p>\n<p><span style=\"color:#333333\">Redis(jedis.jar)<\/span><\/p>\n<h3><span style=\"color:#333333\">6.2 <\/span><span style=\"color:#333333\">\u5b89\u88c5<\/span><\/h3>\n<p><span style=\"color:#333333\">\u53c2\u8003\u94fe\u63a5<\/span><span style=\"color:#333333\">: <\/span><span style=\"color:#4183c4\">https:\/\/github.com\/magro\/memcached-session-manager\/wiki\/SetupAndConfiguration <\/span><\/p>\n<p><span style=\"color:#333333\">\u5c06<\/span><span style=\"color:#333333\">spymemcached.jar<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">memcached-session-manage<\/span><span style=\"color:#333333\">\u3001<\/span><span style=\"color:#333333\">kyro<\/span><span style=\"color:#333333\">\u76f8\u5173\u7684<\/span><span style=\"color:#333333\">jar<\/span><span style=\"color:#333333\">\u6587\u4ef6\u90fd\u653e\u5230<\/span><span style=\"color:#333333\">Tomcat<\/span><span style=\"color:#333333\">\u7684<\/span><span style=\"color:#333333\">lib<\/span><span style=\"color:#333333\">\u76ee\u5f55 <\/span><\/p>\n<p><span style=\"color:#333333\">\u4e2d&#xff0c;\u8fd9\u4e2a\u76ee\u5f55\u662f<\/span><span style=\"color:#333333\"> $CATALINA_HOME\/lib\/ <\/span><span style=\"color:#333333\">&#xff0c;\u5bf9\u5e94\u672c\u6b21\u5b89\u88c5\u5c31\u662f<\/span><span style=\"color:#333333\">\/usr\/local\/tomcat\/lib<\/span><span style=\"color:#333333\">\u3002<\/span><\/p>\n<p>kryo-3.0.3.jar<br \/>\nasm-5.2.jar<br \/>\nobjenesis-2.6.jar<br \/>\nreflectasm-1.11.9.jar<br \/>\nminlog-1.3.1.jar<br \/>\nkryo-serializers-0.45.jar<br \/>\nmsm-kryo-serializer-2.3.2.jar<br \/>\nmemcached-session-manager-tc9-2.3.2.jar<br \/>\nspymemcached-2.12.3.jar<br \/>\nmemcached-session-manager-2.3.2.jar<\/p>\n<p><span style=\"color:#333333\">t1<\/span><span style=\"color:#333333\">\u548c<\/span><span style=\"color:#333333\">m1<\/span><span style=\"color:#333333\">\u90e8\u7f72\u53ef\u4ee5\u5728\u4e00\u53f0\u4e3b\u673a\u4e0a&#xff0c;<\/span><span style=\"color:#333333\">t2<\/span><span style=\"color:#333333\">\u548c<\/span><span style=\"color:#333333\">m2<\/span><span style=\"color:#333333\">\u90e8\u7f72\u4e5f\u53ef\u4ee5\u5728\u540c\u4e00\u53f0\u3002 <\/span><\/p>\n<p><span style=\"color:#333333\">\u5f53\u65b0\u7528\u6237\u53d1\u8bf7\u6c42\u5230<\/span><span style=\"color:#333333\">Tomcat1<\/span><span style=\"color:#333333\">\u65f6<\/span><span style=\"color:#333333\">, Tomcat1<\/span><span style=\"color:#333333\">\u751f\u6210<\/span><span style=\"color:#333333\">session<\/span><span style=\"color:#333333\">\u8fd4\u56de\u7ed9\u7528\u6237\u7684\u540c\u65f6<\/span><span style=\"color:#333333\">,<\/span><span style=\"color:#333333\">\u4e5f\u4f1a\u540c\u65f6\u53d1\u7ed9<\/span><span style=\"color:#333333\">memcached2<\/span><span style=\"color:#333333\">\u5907 \u4efd\u3002\u5373Tomcat1 session<\/span><span style=\"color:#333333\">\u4e3a\u4e3b<\/span><span style=\"color:#333333\">session<\/span><span style=\"color:#333333\">&#xff0c;<\/span><span style=\"color:#333333\">memcached2 session<\/span><span style=\"color:#333333\">\u4e3a\u5907\u7528<\/span><span style=\"color:#333333\">session<\/span><span style=\"color:#333333\">&#xff0c;\u4f7f\u7528<\/span><span style=\"color:#333333\">memcached<\/span><span style=\"color:#333333\">\u76f8\u5f53\u4e8e\u5907\u4efd\u4e86\u4e00\u4efdSession \u5982\u679cTomcat1<\/span><span style=\"color:#333333\">\u53d1\u73b0<\/span><span style=\"color:#333333\">memcached2 <\/span><span style=\"color:#333333\">\u5931\u8d25<\/span><span style=\"color:#333333\">,<\/span><span style=\"color:#333333\">\u65e0\u6cd5\u5907\u4efd<\/span><span style=\"color:#333333\">Session<\/span><span style=\"color:#333333\">\u5230<\/span><span style=\"color:#333333\">memcached2,<\/span><span style=\"color:#333333\">\u5219\u5c06<\/span><span style=\"color:#333333\">Sessoin<\/span><span style=\"color:#333333\">\u5907\u4efd\u5b58\u653e\u5728memcached1\u4e2d<\/span><\/p>\n<h3><span style=\"color:#333333\">6.3 <\/span><span style=\"color:#333333\">\u914d\u7f6e\u8fc7\u7a0b<\/span><\/h3>\n<p><span style=\"color:#333333\">\u4e0b\u8f7d\u76f8\u5173<\/span><span style=\"color:#333333\">jar<\/span><span style=\"color:#333333\">\u5305<\/span><span style=\"color:#333333\">,<\/span><span style=\"color:#333333\">\u53c2\u8003\u4e0b\u9762\u5b98\u65b9\u8bf4\u660e\u7684\u4e0b\u8f7d\u94fe\u63a5 <\/span><\/p>\n<p><span style=\"color:#4183c4\">https:\/\/github.com\/magro\/memcached-session-manager\/wiki\/SetupAndConfiguration<\/span><\/p>\n<p><span style=\"color:#333333\">\u4fee\u6539<\/span><span style=\"color:#333333\">tomcat<\/span><span style=\"color:#333333\">\u914d\u7f6e<\/span><\/p>\n<p>vim \/usr\/local\/tomcat\/conf\/context.xml<br \/>\n    &lt;!&#8211; Uncomment this to disable session persistence across Tomcat restarts &#8211;&gt;<br \/>\n    &lt;!&#8211;<br \/>\n    &lt;Manager pathname&#061;&#034;&#034; \/&gt;<br \/>\n    &#8211;&gt;<br \/>\n    &lt;Manager className&#061;&#034;de.javakaffee.web.msm.MemcachedBackupSessionManager&#034;<br \/>\n             memcachedNodes&#061;&#034;m1:172.25.254.10:11211,m2:172.25.254.20:11211&#034;<br \/>\n             failoverNodes&#061;&#034;m1&#034;<br \/>\n             requestUriIgnorePattern&#061;&#034;.*\\\\.(ico|png|gif|jpg|css|js)$&#034;<br \/>\n             transcoderFactoryClass&#061;&#034;de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory&#034;<br \/>\n     \/&gt;<br \/>\n&lt;\/Context&gt;<br \/>\n~                               <\/p>\n<p><span style=\"color:#333333\">\u4fee\u6539<\/span><span style=\"color:#333333\">nginx<\/span><span style=\"color:#333333\">\u914d\u7f6e<\/span><\/p>\n<p>[root&#064;Nginx ~]# vim \/usr\/local\/nginx\/conf.d\/vhosts.conf<br \/>\nupstream tomcat {<br \/>\nhash $cookie_JSESSIONID;<br \/>\nserver 172.25.254.10:8080;<br \/>\nserver 172.25.254.20:8080;<br \/>\n}<br \/>\nserver {<br \/>\nlisten 80;<br \/>\nserver_name lee.timinglee.org;<br \/>\nroot \/webdataw\/nginx\/timinglee.org\/lee;<br \/>\naccess_log \/var\/log\/nginx\/access.log;<br \/>\nerror_log \/var\/log\/nginx\/error.log;<br \/>\ntry_files $uri $uri.html $uri\/index.html \/error\/default.html;<br \/>\nlocation ~ \\\\.jsp$ {<br \/>\nproxy_pass http:\/\/tomcat;<br \/>\n}<br \/>\n}<\/p>\n<p>\u6d4b\u8bd5\u5982\u4e0b\u56fe&#xff1a;<\/p>\n<p>\u5047\u8bbe10\u7a81\u7136\u6389\u7ebf 20\u4f9d\u7136\u4f1a\u6709\u572810\u4e0a\u7684\u6570\u636e<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"319\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232055-689fc0d711c3c.png\" width=\"587\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"361\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232056-689fc0d808852.png\" width=\"591\" \/><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb687\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf27\u6b21\u3002\u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\u4e86WEB\u6280\u672f\u53d1\u5c55\u5386\u7a0b\u3001Tomcat\u5e94\u7528\u90e8\u7f72\u53caMemcached\u5b9e\u73b0Session\u5171\u4eab\u7684\u65b9\u6848\u3002\u6587\u7ae0\u9996\u5148\u56de\u987e\u4e86WEB\u6280\u672f\u6f14\u8fdb\uff0c\u4eceHTTP\u534f\u8bae\u3001B\/S\u67b6\u6784\u5230\u524d\u7aef\u4e09\u5927\u6838\u5fc3\u6280\u672f\uff08HTML\u3001CSS\u3001JavaScript\uff09\u7684\u53d1\u5c55\u8fc7\u7a0b\u3002\u968f\u540e\u8be6\u7ec6\u8bb2\u89e3\u4e86Tomcat\u670d\u52a1\u5668\u7684\u5b89\u88c5\u914d\u7f6e\u3001\u6587\u4ef6\u7ed3\u6784\u53ca\u591a\u79cd\u90e8\u7f72\u65b9\u5f0f\uff0c\u91cd\u70b9\u4ecb\u7ecd\u4e86\u901a\u8fc7Nginx\u53cd\u5411\u4ee3\u7406\u5b9e\u73b0Tomcat\u8d1f\u8f7d\u5747\u8861\u7684\u65b9\u6848\u3002\u6700\u540e\u9610\u8ff0\u4e86\u5229\u7528Memcached\u548cmsm\uff08memcached session manager\uff09\u5b9e\u73b0\u5206\u5e03\u5f0fSession\u5171\u4eab\u7684\u5177\u4f53\u65b9\u6cd5\uff0c\u5305\u62ecjar\u5305\u914d<\/p>\n","protected":false},"author":2,"featured_media":58260,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-58273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"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\/58273.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\u8bfb687\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf27\u6b21\u3002\u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\u4e86WEB\u6280\u672f\u53d1\u5c55\u5386\u7a0b\u3001Tomcat\u5e94\u7528\u90e8\u7f72\u53caMemcached\u5b9e\u73b0Session\u5171\u4eab\u7684\u65b9\u6848\u3002\u6587\u7ae0\u9996\u5148\u56de\u987e\u4e86WEB\u6280\u672f\u6f14\u8fdb\uff0c\u4eceHTTP\u534f\u8bae\u3001B\/S\u67b6\u6784\u5230\u524d\u7aef\u4e09\u5927\u6838\u5fc3\u6280\u672f\uff08HTML\u3001CSS\u3001JavaScript\uff09\u7684\u53d1\u5c55\u8fc7\u7a0b\u3002\u968f\u540e\u8be6\u7ec6\u8bb2\u89e3\u4e86Tomcat\u670d\u52a1\u5668\u7684\u5b89\u88c5\u914d\u7f6e\u3001\u6587\u4ef6\u7ed3\u6784\u53ca\u591a\u79cd\u90e8\u7f72\u65b9\u5f0f\uff0c\u91cd\u70b9\u4ecb\u7ecd\u4e86\u901a\u8fc7Nginx\u53cd\u5411\u4ee3\u7406\u5b9e\u73b0Tomcat\u8d1f\u8f7d\u5747\u8861\u7684\u65b9\u6848\u3002\u6700\u540e\u9610\u8ff0\u4e86\u5229\u7528Memcached\u548cmsm\uff08memcached session manager\uff09\u5b9e\u73b0\u5206\u5e03\u5f0fSession\u5171\u4eab\u7684\u5177\u4f53\u65b9\u6cd5\uff0c\u5305\u62ecjar\u5305\u914d\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/58273.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-15T23:20:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232036-689fc0c4db653.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=\"10 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/58273.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/58273.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-15T23:20:58+00:00\",\"dateModified\":\"2025-08-15T23:20:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/58273.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/58273.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/58273.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\/58273.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\u8bfb687\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf27\u6b21\u3002\u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\u4e86WEB\u6280\u672f\u53d1\u5c55\u5386\u7a0b\u3001Tomcat\u5e94\u7528\u90e8\u7f72\u53caMemcached\u5b9e\u73b0Session\u5171\u4eab\u7684\u65b9\u6848\u3002\u6587\u7ae0\u9996\u5148\u56de\u987e\u4e86WEB\u6280\u672f\u6f14\u8fdb\uff0c\u4eceHTTP\u534f\u8bae\u3001B\/S\u67b6\u6784\u5230\u524d\u7aef\u4e09\u5927\u6838\u5fc3\u6280\u672f\uff08HTML\u3001CSS\u3001JavaScript\uff09\u7684\u53d1\u5c55\u8fc7\u7a0b\u3002\u968f\u540e\u8be6\u7ec6\u8bb2\u89e3\u4e86Tomcat\u670d\u52a1\u5668\u7684\u5b89\u88c5\u914d\u7f6e\u3001\u6587\u4ef6\u7ed3\u6784\u53ca\u591a\u79cd\u90e8\u7f72\u65b9\u5f0f\uff0c\u91cd\u70b9\u4ecb\u7ecd\u4e86\u901a\u8fc7Nginx\u53cd\u5411\u4ee3\u7406\u5b9e\u73b0Tomcat\u8d1f\u8f7d\u5747\u8861\u7684\u65b9\u6848\u3002\u6700\u540e\u9610\u8ff0\u4e86\u5229\u7528Memcached\u548cmsm\uff08memcached session manager\uff09\u5b9e\u73b0\u5206\u5e03\u5f0fSession\u5171\u4eab\u7684\u5177\u4f53\u65b9\u6cd5\uff0c\u5305\u62ecjar\u5305\u914d","og_url":"https:\/\/www.wsisp.com\/helps\/58273.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-15T23:20:58+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815232036-689fc0c4db653.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"10 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/58273.html","url":"https:\/\/www.wsisp.com\/helps\/58273.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-15T23:20:58+00:00","dateModified":"2025-08-15T23:20:58+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/58273.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/58273.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/58273.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\/58273","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=58273"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/58273\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/58260"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=58273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=58273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=58273"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=58273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}