{"id":54504,"date":"2025-08-13T07:31:28","date_gmt":"2025-08-12T23:31:28","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/54504.html"},"modified":"2025-08-13T07:31:28","modified_gmt":"2025-08-12T23:31:28","slug":"%e4%bc%81%e4%b8%9a%e7%ba%a7web%e5%ba%94%e7%94%a8%e6%9c%8d%e5%8a%a1%e5%99%a8-tomcat","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/54504.html","title":{"rendered":"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668--tomcat"},"content":{"rendered":"<h2 style=\"background-color:transparent\">\u4e00 WEB\u6280\u672f<\/h2>\n<h3>HTTP\u534f\u8bae\u548cB\/S \u7ed3\u6784<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u64cd\u4f5c\u7cfb\u7edf\u901a\u8fc7\u591a\u8fdb\u7a0b\u548c\u591a\u7ebf\u7a0b\u673a\u5236\u5145\u5206\u5229\u7528\u786c\u4ef6\u8d44\u6e90&#xff0c;\u8fdb\u7a0b\u95f4\u53ef\u901a\u8fc7\u7f51\u7edc\u7f16\u7a0b\u8fdb\u884c\u901a\u4fe1\u3002\u5e38\u89c1\u7684\u7f51\u7edc\u7f16\u7a0b\u63a5\u53e3\u662fSocket&#xff0c;\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u7aef\u901a\u5e38\u4f4d\u4e8e\u4e0d\u540c\u7684\u7269\u7406\u4e3b\u673a&#xff0c;\u670d\u52a1\u7aef\u901a\u8fc7Socket\u63a5\u6536\u8bf7\u6c42\u5e76\u63d0\u4f9b\u8ba1\u7b97\u6216\u6570\u636e&#xff0c;\u6784\u6210Client\/Server&#xff08;C\/S&#xff09;\u7f16\u7a0b\u6a21\u5f0f\u3002<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01990\u5e74&#xff0c;HTTP\u534f\u8bae\u548c\u6d4f\u89c8\u5668\u7684\u8bde\u751f\u4fc3\u6210\u4e86\u7f51\u9875\u5f00\u53d1\u7684\u5174\u8d77\u3002\u7f51\u9875\u5b58\u50a8\u5728WEB\u670d\u52a1\u5668\u7aef&#xff0c;\u6d4f\u89c8\u5668\u901a\u8fc7HTTP\u8bf7\u6c42\u83b7\u53d6HTML\u6587\u4ef6&#xff0c;\u5e76\u6e32\u67d3\u663e\u793a\u5185\u5bb9\u3002\u6700\u521d&#xff0c;\u7f51\u9875\u5f00\u53d1\u6d89\u53caHTML\u3001CSS&#xff0c;\u76ee\u6807\u662f\u5c55\u793a\u9759\u6001\u5185\u5bb9\u3002<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u968f\u7740\u52a8\u6001\u7f51\u9875\u9700\u6c42\u7684\u589e\u52a0&#xff0c;JavaScript\u8bed\u8a00\u88ab\u5f15\u5165\u4f7f\u7f51\u9875\u5143\u7d20\u52a8\u6001\u53d8\u5316\u3002\u968f\u540e&#xff0c;CGI&#xff08;\u901a\u7528\u7f51\u5173\u63a5\u53e3&#xff09;\u6280\u672f\u5b9e\u73b0\u4e86\u6d4f\u89c8\u5668\u4e0e\u670d\u52a1\u5668\u7aef\u811a\u672c\u7684\u4ea4\u4e92&#xff0c;\u4f7f\u5f97\u7f51\u9875\u5185\u5bb9\u80fd\u591f\u52a8\u6001\u751f\u6210\u3002\u6b64\u540e&#xff0c;ASP\u3001PHP\u3001JSP\u7b49\u6280\u672f\u51fa\u73b0&#xff0c;\u63a8\u52a8\u4e86WEB\u540e\u7aef\u7f16\u7a0b\u7684\u53d1\u5c55&#xff0c;\u800cHTML\u3001CSS\u3001JavaScript\u4ecd\u7528\u4e8e\u524d\u7aef\u7f16\u7a0b&#xff0c;\u6784\u6210\u4e86Browser\/Server&#xff08;B\/S&#xff09;\u7f16\u7a0b\u6a21\u5f0f\u3002<\/p>\n<h3>\u524d\u7aef\u4e09\u5927\u6838\u5fc3\u6280\u672f<\/h3>\n<h4>HTML<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0HTML&#xff08;HyperText Markup Language&#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<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0HTML\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\u6587\u4ef6&#xff0c;\u662f\u7531\u683c\u5f0f\u6807\u7b7e\u548c\u6570\u636e\u7ec4\u6210\u3002<\/p>\n<h4>CSS&#xff08;Cascading Style Sheets&#xff09;\u5c42\u53e0\u6837\u5f0f\u8868<\/h4>\n<p>HTML\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\u6c42HTML\u63d0\u4f9b\u66f4\u591a\u6837\u5f0f\u80fd\u529b\u3002\u8fd9\u4f7f \u5f97HTML\u53d8\u5f97\u8d8a\u6765\u8d8a\u81c3\u80bf\u3002\u8fd9\u4fc3\u4f7f\u4e86CSS\u7684\u8bde\u751f\u3002<\/p>\n<p>1994\u5e74&#xff0c;W3C\u6210\u7acb&#xff0c;CSS\u8bbe\u8ba1\u5c0f\u7ec4\u6240\u6709\u6210\u5458\u52a0\u5165W3C&#xff0c;\u5e76\u52aa\u529b\u7814\u53d1CSS\u7684\u6807\u51c6&#xff0c;\u5fae\u8f6f\u6700\u7ec8\u52a0\u5165\u3002<\/p>\n<p>1996\u5e7412\u6708\u53d1\u5e03CSS 1.0\u3002<\/p>\n<p>1998\u5e745\u6708\u53d1\u5e03CSS 2.0 CSS 3\u91c7\u7528\u4e86\u6a21\u5757\u5316\u601d\u60f3&#xff0c;\u6bcf\u4e2a\u6a21\u5757\u90fd\u5728CSS 2\u57fa\u7840\u4e0a\u5206\u522b\u589e\u5f3a\u529f\u80fd\u3002\u6240\u4ee5&#xff0c;\u8fd9\u4e9b\u6a21\u5757\u662f\u9646\u7eed\u53d1\u5e03\u7684\u3002<\/p>\n<p>\u4e0d\u540c\u5382\u5bb6\u7684\u6d4f\u89c8\u5668\u4f7f\u7528\u7684\u5f15\u64ce&#xff0c;\u5bf9CSS\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<\/p>\n<h4>JavaScript<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0JavaScript&#xff08;JS&#xff09;\u662f\u4e00\u79cd\u52a8\u6001\u3001\u5f31\u7c7b\u578b\u7684\u811a\u672c\u8bed\u8a00&#xff0c;\u4e0eHTML\u3001CSS\u5171\u540c\u6784\u6210WEB\u6838\u5fc3\u6280\u672f&#xff0c;\u5f97\u5230\u4e3b\u6d41\u6d4f\u89c8\u5668\u652f\u6301\u30021995\u5e74&#xff0c;\u7f51\u666f\u516c\u53f8\u53d1\u5e03\u4e86LiveScript&#xff0c;\u540e\u66f4\u540d\u4e3aJavaScript&#xff0c;\u5e76\u4e0e\u5fae\u8f6f\u7684JScript\u7ade\u4e89\u30021997\u5e74&#xff0c;ECMA\u5236\u5b9a\u4e86JavaScript\u7684\u6807\u51c6ECMAScript\u30022008\u5e74&#xff0c;Chrome\u6d4f\u89c8\u5668\u53d1\u5e03V8\u5f15\u64ce&#xff0c;\u901a\u8fc7\u672c\u5730\u7f16\u8bd1\u5927\u5e45\u63d0\u5347\u4e86JavaScript\u7684\u6027\u80fd\u30022009\u5e74&#xff0c;Node.js\u57fa\u4e8eV8\u5f15\u64ce\u8bde\u751f&#xff0c;\u5f00\u542f\u4e86\u670d\u52a1\u5668\u7aefJavaScript\u7f16\u7a0b&#xff0c;\u6210\u4e3a\u524d\u540e\u7aef\u901a\u7528\u8bed\u8a00\u3002<\/p>\n<p>\u540c\u6b65&#xff1a;\u5728\u4f20\u7edf\u7684\u4ea4\u4e92\u5f0f\u7f51\u9875\u4e2d&#xff0c;\u7528\u6237\u63d0\u4ea4\u8bf7\u6c42\u540e&#xff0c;\u9875\u9762\u4f1a\u5237\u65b0\u5e76\u91cd\u65b0\u6e32\u67d3&#xff0c;\u8fd4\u56de\u65b0\u7684\u9875\u9762\u5185\u5bb9&#xff0c;\u5bfc\u81f4\u8d44\u6e90\u6d6a\u8d39\u548c\u8f83\u5dee\u7684\u7528\u6237\u4f53\u9a8c\u3002<br \/>\n\u5f02\u6b65&#xff1a;1996\u5e74&#xff0c;\u5fae\u8f6f\u901a\u8fc7iframe\u5b9e\u73b0\u5c40\u90e8\u5f02\u6b65\u52a0\u8f7d\u30021999\u5e74\u63a8\u51faActiveX\u63d2\u4ef6&#xff0c;\u652f\u6301\u5f02\u6b65\u6570\u636e\u4f20\u8f93\u3002Ajax&#xff08;\u5f02\u6b65JavaScript\u548cXML&#xff09;\u6539\u53d8\u4e86\u7f51\u9875\u66f4\u65b0\u65b9\u5f0f&#xff0c;\u901a\u8fc7\u540e\u53f0\u4e0e\u670d\u52a1\u5668\u4ea4\u6362\u5c11\u91cf\u6570\u636e&#xff0c;\u65e0\u9700\u91cd\u65b0\u52a0\u8f7d\u6574\u4e2a\u9875\u9762\u3002Ajax\u4f7f\u7528XMLHttpRequest\u5b9e\u73b0\u5f02\u6b65\u66f4\u65b0&#xff0c;\u5e76\u63a8\u52a8\u4e86\u524d\u540e\u7aef\u5206\u79bb\u7684\u53d1\u5c55\u3002AJAX\u662f\u4e00\u79cd\u6280\u672f\u7ec4\u5408&#xff0c;\u6df1\u523b\u5f71\u54cd\u4e86WEB\u5f00\u53d1\u3002<\/p>\n<h2>\u4e8c WEB\u6846\u67b6<\/h2>\n<h3>web\u8d44\u6e90\u548c\u8bbf\u95ee<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"501\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233107-689bcebbe7601.png\" width=\"882\" \/><\/p>\n<p>\u4ece\u9759\u6001\u670d\u52a1\u5668\u8bf7\u6c42HTML\u3001CSS\u3001JS\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 \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.<\/p>\n<h3>\u540e\u53f0\u5e94\u7528\u67b6\u6784<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"504\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233108-689bcebc7af8b.png\" width=\"1463\" \/><\/p>\n<h4>\u5355\u4f53\u67b6\u6784<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4f20\u7edf\u67b6\u6784&#xff08;\u5355\u673a\u7cfb\u7edf&#xff09;\u5c06\u6240\u6709\u529f\u80fd\u6a21\u5757&#xff08;\u5982\u5546\u54c1\u3001\u8ba2\u5355\u3001\u652f\u4ed8\u7b49&#xff09;\u653e\u5165\u4e00\u4e2a\u5e94\u7528&#xff0c;\u7edf\u4e00\u90e8\u7f72\u5728\u5355\u53f0\u670d\u52a1\u5668\u4e0a&#xff0c;\u91c7\u7528\u201call in one\u201d\u67b6\u6784\u3002\u901a\u8fc7\u6c34\u5e73\u590d\u5236\u548c\u8d1f\u8f7d\u5747\u8861\u6269\u5c55\u5e94\u7528&#xff0c;\u4f7f\u7528Java\u7684JSP\u548cServlet\u6280\u672f\u6253\u5305\u6210jar\u6216war\u6587\u4ef6\u90e8\u7f72\u3002\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8fd9\u79cd\u67b6\u6784\u6613\u4e8e\u5f00\u53d1\u3001\u6d4b\u8bd5\u548c\u90e8\u7f72&#xff0c;\u4f46\u968f\u7740\u7cfb\u7edf\u89c4\u6a21\u589e\u5927&#xff0c;\u6a21\u5757\u95f4\u8026\u5408\u5ea6\u9ad8&#xff0c;\u529f\u80fd\u5347\u7ea7\u6216Bug\u4fee\u590d\u53ef\u80fd\u5bfc\u81f4\u5168\u7ad9\u505c\u8fd0&#xff0c;\u4e14\u7ba1\u7406\u96be\u5ea6\u589e\u52a0&#xff0c;\u4e0d\u9002\u5408\u5feb\u901f\u8fed\u4ee3\u7684\u4e92\u8054\u7f51\u4e1a\u52a1\u3002\u5bf9\u4e8e\u5927\u578b\u5e94\u7528&#xff0c;\u5206\u5de5\u534f\u4f5c\u548c\u7ef4\u62a4\u7ba1\u7406\u53d8\u5f97\u590d\u6742\u3002\u5e38\u89c1\u7684Web\u5e94\u7528\u670d\u52a1\u5668\u6709Tomcat\u3001Jetty\u3001Glassfish&#xff08;\u5f00\u6e90&#xff09;\u548cWebLogic\u3001WebSphere\u3001JBoss&#xff08;\u5546\u7528&#xff09;\u3002<\/p>\n<h4>\u5fae\u670d\u52a1<\/h4>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5fae\u670d\u52a1\u67b6\u6784\u662fSOA&#xff08;\u9762\u5411\u670d\u52a1\u67b6\u6784&#xff09;\u7684\u5b50\u96c6&#xff0c;\u5176\u6838\u5fc3\u662f\u5c06\u4f20\u7edf\u7684\u4e00\u7ad9\u5f0f\u5e94\u7528\u62c6\u5206\u4e3a\u72ec\u7acb\u7684\u670d\u52a1&#xff0c;\u6bcf\u4e2a\u670d\u52a1\u56f4\u7ed5\u7279\u5b9a\u4e1a\u52a1\u529f\u80fd\u6784\u5efa&#xff0c;\u51cf\u5c11\u8026\u5408\u5e76\u652f\u6301\u72ec\u7acb\u90e8\u7f72\u3002\u6bcf\u4e2a\u5fae\u670d\u52a1\u53ef\u4ee5\u72ec\u7acb\u542f\u52a8\u6216\u9500\u6bc1&#xff0c;\u901a\u5e38\u91c7\u7528\u8f7b\u91cf\u7ea7\u901a\u4fe1\u673a\u5236&#xff0c;\u5982\u57fa\u4e8eHTTP\u7684RESTful API\u3002\u4e0d\u540c\u670d\u52a1\u53ef\u4f7f\u7528\u72ec\u7acb\u6570\u636e\u5e93\u3002<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5fae\u670d\u52a1\u67b6\u6784\u4e5f\u5f71\u54cd\u4e86\u4f01\u4e1a\u7814\u53d1\u56e2\u961f\u7684\u7ec4\u7ec7\u7ed3\u6784&#xff0c;\u4ece\u4f20\u7edf\u7684\u6c34\u5e73\u67b6\u6784&#xff08;\u524d\u7aef\u3001\u540e\u7aef\u3001DBA\u3001\u6d4b\u8bd5&#xff09;\u8f6c\u5411\u5782\u76f4\u67b6\u6784&#xff08;\u6bcf\u4e2a\u4e1a\u52a1\u6a21\u5757\u72ec\u7acb\u56e2\u961f&#xff09;&#xff0c;\u4f46\u5b9e\u9645\u60c5\u51b5\u53ef\u80fd\u4e0d\u5b8c\u5168\u6309\u6b64\u5212\u5206\u3002<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5fae\u670d\u52a1\u7684\u5b9e\u73b0\u6846\u67b6\u548c\u90e8\u7f72\u65b9\u5f0f\u591a\u6837&#xff0c;\u9002\u5e94\u4e0d\u540c\u7684\u5e94\u7528\u9700\u6c42\u3002<\/p>\n<h4>\u5355\u4f53\u67b6\u6784\u548c\u5fae\u670d\u52a1\u6bd4\u8f83<\/h4>\n<p>\u5fae\u670d\u52a1\u7684\u4f18\u70b9&#xff1a;<\/p>\n<p>\u9ad8\u5185\u805a\u4f4e\u8026\u5408&#xff1a;\u6bcf\u4e2a\u670d\u52a1\u4e13\u6ce8\u4e8e\u5355\u4e00\u4e1a\u52a1\u529f\u80fd&#xff0c;\u4ee3\u7801\u6613\u4e8e\u7406\u89e3\u548c\u7ef4\u62a4\u3002<br \/>\n\u5c0f\u56e2\u961f\u5f00\u53d1&#xff1a;\u6bcf\u4e2a\u5fae\u670d\u52a1\u53ef\u75312-5\u4eba\u7684\u5c0f\u56e2\u961f\u5f00\u53d1&#xff0c;\u5f00\u53d1\u6548\u7387\u9ad8\u3002<br \/>\n\u72ec\u7acb\u6027&#xff1a;\u5fae\u670d\u52a1\u5728\u5f00\u53d1\u548c\u90e8\u7f72\u65f6\u72ec\u7acb&#xff0c;\u677e\u8026\u5408&#xff0c;\u6613\u4e8e\u7ba1\u7406\u3002<br \/>\n\u6280\u672f\u7075\u6d3b\u6027&#xff1a;\u53ef\u4f7f\u7528\u4e0d\u540c\u7f16\u7a0b\u8bed\u8a00\u5f00\u53d1\u6bcf\u4e2a\u670d\u52a1\u3002<br \/>\n\u6613\u4e8e\u96c6\u6210&#xff1a;\u5fae\u670d\u52a1\u6613\u4e0e\u7b2c\u4e09\u65b9\u7cfb\u7edf\u96c6\u6210&#xff0c;\u652f\u6301\u81ea\u52a8\u5316\u90e8\u7f72\u3002<br \/>\n\u524d\u540e\u7aef\u5206\u79bb&#xff1a;\u524d\u540e\u7aef\u72ec\u7acb&#xff0c;\u5fae\u670d\u52a1\u4e13\u6ce8\u4e8e\u4e1a\u52a1\u903b\u8f91&#xff0c;\u754c\u9762\u90e8\u5206\u53ef\u4e0e\u4e4b\u5206\u79bb\u3002<br \/>\n\u72ec\u7acb\u5b58\u50a8&#xff1a;\u6bcf\u4e2a\u670d\u52a1\u6709\u72ec\u7acb\u5b58\u50a8&#xff0c;\u6216\u4f7f\u7528\u7edf\u4e00\u6570\u636e\u5e93\u3002<\/p>\n<p>\u5fae\u670d\u52a1\u7684\u7f3a\u70b9&#xff1a;<\/p>\n<p>\u590d\u6742\u5ea6\u589e\u52a0&#xff1a;\u62c6\u5206\u540e\u589e\u52a0\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u8fd0\u7ef4\u548c\u76d1\u63a7\u7684\u590d\u6742\u5ea6\u3002<br \/>\n\u6570\u636e\u4e00\u81f4\u6027\u95ee\u9898&#xff1a;\u5206\u5e03\u5f0f\u4e8b\u52a1\u548c\u5f02\u6b65\u8865\u507f\u673a\u5236\u589e\u52a0\u8bbe\u8ba1\u548c\u5f00\u53d1\u96be\u5ea6\u3002<br \/>\n\u6280\u672f\u8981\u6c42\u9ad8&#xff1a;\u5f00\u53d1\u548c\u8fd0\u7ef4\u4eba\u5458\u9700\u5177\u5907\u8f83\u5f3a\u7684\u5206\u5e03\u5f0f\u7cfb\u7edf\u6280\u672f\u80fd\u529b\u3002<br \/>\n\u4e0d\u9002\u5408\u5c0f\u578b\u5e94\u7528&#xff1a;\u5bf9\u4e8e\u5c0f\u7cfb\u7edf&#xff0c;\u76f2\u76ee\u62c6\u5206\u53ef\u80fd\u589e\u52a0\u7ef4\u62a4\u6210\u672c\u3002<\/p>\n<p>\u5e38\u89c1\u7684\u5fae\u670d\u52a1\u6846\u67b6&#xff1a;<\/p>\n<p>Dubbo&#xff1a;\u9ad8\u6027\u80fdJava RPC\u6846\u67b6&#xff0c;\u652f\u6301\u670d\u52a1\u6ce8\u518c\u3001\u53d1\u73b0\u4e0e\u6cbb\u7406&#xff0c;\u5e38\u4e0eZookeeper\u914d\u5408\u4f7f\u7528\u3002<br \/>\nSpring Cloud&#xff1a;\u57fa\u4e8eHTTP\u534f\u8bae\u7684\u5fae\u670d\u52a1\u6846\u67b6&#xff0c;\u652f\u6301\u670d\u52a1\u62c6\u5206\u548c\u6a21\u5757\u95f4\u901a\u4fe1&#xff0c;\u529f\u80fd\u66f4\u4e3a\u5168\u9762\u3002<\/p>\n<h2>\n\u4e09 tomcat\u7684\u529f\u80fd\u4ecb\u7ecd<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"300\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233109-689bcebd2ccf9.png\" width=\"575\" \/><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Tomcat \u670d\u52a1\u5668\u662f\u4e00\u4e2a\u514d\u8d39\u7684\u5f00\u653e\u6e90\u4ee3\u7801\u7684Web \u5e94\u7528\u670d\u52a1\u5668&#xff0c;\u5c5e\u4e8e\u8f7b\u91cf\u7ea7\u5e94\u7528\u670d\u52a1\u5668&#xff0c;\u5728\u4e2d\u5c0f\u578b\u7cfb\u7edf\u548c\u5e76\u53d1\u8bbf\u95ee\u7528\u6237\u4e0d\u662f\u5f88\u591a\u7684\u573a\u5408\u4e0b\u88ab\u666e\u904d\u4f7f\u7528&#xff0c;Tomcat \u5177\u6709\u5904\u7406HTML\u9875\u9762\u7684\u529f\u80fd&#xff0c;\u5b83\u8fd8\u662f\u4e00\u4e2aServlet\u548cJSP\u5bb9\u5668\u8d77\u59cb\u4e8eSUN \u516c\u53f8\u7684\u4e00\u4e2aServlet\u7684\u53c2\u8003\u5b9e\u73b0\u9879\u76ee Java Web Server&#xff0c;\u5f00\u53d1\u8005\u662f James Duncan Davidson&#xff0c;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u57281999\u5e74&#xff0c;\u5c06\u9879\u76ee\u8d21\u732e\u7ed9\u4e86apache\u8f6f\u4ef6\u57fa\u91d1\u4f1a&#xff08;ASF&#xff09;&#xff0c;\u548cASF\u73b0\u6709\u7684\u9879\u76ee JServ \u5408\u5e76&#xff0c;\u5e76\u5f00\u6e90\u6210\u4e3a\u9876\u7ea7\u9879\u76ee<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Tomcat \u4ec5\u4ec5\u5b9e\u73b0\u4e86Java EE\u89c4\u8303\u4e2d\u4e0eServlet\u3001JSP\u76f8\u5173\u7684\u7c7b\u5e93&#xff0c;\u662fJavaEE\u4e0d\u5b8c\u6574\u5b9e\u73b0\u3002<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01999\u5e74\u53d1\u5e03\u521d\u59cb\u7248\u672c\u662fTomcat 3.0&#xff0c;\u5b9e\u73b0\u4e86Servlet 2.2 \u548c JSP 1.1\u89c4\u8303\u3002<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Tomcat 4.x\u53d1\u5e03\u65f6&#xff0c;\u5185\u5efa\u4e86Catalina&#xff08;Servlet\u5bb9\u5668&#xff09;\u548c Jasper&#xff08;JSP engine&#xff09;\u7b49<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5f53\u524d Tomcat \u7684\u6b63\u5f0f\u7248\u672c\u5df2\u7ecf\u66f4\u65b0\u5230 9.0.x \u7248\u672c&#xff0c;\u4f46\u5f53\u524d\u4f01\u4e1a\u4e2d\u4e3b\u6d41\u7248\u672c\u4e3a 8.x \u548c 7.x\u00a0<\/p>\n<p>\u5b98\u7f51: http:\/\/tomcat.apache.org\/<\/p>\n<p>\u5b98\u7f51\u6587\u6863: https:\/\/tomcat.apache.org\/tomcat-8.5-doc\/index.html<\/p>\n<p>\u5e2e\u52a9\u6587\u6863:<\/p>\n<p>https:\/\/cwiki.apache.org\/confluence\/display\/tomcat\/ https:\/\/cwiki.apache.org\/confluence\/display\/tomcat\/FAQ<\/p>\n<h3 style=\"background-color:transparent\">\u73af\u5883\u914d\u7f6e<\/h3>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:500px\">\n<tbody>\n<tr>\n<td>\u4e3b\u673a\u540d<\/td>\n<td>IP<\/td>\n<\/tr>\n<tr>\n<td>tomcata<\/td>\n<td>172.25.254.10<\/td>\n<\/tr>\n<tr>\n<td>tomcatb<\/td>\n<td>172.25.254.20<\/td>\n<\/tr>\n<tr>\n<td>nginx<\/td>\n<td>172.25.254.100<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u5b89\u88c5 Tomcat<\/h3>\n<p>\u63a8\u8350\u4eceApache\u5b98\u7f51\u4e0b\u8f7d\u6e90\u7801\u5305\u76f4\u63a5\u5b89\u88c5\u542f\u52a8<\/p>\n<h4>\u5b89\u88c5java\u73af\u5883(\u4ee5tomcata\u4e3a\u4f8b\u5b50)<\/h4>\n<p>#\u5b89\u88c5java\u73af\u5883<\/p>\n<p>[root&#064;tomcata ~]# yum install java-1.8.0-openjdk.x86_64 -y<\/p>\n<p>#\u67e5\u770bjava\u7248\u672c<br \/>\n[root&#064;tomcata ~]# java -version<br \/>\nopenjdk version &#034;1.8.0_362&#034;<br \/>\nOpenJDK Runtime Environment (build 1.8.0_362-b09)<br \/>\nOpenJDK 64-Bit Server VM (build 25.362-b09, mixed mode)<\/p>\n<p>#\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  8\u6708 11 06:29 \/usr\/bin\/java -&gt; \/etc\/alternatives\/java<\/p>\n<p>#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<h4>.\u5b89\u88c5\u5e76\u542f\u52a8tomcat<\/h4>\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  etc    include  lib64    sbin   src<br \/>\nbin                    games  lib      libexec  share<br \/>\n[root&#064;tomcata local]# mv apache-tomcat-9.0.107\/ tomcat<br \/>\n[root&#064;tomcata local]# ls<br \/>\nbin  etc  games  include  lib  lib64  libexec  sbin  share  src  tomcat<\/p>\n<p>#\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                 configtest.sh     shutdown.sh<br \/>\ncatalina.bat                  daemon.sh         startup.bat<br \/>\ncatalina.sh                   digest.bat        startup.sh<br \/>\ncatalina-tasks.xml            digest.sh         tomcat-juli.jar<br \/>\nciphers.bat                   makebase.bat      tomcat-native.tar.gz<br \/>\nciphers.sh                    makebase.sh       tool-wrapper.bat<br \/>\ncommons-daemon.jar            setclasspath.bat  tool-wrapper.sh<br \/>\ncommons-daemon-native.tar.gz  setclasspath.sh   version.bat<br \/>\nconfigtest.bat                shutdown.bat      version.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:       \/usr\/local\/tomcat\/bin\/bootstrap.jar:\/usr\/local\/tomcat\/bin\/tomcat-juli.jar<br \/>\nUsing CATALINA_OPTS:<br \/>\nTomcat started.<\/p>\n<p>#\u67e5\u770b\u7aef\u53e3<br \/>\n[root&#064;tomcata bin]# netstat -antlupe | grep java<br \/>\ntcp6       0      0 127.0.0.1:8005          :::*                    LISTEN      0          36535      3755\/java<br \/>\ntcp6       0      0 :::8080                 :::*                    LISTEN      0          37089      3755\/java           <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"901\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233109-689bcebd636b2.png\" width=\"1250\" \/><\/p>\n<h4>\u8bbf\u95eetomcat<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1025\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233110-689bcebe62195.png\" width=\"2545\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"830\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233114-689bcec28fb87.png\" width=\"2560\" \/><\/p>\n<h3>tomcat\u7684\u6587\u4ef6\u7ed3\u6784\u548c\u7ec4\u6210<\/h3>\n<p>\u76ee\u5f55\u7ed3\u6784<\/p>\n<p>\u76ee\u5f55 \u00a0 \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 \u00a0 \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>\u67e5\u770btomcat\u76f8\u5173\u76ee\u5f55\u548c\u6587\u4ef6<\/p>\n<p>[root&#064;tomcata local]# ls \/usr\/local\/tomcat\/<br \/>\nbin           CONTRIBUTING.md  logs       RELEASE-NOTES  webapps<br \/>\nBUILDING.txt  lib              NOTICE     RUNNING.txt    work<br \/>\nconf          LICENSE          README.md  temp<\/p>\n<h3>\u751f\u6210tomcat\u7684\u542f\u52a8\u6587\u4ef6(\u4ee5tomcata\u4e3a\u4f8b\u5b50)<\/h3>\n<h4>\u751f\u6210tomcat\u7684\u4e3b\u914d\u7f6e\u6587\u4ef6<\/h4>\n<p>[root&#064;tomcata ~]# vim \/usr\/local\/tomcat\/conf\/tomcat.conf<br \/>\nJAVA_HOME&#061;\/etc\/alternatives\/jre<\/p>\n<h4>\u751f\u6210\u542f\u52a8\u6587\u4ef6<\/h4>\n<p>[Unit]<br \/>\nDescription&#061;Tomcat<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><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"496\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233117-689bcec50575c.png\" width=\"870\" \/><\/p>\n<h4>\u751f\u6210tomcat\u7528\u6237\u5e76\u8bbe\u5b9a\u8f6f\u4ef6\u5b89\u88c5\u76ee\u5f55\u6743\u9650<\/h4>\n<p>[root&#064;tomcata ~]# useradd -s \/sbin\/nologin -M tomcat<br \/>\n[root&#064;tomcata ~]# chown tomcat.tomcat \/usr\/local\/tomcat\/ -R<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"70\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233117-689bcec5cb439.png\" width=\"1115\" \/><\/p>\n<h4>\u7528\u542f\u52a8\u811a\u672c\u5f00\u542f\u670d\u52a1<\/h4>\n<p>[root&#064;tomcata ~]# systemctl enable &#8211;now tomcat<br \/>\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/tomcat.service \u2192 \/usr\/lib\/systemd\/system\/tomcat.service.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"99\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233118-689bcec643203.png\" width=\"1256\" \/><\/p>\n<h2>\u56db \u7ed3\u5408\u53cd\u5411\u4ee3\u7406\u5b9e\u73b0tomcat\u90e8\u7f72<\/h2>\n<h3>\u5229\u7528 nginx \u53cd\u5411\u4ee3\u7406\u5b9e\u73b0<\/h3>\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"292\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233118-689bcec6a126b.png\" width=\"811\" \/><\/p>\n<p>\u5229\u7528nginx\u53cd\u5411\u4ee3\u7406\u529f\u80fd&#xff0c;\u5b9e\u73b0\u56fe\u4e2d\u7684\u4ee3\u7406\u529f\u80fd&#xff0c;\u5c06\u7528\u6237\u8bf7\u6c42\u5168\u90e8\u8f6c\u53d1\u81f3\u6307\u5b9a\u7684\u540c\u4e00\u4e2atomcat\u4e3b\u673a \u5229\u7528nginx\u6307\u4ee4proxy_pass \u53ef\u4ee5\u5411\u540e\u7aef\u670d\u52a1\u5668\u8f6c\u53d1\u8bf7\u6c42\u62a5\u6587,\u5e76\u4e14\u5728\u8f6c\u53d1\u65f6\u4f1a\u4fdd\u7559\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\u62a5\u6587\u4e2d\u7684 host\u9996\u90e8<\/p>\n<p>[root&#064;Nginx ~]# vim \/usr\/local\/nginx\/conf.d\/vhosts.conf<br \/>\n\u00a0\u00a0\u00a0location ~ \\\\.jsp$ {<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0proxy_pass http:\/\/172.25.254.10:8080;<br \/>\n\u00a0\u00a0\u00a0}<\/p>\n<p>[root&#064;nginx nginx]# vim \/etc\/nginx\/conf.d\/vhosts.conf<\/p>\n<p>server {<br \/>\n    listen 80;<br \/>\n    server_name www.timinglee.org;<\/p>\n<p>    location ~ \\\\.jsp$ {<br \/>\n        proxy_pass http:\/\/172.25.254.10:8080;<br \/>\n    }<br \/>\n}<\/p>\n<p>[root&#064;nginx nginx]# systemctl restart nginx<br \/>\n #\u5728\u672c\u673a\u628a\u57df\u540d\u5199\u4e0a 172.25.254.100 www.timinglee.org<\/p>\n<p> #\u5728172.25.254.10\u4e0a\u51c6\u5907\u4e00\u4e2atest.jsp\u6587\u4ef6\u653e\u5230[root&#064;tomcata ~]# cp test.jsp \/usr\/local\/tomcat\/webapps\/ROOT\/<\/p>\n<p>[root&#064;tomcata ~]# cp test.jsp \/usr\/local\/tomcat\/webapps\/ROOT\/<\/p>\n<p>#\u5728\u6d4f\u89c8\u5668\u4e0a\u6d4b\u8bd5<br \/>\nhttp:\/\/www.timinglee.org\/test.jsp<\/p>\n<p>\u6d4b\u8bd5&#xff1a;\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\u4fe1\u606f<\/p>\n<h4><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"335\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233119-689bcec778ea0.png\" width=\"787\" \/><\/h4>\n<h4>tomcat\u8d1f\u8f7d\u5747\u8861\u5b9e\u73b0<\/h4>\n<p>[root&#064;nginx nginx]# vim \/etc\/nginx\/conf.d\/vhosts.conf<br \/>\nupstream tomcat {<br \/>\n    ip_hash;<br \/>\n    hash $cookie_JSESSIONID;<br \/>\n    server 172.25.254.10:8080;<br \/>\n    server 172.25.254.20:8080;<br \/>\n}<\/p>\n<p>server {<br \/>\n    listen 80;<br \/>\n    server_name www.timinglee.org;<\/p>\n<p>    location ~ \\\\.jsp$ {<br \/>\n        proxy_pass http:\/\/tomcat;<br \/>\n    }<br \/>\n}<br \/>\n[root&#064;nginx nginx]# systemctl restart nginx <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"508\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233119-689bcec7b751a.png\" width=\"702\" \/><\/p>\n<h4>\u6d4b\u8bd5<\/h4>\n<p>\u4e0d\u540c\u6d4f\u89c8\u5668\u91cc\u6d4b\u8bd5http:\/\/www.timinglee.org\/test.jsp<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"407\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233119-689bcec7e143b.png\" width=\"809\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"334\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233120-689bcec81480f.png\" width=\"593\" \/><\/p>\n<h2>\u4e94 Memcached<\/h2>\n<p>Memcached \u662f\u4e00\u79cd\u57fa\u4e8e Key-Value \u7684\u5185\u5b58\u7f13\u5b58\u7cfb\u7edf&#xff0c;\u652f\u6301\u9ad8\u6548\u7684\u6570\u636e\u5b58\u53d6&#xff0c;\u4f46\u4e0d\u5177\u5907\u6301\u4e45\u5316\u529f\u80fd\u3002\u5c3d\u7ba1\u6ca1\u6709\u50cf Redis \u90a3\u6837\u7684 RDB \u548c AOF \u6570\u636e\u6301\u4e45\u5316&#xff0c;Memcached \u53ef\u901a\u8fc7\u96c6\u7fa4\u540c\u6b65\u4fdd\u8bc1\u6570\u636e\u4e00\u81f4\u6027&#xff0c;\u5373\u4f7f\u67d0\u4e2a\u8282\u70b9\u53d1\u751f\u6545\u969c&#xff0c;\u53ea\u8981\u96c6\u7fa4\u4e2d\u6709\u53ef\u7528\u8282\u70b9&#xff0c;\u6570\u636e\u4e5f\u4e0d\u4f1a\u4e22\u5931\u3002\u5f53\u6545\u969c\u8282\u70b9\u6062\u590d\u65f6&#xff0c;\u5b83\u4f1a\u81ea\u52a8\u4ece\u5176\u4ed6\u8282\u70b9\u83b7\u53d6\u6570\u636e\u3002<br \/>\nMemcached \u4f7f\u7528\u64cd\u4f5c\u7cfb\u7edf\u7684 libevent \u5e93\u6765\u4f18\u5316\u8bfb\u5199\u6027\u80fd&#xff0c;\u652f\u6301\u5728 Linux\u3001BSD\u3001Solaris \u7b49\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u9ad8\u6548\u8fd0\u884c\u3002\u5b83\u9650\u5236\u6700\u5927\u5b58\u50a8\u5bf9\u8c61\u4e3a 1MB&#xff0c;\u8d85\u8fc7\u6b64\u5927\u5c0f\u7684\u6570\u636e\u53ef\u901a\u8fc7\u5ba2\u6237\u7aef\u538b\u7f29\u6216\u62c6\u5206\u5b58\u50a8\u3002Memcached \u9002\u5408\u7528\u4e8e\u5b58\u50a8\u7528\u6237\u4f1a\u8bdd\u6570\u636e&#xff0c;\u4ee5\u5b9e\u73b0\u4f1a\u8bdd\u5171\u4eab\u3002<br \/>\n\u6570\u636e\u5b58\u50a8\u65f6&#xff0c;Memcached \u4f1a\u5c06\u5185\u5b58\u5212\u5206\u4e3a 1MB \u7684\u5757&#xff08;\u79f0\u4e3a slab \u6216 page&#xff09;\u3002\u6b64\u5916&#xff0c;Memcached \u652f\u6301\u591a\u79cd\u5f00\u53d1\u8bed\u8a00&#xff0c;\u5982 Java\u3001C\u3001Python\u3001PHP\u3001C#\u3001Ruby\u3001Perl \u7b49\u3002<\/p>\n<p>Memcached \u5b98\u7f51&#xff1a;http:\/\/memcached.org\/<\/p>\n<h3>memcached\u7684\u5b89\u88c5\u4e0e\u542f\u52a8<\/h3>\n<p>[root&#064;tomcata ~]# vim \/etc\/sysconfig\/memcached<br \/>\n[root&#064;tomcata ~]# cat \/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;<\/p>\n<p>[root&#064;tomcata ~]# systemctl enable &#8211;now memcached<br \/>\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/memcached.service \u2192 \/usr\/lib\/systemd\/system\/memcached.service.<br \/>\n[root&#064;tomcata ~]# netstat -antlupe | grep memcache<\/p>\n<h3>memcached \u64cd\u4f5c\u547d\u4ee4<\/h3>\n<p>\u4e94\u79cd\u57fa\u672c memcached \u547d\u4ee4\u6267\u884c\u6700\u7b80\u5355\u7684\u64cd\u4f5c\u3002\u8fd9\u4e9b\u547d\u4ee4\u548c\u64cd\u4f5c\u5305\u62ec&#xff1a;<\/p>\n<p>set<\/p>\n<p>add<\/p>\n<p>replace<\/p>\n<p>get<\/p>\n<p>delete<\/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;<\/p>\n<p>#\u53c2\u6570\u8bf4\u660e\u5982\u4e0b&#xff1a;<br \/>\ncommand set\/add\/replace<br \/>\nkey \u00a0 \u00a0 key \u7528\u4e8e\u67e5\u627e\u7f13\u5b58\u503c<br \/>\nflags \u00a0 \u00a0 \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 \u00a0 \u00a0 \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 \u00a0 \u00a0 \u5728\u7f13\u5b58\u4e2d\u5b58\u50a8\u7684\u5b57\u8282\u6570<br \/>\nvalue \u00a0 \u00a0 \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 \u00a0<\/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<\/p>\n<p>#\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<br \/>\nget 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>\u516d.session \u5171\u4eab\u670d\u52a1\u5668<\/h2>\n<h3>msm \u4ecb\u7ecd<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"2381\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233120-689bcec82c452.png\" width=\"6956\" \/><\/p>\n<p>msm&#xff08;memcached session manager&#xff09;\u63d0\u4f9b\u5c06Tomcat\u7684session\u4fdd\u6301\u5230memcached\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u53ef\u7528\u3002<\/p>\n<p>\u9879\u76ee\u65e9\u671f\u6258\u7ba1\u5728google code,\u76ee\u524d\u5728Github github\u7f51\u7ad9\u94fe\u63a5:<\/p>\n<p>https:\/\/github.com\/magro\/memcached-session-manager<\/p>\n<h3 style=\"background-color:transparent\">\u5b89\u88c5<\/h3>\n<p>\u53c2\u8003\u94fe\u63a5: https:\/\/github.com\/magro\/memcached-session-manager\/wiki\/SetupAndConfiguration<br \/>\n\u5c06spymemcached.jar\u3001memcached-session-manage\u3001kyro\u76f8\u5173\u7684jar\u6587\u4ef6\u90fd\u653e\u5230Tomcat\u7684lib\u76ee\u5f55<br \/>\n\u4e2d&#xff0c;\u8fd9\u4e2a\u76ee\u5f55\u662f $CATALINA_HOME\/lib\/ &#xff0c;\u5bf9\u5e94\u672c\u6b21\u5b89\u88c5\u5c31\u662f\/usr\/local\/tomcat\/lib\u3002<\/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>t1\u548cm1\u90e8\u7f72\u53ef\u4ee5\u5728\u4e00\u53f0\u4e3b\u673a\u4e0a&#xff0c;t2\u548cm2\u90e8\u7f72\u4e5f\u53ef\u4ee5\u5728\u540c\u4e00\u53f0\u3002<br \/>\n\u5f53\u65b0\u7528\u6237\u53d1\u8bf7\u6c42\u5230Tomcat1\u65f6, Tomcat1\u751f\u6210session\u8fd4\u56de\u7ed9\u7528\u6237\u7684\u540c\u65f6,\u4e5f\u4f1a\u540c\u65f6\u53d1\u7ed9memcached2\u5907\u4efd\u3002\u5373Tomcat1 session\u4e3a\u4e3bsession&#xff0c;memcached2 session\u4e3a\u5907\u7528session&#xff0c;\u4f7f\u7528memcached\u76f8\u5f53\u4e8e\u5907\u4efd\u4e86\u4e00\u4efdSession\u5982\u679cTomcat1\u53d1\u73b0memcached2 \u5931\u8d25,\u65e0\u6cd5\u5907\u4efdSession\u5230memcached2,\u5219\u5c06Sessoin\u5907\u4efd\u5b58\u653e\u5728memcached1\u4e2d<\/p>\n<h3 style=\"background-color:transparent\">\u914d\u7f6e\u8fc7\u7a0b<\/h3>\n<p>\u4e0b\u8f7d\u76f8\u5173jar\u5305<br \/>\n\u4e0b\u8f7d\u76f8\u5173jar\u5305,\u53c2\u8003\u4e0b\u9762\u5b98\u65b9\u8bf4\u660e\u7684\u4e0b\u8f7d\u94fe\u63a5<br \/>\nhttps:\/\/github.com\/magro\/memcached-session-manager\/wiki\/SetupAndConfiguration<\/p>\n<p>[root&#064;tomcata ~]# cd \/usr\/local\/tomcat\/lib\/<br \/>\n[root&#064;tomcata lib]# ls<br \/>\nannotations-api.jar                      servlet-api.jar<br \/>\nasm-5.2.jar                              spymemcached-2.12.3.jar<br \/>\ncatalina-ant.jar                         tomcat-api.jar<br \/>\ncatalina-ha.jar                          tomcat-coyote-ffm.jar<br \/>\ncatalina.jar                             tomcat-coyote.jar<br \/>\ncatalina-ssi.jar                         tomcat-dbcp.jar<br \/>\ncatalina-storeconfig.jar                 tomcat-i18n-cs.jar<br \/>\ncatalina-tribes.jar                      tomcat-i18n-de.jar<br \/>\necj-4.20.jar                             tomcat-i18n-es.jar<br \/>\nel-api.jar                               tomcat-i18n-fr.jar<br \/>\njasper-el.jar                            tomcat-i18n-ja.jar<br \/>\njasper.jar                               tomcat-i18n-ko.jar<br \/>\njaspic-api.jar                           tomcat-i18n-pt-BR.jar<br \/>\njsp-api.jar                              tomcat-i18n-ru.jar<br \/>\nkryo-3.0.3.jar                           tomcat-i18n-zh-CN.jar<br \/>\nkryo-serializers-0.45.jar                tomcat-jdbc.jar<br \/>\nmemcached-session-manager-2.3.2.jar      tomcat-jni.jar<br \/>\nmemcached-session-manager-tc9-2.3.2.jar  tomcat-util.jar<br \/>\nminlog-1.3.1.jar                         tomcat-util-scan.jar<br \/>\nmsm-kryo-serializer-2.3.2.jar            tomcat-websocket.jar<br \/>\nobjenesis-2.6.jar                        websocket-api.jar<br \/>\nreflectasm-1.11.9.jar<br \/>\n#\u7ed9172.25.254.20\u4f20\u8fc7\u53bb<br \/>\n[root&#064;tomcata lib]# scp \/usr\/local\/tomcat\/lib\/* root&#064;172.25.254.20:\/usr\/local\/tomcat\/lib<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"745\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233126-689bcece5974e.png\" width=\"1164\" \/><\/p>\n<h4 style=\"background-color:transparent\">\u4fee\u6539tomcat\u914d\u7f6e<\/h4>\n<p>upstream tomcat {<br \/>\n    hash $cookie_JSESSIONID;<br \/>\n    server 172.25.254.10:8080;<br \/>\n    server 172.25.254.20:8080;<br \/>\n}<\/p>\n<p>server {<br \/>\n    listen 80;<br \/>\n    server_name www.timinglee.org;<\/p>\n<p>    location ~ \\\\.jsp$ {<br \/>\n        proxy_pass http:\/\/tomcat;<br \/>\n    }<br \/>\n}<\/p>\n<p>\u6d4b\u8bd5&#xff1a;<br \/>\n1.\u5728\u4e24\u53f0tomcat\u90fd\u5f00\u542f\u7684\u60c5\u51b5\u4e0b&#xff1a;<br \/>\nhttp:\/\/www.timinglee.org\/test.jsp<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"456\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233126-689bcecede849.png\" width=\"841\" \/><\/p>\n<p>2.\u5728n1\u88ab\u505c\u6b62\u540e\u7ee7\u7eed\u63d0\u4ea4\u4fe1\u606f\u770b\u662f\u5426\u53ef\u4ee5\u8bfb\u53d6\u5230\u4e4b\u524d\u7684\u4f1a\u8bdd\u4fe1\u606f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"307\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233127-689bcecf109a2.png\" width=\"689\" \/><\/p>\n<p>[root&#064;tomcata lib]# systemctl stop tomcat<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"350\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233127-689bcecf276f9.png\" width=\"678\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb812\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf18\u6b21\u3002Tomcat \u670d\u52a1\u5668\u662f\u4e00\u4e2a\u514d\u8d39\u7684\u5f00\u653e\u6e90\u4ee3\u7801\u7684Web \u5e94\u7528\u670d\u52a1\u5668\uff0c\u5c5e\u4e8e\u8f7b\u91cf\u7ea7\u5e94\u7528\u670d\u52a1\u5668\uff0c\u5728\u4e2d\u5c0f\u578b\u7cfb\u7edf\u548c\u5e76\u53d1\u8bbf\u95ee\u7528\u6237\u4e0d\u662f\u5f88\u591a\u7684\u573a\u5408\u4e0b\u88ab\u666e\u904d\u4f7f\u7528\uff0cTomcat \u5177\u6709\u5904\u7406HTML\u9875\u9762\u7684\u529f\u80fd\uff0c\u5b83\u8fd8\u662f\u4e00\u4e2aServlet\u548cJSP\u5bb9\u5668\u8d77\u59cb\u4e8eSUN \u516c\u53f8\u7684\u4e00\u4e2aServlet\u7684\u53c2\u8003\u5b9e\u73b0\u9879\u76ee Java Web Server\uff0c\u5f00\u53d1\u8005\u662f James Duncan Davidson\uff0c\u57281999\u5e74\uff0c\u5c06\u9879\u76ee\u8d21\u732e\u7ed9\u4e86apache\u8f6f\u4ef6\u57fa\u91d1\u4f1a\uff08ASF\uff09\uff0c\u548cASF\u73b0\u6709\u7684\u9879\u76ee JServ \u5408\u5e76\uff0c\u5e76\u5f00\u6e90\u6210\u4e3a\u9876\u7ea7\u9879\u76ee\u3002<\/p>\n","protected":false},"author":2,"featured_media":54485,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,58,223,43],"topic":[],"class_list":["post-54504","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-linux","tag-tomcat","tag-43"],"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\u5668-tomcat - \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\/54504.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\u5668-tomcat - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb812\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf18\u6b21\u3002Tomcat \u670d\u52a1\u5668\u662f\u4e00\u4e2a\u514d\u8d39\u7684\u5f00\u653e\u6e90\u4ee3\u7801\u7684Web \u5e94\u7528\u670d\u52a1\u5668\uff0c\u5c5e\u4e8e\u8f7b\u91cf\u7ea7\u5e94\u7528\u670d\u52a1\u5668\uff0c\u5728\u4e2d\u5c0f\u578b\u7cfb\u7edf\u548c\u5e76\u53d1\u8bbf\u95ee\u7528\u6237\u4e0d\u662f\u5f88\u591a\u7684\u573a\u5408\u4e0b\u88ab\u666e\u904d\u4f7f\u7528\uff0cTomcat \u5177\u6709\u5904\u7406HTML\u9875\u9762\u7684\u529f\u80fd\uff0c\u5b83\u8fd8\u662f\u4e00\u4e2aServlet\u548cJSP\u5bb9\u5668\u8d77\u59cb\u4e8eSUN \u516c\u53f8\u7684\u4e00\u4e2aServlet\u7684\u53c2\u8003\u5b9e\u73b0\u9879\u76ee Java Web Server\uff0c\u5f00\u53d1\u8005\u662f James Duncan Davidson\uff0c\u57281999\u5e74\uff0c\u5c06\u9879\u76ee\u8d21\u732e\u7ed9\u4e86apache\u8f6f\u4ef6\u57fa\u91d1\u4f1a\uff08ASF\uff09\uff0c\u548cASF\u73b0\u6709\u7684\u9879\u76ee JServ \u5408\u5e76\uff0c\u5e76\u5f00\u6e90\u6210\u4e3a\u9876\u7ea7\u9879\u76ee\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/54504.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-12T23:31:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233107-689bcebbe7601.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=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/54504.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/54504.html\",\"name\":\"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668-tomcat - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-12T23:31:28+00:00\",\"dateModified\":\"2025-08-12T23:31:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/54504.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/54504.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/54504.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\u5668--tomcat\"}]},{\"@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\u5668-tomcat - \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\/54504.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668-tomcat - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb812\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf18\u6b21\u3002Tomcat \u670d\u52a1\u5668\u662f\u4e00\u4e2a\u514d\u8d39\u7684\u5f00\u653e\u6e90\u4ee3\u7801\u7684Web \u5e94\u7528\u670d\u52a1\u5668\uff0c\u5c5e\u4e8e\u8f7b\u91cf\u7ea7\u5e94\u7528\u670d\u52a1\u5668\uff0c\u5728\u4e2d\u5c0f\u578b\u7cfb\u7edf\u548c\u5e76\u53d1\u8bbf\u95ee\u7528\u6237\u4e0d\u662f\u5f88\u591a\u7684\u573a\u5408\u4e0b\u88ab\u666e\u904d\u4f7f\u7528\uff0cTomcat \u5177\u6709\u5904\u7406HTML\u9875\u9762\u7684\u529f\u80fd\uff0c\u5b83\u8fd8\u662f\u4e00\u4e2aServlet\u548cJSP\u5bb9\u5668\u8d77\u59cb\u4e8eSUN \u516c\u53f8\u7684\u4e00\u4e2aServlet\u7684\u53c2\u8003\u5b9e\u73b0\u9879\u76ee Java Web Server\uff0c\u5f00\u53d1\u8005\u662f James Duncan Davidson\uff0c\u57281999\u5e74\uff0c\u5c06\u9879\u76ee\u8d21\u732e\u7ed9\u4e86apache\u8f6f\u4ef6\u57fa\u91d1\u4f1a\uff08ASF\uff09\uff0c\u548cASF\u73b0\u6709\u7684\u9879\u76ee JServ \u5408\u5e76\uff0c\u5e76\u5f00\u6e90\u6210\u4e3a\u9876\u7ea7\u9879\u76ee\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/54504.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-12T23:31:28+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812233107-689bcebbe7601.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/54504.html","url":"https:\/\/www.wsisp.com\/helps\/54504.html","name":"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668-tomcat - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-12T23:31:28+00:00","dateModified":"2025-08-12T23:31:28+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/54504.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/54504.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/54504.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\u5668--tomcat"}]},{"@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\/54504","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=54504"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/54504\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/54485"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=54504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=54504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=54504"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=54504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}