{"id":55295,"date":"2025-08-13T20:25:43","date_gmt":"2025-08-13T12:25:43","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/55295.html"},"modified":"2025-08-13T20:25:43","modified_gmt":"2025-08-13T12:25:43","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-2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/55295.html","title":{"rendered":"\u4f01\u4e1a\u7ea7WEB\u5e94\u7528\u670d\u52a1\u5668Tomcat"},"content":{"rendered":"<h3 id=\"%E4%BB%80%E4%B9%88%E6%98%AFTomcat%EF%BC%9F\">\u4ec0\u4e48\u662fTomcat&#xff1f;<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0Tomcat \u662f\u4e00\u6b3e\u5e7f\u6cdb\u4f7f\u7528\u7684\u00a0\u5f00\u6e90 Java Web \u670d\u52a1\u5668\u548c Servlet \u5bb9\u5668&#xff0c;\u4e3b\u8981\u7528\u4e8e\u8fd0\u884c Java \u7f16\u5199\u7684 Web \u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u7531 Apache \u8f6f\u4ef6\u57fa\u91d1\u4f1a\u5f00\u53d1\u5e76\u7ef4\u62a4&#xff0c;\u56e0\u8f7b\u91cf\u3001\u7a33\u5b9a\u3001\u6613\u7528\u7b49\u7279\u70b9&#xff0c;\u6210\u4e3a Java Web \u5f00\u53d1\u9886\u57df\u7684\u4e3b\u6d41\u5de5\u5177\u4e4b\u4e00\u3002<\/p>\n<p>Tomcat \u7684\u6838\u5fc3\u529f\u80fd<\/p>\n<li>\n<p>Servlet \u5bb9\u5668<\/p>\n<p>Servlet \u662f Java \u7528\u4e8e\u5904\u7406 Web \u8bf7\u6c42\u7684\u7ec4\u4ef6&#xff0c;Tomcat \u63d0\u4f9b\u4e86 Servlet \u7684\u8fd0\u884c\u73af\u5883&#xff0c;\u80fd\u591f\u63a5\u6536\u5ba2\u6237\u7aef&#xff08;\u5982\u6d4f\u89c8\u5668&#xff09;\u7684 HTTP \u8bf7\u6c42&#xff0c;\u8c03\u7528\u5bf9\u5e94\u7684 Servlet \u8fdb\u884c\u5904\u7406&#xff0c;\u5e76\u5c06\u7ed3\u679c\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002<\/p>\n<\/li>\n<li>\n<p>JSP \u5bb9\u5668<\/p>\n<p>JSP&#xff08;Java Server Pages&#xff09;\u662f\u4e00\u79cd\u5d4c\u5165 Java \u4ee3\u7801\u7684\u7f51\u9875\u6280\u672f&#xff0c;Tomcat \u53ef\u4ee5\u5c06 JSP \u6587\u4ef6\u7f16\u8bd1\u4e3a Servlet \u5e76\u6267\u884c&#xff0c;\u5b9e\u73b0\u52a8\u6001\u7f51\u9875\u5185\u5bb9\u7684\u751f\u6210\u3002<\/p>\n<\/li>\n<li>\n<p>HTTP \u670d\u52a1\u5668<\/p>\n<p>\u867d\u7136 Tomcat \u4e3b\u8981\u4f5c\u4e3a\u5bb9\u5668&#xff0c;\u4f46\u5b83\u4e5f\u5185\u7f6e\u4e86\u7b80\u5355\u7684 HTTP \u670d\u52a1\u5668\u529f\u80fd&#xff0c;\u80fd\u591f\u76f4\u63a5\u5904\u7406\u9759\u6001\u8d44\u6e90&#xff08;\u5982 HTML\u3001CSS\u3001\u56fe\u7247\u7b49&#xff09;\u7684\u8bf7\u6c42&#xff0c;\u65e0\u9700\u4f9d\u8d56\u5176\u4ed6 Web \u670d\u52a1\u5668&#xff08;\u5982 Nginx\u3001Apache HTTP Server&#xff09;\u3002\u4e0d\u8fc7\u5728\u751f\u4ea7\u73af\u5883\u4e2d&#xff0c;\u5e38\u5c06 Tomcat \u4e0e Nginx \u914d\u5408\u4f7f\u7528&#xff08;Nginx \u5904\u7406\u9759\u6001\u8d44\u6e90\u548c\u53cd\u5411\u4ee3\u7406&#xff0c;Tomcat \u5904\u7406\u52a8\u6001\u8bf7\u6c42&#xff09;&#xff0c;\u4ee5\u63d0\u9ad8\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/li>\n<p>Tomcat \u7684\u5e94\u7528\u573a\u666f<\/p>\n<ul>\n<li>\n<p>\u5f00\u53d1\u73af\u5883&#xff1a;Java \u5f00\u53d1\u8005\u5728\u672c\u5730\u8c03\u8bd5 Web \u5e94\u7528\u65f6&#xff0c;\u5e38\u7528 Tomcat \u4f5c\u4e3a\u670d\u52a1\u5668\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e2d\u5c0f\u578b Web \u5e94\u7528\u90e8\u7f72&#xff1a;\u5bf9\u4e8e\u8bbf\u95ee\u91cf\u4e0d\u5927\u7684\u4f01\u4e1a\u7f51\u7ad9\u3001\u5185\u90e8\u7cfb\u7edf\u7b49&#xff0c;Tomcat \u53ef\u76f4\u63a5\u4f5c\u4e3a\u72ec\u7acb\u670d\u52a1\u5668\u8fd0\u884c\u3002<\/p>\n<\/li>\n<li>\n<p>\u96c6\u7fa4\u90e8\u7f72&#xff1a;\u901a\u8fc7\u8d1f\u8f7d\u5747\u8861&#xff08;\u5982\u00a0Nginx \u53cd\u5411\u4ee3\u7406&#xff09;\u5c06\u591a\u53f0 Tomcat \u7ec4\u6210\u96c6\u7fa4&#xff0c;\u63d0\u9ad8\u5927\u578b\u5e94\u7528\u7684\u5e76\u53d1\u5904\u7406\u80fd\u529b\u548c\u53ef\u7528\u6027\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u672c\u6b21\u8ba8\u8bba\u7684\u5c31\u662ftomcat\u4e0enginx\u7ed3\u5408\u4f5c\u4e3a\u96c6\u7fa4\u90e8\u7f72\u4e2d\u7684\u670d\u52a1\u5668&#xff0c;\u5904\u7406\u52a8\u6001\u8d44\u6e90\u3002<\/p>\n<h3 id=\"%E5%AE%89%E8%A3%85Tomcat\">\u5b89\u88c5Tomcat<\/h3>\n<p>1.\u5b89\u88c5java\u73af\u5883<\/p>\n<p>#\u5b89\u88c5java<br \/>\n[root&#064;tomcatA bin]# dnf install java-1.8.0-openjdk.x86_64 -y<br \/>\n#\u67e5\u770bjava\u7248\u672c<br \/>\n[root&#064;tomcatB bin]# java -version<\/p>\n<p>2.\u5b89\u88c5\u5e76\u542f\u52a8tomcat<\/p>\n<p>[root&#064;tomcatA ~]# tar zxf apache-tomcat-9.0.107.tar.gz<br \/>\n[root&#064;tomcatA ~]# mv apache-tomcat-9.0.107.tar.gz \/usr\/local\/tomcat<br \/>\n#\u67e5\u770btomcat\u76f8\u5173\u76ee\u5f55\u548c\u6587\u4ef6<br \/>\n[root&#064;tomcatA tomcat]# ls<br \/>\nbin           conf             lib      logs    README.md      RUNNING.txt  webapps<br \/>\nBUILDING.txt  CONTRIBUTING.md  LICENSE  NOTICE  RELEASE-NOTES  temp         work<br \/>\n[root&#064;tomcatA tomcat]# cd \/usr\/local\/tomcat\/bin\/<br \/>\n#\u542f\u52a8tomcat<br \/>\n[root&#064;tomcatA bin]# .\/startup.sh<br \/>\n[root&#064;tomcatA bin]# netstat -antlupe | grep java<br \/>\ntcp6       0      0 :::8080                 :::*                    LISTEN      1001       85735      35805\/java<br \/>\n#\u5173\u95edtomcat<br \/>\n[root&#064;tomcatA bin]# .\/shutdown.sh <\/p>\n<p>\u76ee\u5f55\u7ed3\u6784<\/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>\u00a04.\u8bbf\u95eetomcat\u9ed8\u8ba4\u53d1\u5e03\u6587\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1254\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122531-689c843b3747b.png\" width=\"2151\" \/><\/p>\n<h3 id=\"%E7%94%9F%E6%88%90%E5%90%AF%E5%8A%A8%E6%96%87%E4%BB%B6\">\u751f\u6210\u542f\u52a8\u6587\u4ef6<\/h3>\n<p>1.\u751f\u6210tomat\u7684\u4e3b\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>[root&#064;tomcatA bin]# vim \/usr\/local\/tomcat\/conf\/tomcat.conf<br \/>\nJAVA_HOME&#061;\/etc\/alternatives\/jre\/<\/p>\n<p>#\u5982\u4f55\u53bb\u5bfb\u627eJAVA_HOME\u53c2\u6570<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:54 \/usr\/bin\/java -&gt; \/etc\/alternatives\/java<br \/>\n[root&#064;tomcatA ~]# ll \/etc\/alternatives\/jre <\/p>\n<p>2.\u751f\u6210\u542f\u52a8\u6587\u4ef6<\/p>\n<p>[root&#064;tomcatA ~]# vim \/lib\/systemd\/system\/tomcat.service<br \/>\n[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>3.\u521b\u5efatomcat\u7528\u6237\u53bb\u7ba1\u7406\u542f\u52a8\u6587\u4ef6<\/p>\n<p>#\u521b\u5efa\u975e\u4ea4\u4e92\u4e14\u4e0d\u521b\u5efa\u5bb6\u76ee\u5f55\u7684\u7528\u6237\u53bb\u7ba1\u7406\u542f\u52a8\u6587\u4ef6<br \/>\n[root&#064;tomcatA ~]# useradd -s \/sbin\/nologin -M tomcat<br \/>\n#\u8bbe\u5b9atomcat\u7684\u8f6f\u4ef6\u5b89\u88c5\u76ee\u5f55\u6743\u9650<br \/>\n[root&#064;tomcatA ~]# chown tomcat:tomcat \/usr\/local\/tomcat\/ -R <\/p>\n<p>4.\u7528\u542f\u52a8\u811a\u672c\u5f00\u59cb\u670d\u52a1<\/p>\n<p>[root&#064;tomcatA ~]# systemctl daemon-reload<br \/>\n[root&#064;tomcatA ~]# systemctl enable &#8211;now tomcat <\/p>\n<h3 id=\"nginx%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86tomcat\">nginx\u53cd\u5411\u4ee3\u7406tomcat<\/h3>\n<h4 id=\"tomcat%E5%B8%B8%E8%A7%81%E9%83%A8%E7%BD%B2%E6%96%B9%E5%BC%8F\">1.tomcat\u5e38\u89c1\u90e8\u7f72\u65b9\u5f0f<\/h4>\n<p>\u5728\u751f\u4ea7\u73af\u5883\u4e2d&#xff0c;\u5e38\u5c06 Tomcat \u4e0e Nginx \u914d\u5408\u4f7f\u7528&#xff08;Nginx \u5904\u7406\u9759\u6001\u8d44\u6e90\u548c\u53cd\u5411\u4ee3\u7406&#xff0c;Tomcat \u5904\u7406\u52a8\u6001\u8bf7\u6c42&#xff09;&#xff0c;\u4ee5\u63d0\u9ad8\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002\u4ee5\u4e0b\u662ftomcat\u5e38\u7528\u7684\u90e8\u7f72\u65b9\u5f0f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"542\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122534-689c843e12ef7.png\" width=\"932\" \/><\/p>\n<h4 id=\"%E5%8D%95%E6%9C%BA%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86\">2.\u5355\u673a\u53cd\u5411\u4ee3\u7406<\/h4>\n<p>\u00a0\u4e0d\u505a\u8d1f\u8f7d\u5747\u8861\u53ea\u505a\u53cd\u5411\u4ee3\u7406<\/p>\n<p>1.\u5b89\u88c5nginx<\/p>\n<p>#\u5b89\u88c5nginx\u5e76\u542f\u52a8<br \/>\n[root&#064;webserver ~]# dnf install nginx -y<br \/>\n[root&#064;webserver ~]# systemctl enable &#8211;now nginx <\/p>\n<p>2.\u5728tomcat\u4e0a\u751f\u6210\u6d4b\u8bd5\u6587\u4ef6<\/p>\n<p>[root&#064;tomcatA ~]# mv test.jsp \/usr\/local\/tomcat\/webapps\/ROOT\/<\/p>\n<p>3.\u914d\u7f6enginx\u5b9e\u73b0\u53cd\u5411\u4ee3\u7406<\/p>\n<p>#\u7f16\u8f91\u5b50\u914d\u7f6e\u6587\u4ef6&#xff0c;\u4f7f\u7528location &#043; \u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u6307\u5411\u8bbf\u95eejsp\u7ed3\u5c3e\u7684\u6587\u4ef6&#xff0c;proxy_pass\u4ee3\u7406\u6307\u5411\u5230tomcat\u4e0a<br \/>\n[root&#064;webserver ~]# vim \/etc\/nginx\/conf.d\/vhosts.conf<br \/>\n[root&#064;webserver ~]# nginx -t<br \/>\n[root&#064;webserver ~]# nginx -s reload <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"180\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122534-689c843e6d7a9.png\" width=\"1245\" \/><\/p>\n<p>\u00a04.\u5728\u6d4f\u89c8\u5668\u4e0a\u6d4b\u8bd5<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"507\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122534-689c843ea1aff.png\" width=\"2199\" \/><\/p>\n<h4 id=\"%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86%E5%A4%9A%E6%9C%BA\">3.\u53cd\u5411\u4ee3\u7406\u591a\u673a<\/h4>\n<p>\u53cd\u5411\u4ee3\u7406&#043;\u8d1f\u8f7d\u5747\u8861<\/p>\n<p>1.\u540e\u7aef\u4e24\u53f0tomcat\u4e3b\u673a\u90fd\u8981\u751f\u6210\u6d4b\u8bd5\u6587\u4ef6<\/p>\n<p>[root&#064;tomcatA ~]# mv test.jsp \/usr\/local\/tomcat\/webapps\/ROOT\/<br \/>\n[root&#064;tomcatB ~]# mv test.jsp \/usr\/local\/tomcat\/webapps\/ROOT\/<\/p>\n<p>2.\u5728nginx\u5b50\u914d\u7f6e\u6587\u4ef6\u6dfb\u52a0upstream\u6a21\u5757\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861<\/p>\n<p>[root&#064;tomcatA ~]# vim \/usr\/local\/tomcat\/conf\/tomcat.conf <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"359\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122535-689c843f743de.png\" width=\"1568\" \/><\/p>\n<p>\u00a03.\u6d4b\u8bd5<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1008\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122535-689c843fe2698.png\" width=\"2022\" \/><\/p>\n<h3 id=\"tomcat%E7%9A%84session%E4%BF%9D%E6%8C%81\">tomcat\u7684session\u4fdd\u6301<\/h3>\n<h4 id=\"Memcached\">1.Memcached<\/h4>\n<p>Memcached \u662f\u4e00\u6b3e\u9ad8\u6027\u80fd\u7684\u5206\u5e03\u5f0f\u5185\u5b58\u5bf9\u8c61\u7f13\u5b58\u7cfb\u7edf&#xff0c;\u4e3b\u8981\u7528\u4e8e\u51cf\u8f7b\u6570\u636e\u5e93\u8d1f\u8f7d\u3001\u63d0\u9ad8\u52a8\u6001 Web \u5e94\u7528\u7684\u54cd\u5e94\u901f\u5ea6\u3002\u5b83\u901a\u8fc7\u5c06\u9891\u7e41\u8bbf\u95ee\u7684\u6570\u636e\u5b58\u50a8\u5728\u5185\u5b58\u4e2d&#xff0c;\u8ba9\u5e94\u7528\u53ef\u4ee5\u5feb\u901f\u8bfb\u53d6&#xff0c;\u907f\u514d\u9891\u7e41\u67e5\u8be2\u6570\u636e\u5e93&#xff0c;\u4ece\u800c\u63d0\u5347\u6574\u4f53\u6027\u80fd\u3002<\/p>\n<p>Memcached \u7684\u6838\u5fc3\u7279\u70b9<\/p>\n<li>\n<p>\u5185\u5b58\u5b58\u50a8<\/p>\n<p>\u6570\u636e\u5b8c\u5168\u5b58\u50a8\u5728\u5185\u5b58\u4e2d&#xff0c;\u8bfb\u5199\u901f\u5ea6\u8fdc\u5feb\u4e8e\u78c1\u76d8&#xff08;\u6570\u636e\u5e93\u901a\u5e38\u4f9d\u8d56\u78c1\u76d8\u5b58\u50a8&#xff09;&#xff0c;\u9002\u5408\u7f13\u5b58\u9891\u7e41\u8bbf\u95ee\u7684 \u201c\u70ed\u70b9\u6570\u636e\u201d&#xff08;\u5982\u7528\u6237\u4f1a\u8bdd\u3001\u5546\u54c1\u4fe1\u606f\u3001\u67e5\u8be2\u7ed3\u679c\u7b49&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u5206\u5e03\u5f0f\u67b6\u6784<\/p>\n<p>\u652f\u6301\u591a\u670d\u52a1\u5668\u90e8\u7f72&#xff0c;\u901a\u8fc7\u54c8\u5e0c\u7b97\u6cd5\u5c06\u6570\u636e\u5206\u6563\u5230\u4e0d\u540c\u8282\u70b9&#xff0c;\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861\u548c\u6a2a\u5411\u6269\u5c55&#xff0c;\u907f\u514d\u5355\u8282\u70b9\u74f6\u9888\u3002<\/p>\n<\/li>\n<li>\n<p>\u7b80\u5355\u952e\u503c\u5b58\u50a8<\/p>\n<p>\u4ee5 \u952e&#xff08;Key&#xff09;- \u503c&#xff08;Value&#xff09; \u5f62\u5f0f\u5b58\u50a8\u6570\u636e&#xff0c;\u952e\u6700\u5927\u4e3a 250 \u5b57\u8282&#xff0c;\u503c\u9ed8\u8ba4\u6700\u5927\u4e3a 1MB&#xff08;\u53ef\u914d\u7f6e&#xff09;&#xff0c;\u4e0d\u652f\u6301\u590d\u6742\u6570\u636e\u7ed3\u6784&#xff08;\u5982\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7684\u8868\u3001\u7d22\u5f15&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fc7\u671f\u7b56\u7565<\/p>\n<p>\u6bcf\u4e2a\u952e\u503c\u5bf9\u53ef\u8bbe\u7f6e\u8fc7\u671f\u65f6\u95f4&#xff08;TTL&#xff0c;Time-To-Live&#xff09;&#xff0c;\u8fc7\u671f\u540e\u81ea\u52a8\u5220\u9664&#xff0c;\u91ca\u653e\u5185\u5b58\u7a7a\u95f4&#xff1b;\u5f53\u5185\u5b58\u4e0d\u8db3\u65f6&#xff0c;\u91c7\u7528 LRU&#xff08;\u6700\u8fd1\u6700\u5c11\u4f7f\u7528&#xff09; \u7b97\u6cd5\u6dd8\u6c70\u65e7\u6570\u636e\u3002<\/p>\n<\/li>\n<li>\n<p>\u65e0\u6301\u4e45\u5316<\/p>\n<p>\u6570\u636e\u4ec5\u5b58\u4e8e\u5185\u5b58&#xff0c;\u4e0d\u5199\u5165\u78c1\u76d8&#xff0c;\u670d\u52a1\u5668\u91cd\u542f\u540e\u6570\u636e\u4f1a\u4e22\u5931&#xff0c;\u56e0\u6b64\u4e0d\u9002\u5408\u5b58\u50a8\u9700\u8981\u6301\u4e45\u5316\u7684\u6570\u636e&#xff08;\u901a\u5e38\u4e0e\u6570\u636e\u5e93\u914d\u5408\u4f7f\u7528&#xff0c;\u4f5c\u4e3a \u201c\u7f13\u5b58\u5c42\u201d&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u8f7b\u91cf\u7ea7\u534f\u8bae<\/p>\n<p>\u4f7f\u7528\u7b80\u5355\u7684\u6587\u672c\u534f\u8bae&#xff08;\u5982 set get delete \u7b49\u547d\u4ee4&#xff09;&#xff0c;\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00&#xff08;Java\u3001Python\u3001PHP\u3001Go \u7b49&#xff09;\u7684\u5ba2\u6237\u7aef\u3002<\/p>\n<\/li>\n<p>Memcached \u7684\u5de5\u4f5c\u6d41\u7a0b<\/p>\n<ul>\n<li>\n<p>\u5e94\u7528\u9700\u8981\u8bfb\u53d6\u6570\u636e\u65f6&#xff0c;\u5148\u67e5\u8be2 Memcached&#xff1a;<\/p>\n<p>1.\u82e5\u6570\u636e\u5b58\u5728&#xff08;\u7f13\u5b58\u547d\u4e2d&#xff09;&#xff0c;\u76f4\u63a5\u4ece\u5185\u5b58\u8fd4\u56de&#xff0c;\u901f\u5ea6\u6781\u5feb\u3002<\/p>\n<p>2.\u82e5\u6570\u636e\u4e0d\u5b58\u5728&#xff08;\u7f13\u5b58\u672a\u547d\u4e2d&#xff09;&#xff0c;\u5219\u67e5\u8be2\u6570\u636e\u5e93&#xff0c;\u5c06\u7ed3\u679c\u5199\u5165 Memcached \u540e\u8fd4\u56de\u7ed9\u5e94\u7528&#xff08;\u4e0b\u6b21\u53ef\u76f4\u63a5\u4ece\u7f13\u5b58\u8bfb\u53d6&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f53\u6570\u636e\u66f4\u65b0\u65f6&#xff0c;\u9700\u540c\u6b65\u66f4\u65b0\u6216\u5220\u9664 Memcached \u4e2d\u7684\u65e7\u6570\u636e&#xff0c;\u907f\u514d \u201c\u7f13\u5b58\u4e0d\u4e00\u81f4\u201d \u95ee\u9898\u3002<\/p>\n<\/li>\n<\/ul>\n<h4 id=\"msm%E4%BB%8B%E7%BB%8D\">2.msm\u4ecb\u7ecd<\/h4>\n<p>msm&#xff08;memcached session manager&#xff09;\u63d0\u4f9b\u5c06Tomcat\u7684session\u4e34\u65f6\u7f13\u5b58\u4fdd\u6301\u5230memcached\u5b9e\u73b0\u9ad8\u53ef\u7528&#xff0c;\u907f\u514d\u63d0\u4ea4\u6570\u636e\u65f6tomcat\u670d\u52a1\u5668\u5b95\u673a&#xff0c;\u5bfc\u81f4\u63d0\u4ea4\u8fc7\u7684\u6570\u636e\u4e22\u5931\u3002<\/p>\n<p>tomcat\u901a\u8fc7\u628a\u914d\u7f6ejar\u5305\u653e\u5165\u914d\u7f6e\u6587\u4ef6\u7684lib\u76ee\u5f55\u4e0b\u8bfb\u53d6&#xff0c;\u5b9e\u73b0\u8bbf\u95eememcached&#xff0c;\u8fbe\u5230seeion\u4fdd\u6301\u3002<\/p>\n<p>\u539f\u7406\u662f\u63d0\u4ea4\u6570\u636e\u65f6\u5c06\u6570\u636e\u4e34\u65f6\u7f13\u5b58\u5230memcached\u4e2d&#xff0c;tomcat\u670d\u52a1\u5668\u8bfb\u53d6memcached\u7684\u7f13\u5b58\u6570\u636e&#xff0c;\u9ed8\u8ba4\u4f7f\u7528\u4ea4\u53c9\u5b58\u50a8\u3002<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"312\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122537-689c844106cdf.png\" width=\"900\" \/><\/p>\n<h4 id=\"%E5%AE%9E%E7%8E%B0session%E4%BF%9D%E6%8C%81\">3.\u5b9e\u73b0session\u4fdd\u6301<\/h4>\n<p>1.\u4e0b\u8f7dmemcache\u5e76\u66f4\u6539\u76d1\u542cIP<\/p>\n<p>[root&#064;tomcatA ~]# dnf install memcache -y<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;#\u66f4\u6539\u76d1\u542cIP\u4e3a0.0.0.0\u4f7f\u6240\u6709\u4e3b\u673a\u90fd\u80fd\u8bbf\u95eememcache\u7f13\u5b58\u952e\u503c<br \/>\n#\u66f4\u6539\u5b8c\u914d\u7f6e\u6587\u4ef6\u540e\u91cd\u542fmemcache<br \/>\n[root&#064;tomcatA ~]# systemctl restart memcached.service<br \/>\n#\u540c\u7406\u53e6\u4e00\u53f0tomcat\u4e3b\u673a\u4e5f\u662f\u8fd9\u6837\u914d\u7f6e <\/p>\n<p>2.\u914d\u7f6ejar\u5305<\/p>\n<p>\u914d\u7f6e\u7684jar\u5305\u662f\u7ba1\u7406tomcat\u670d\u52a1\u5668\u4e0ememcache\u4f1a\u8bdd\u4fdd\u6301\u7684jar\u5305&#xff0c;\u65b9\u5f0f\u4e3a\u4ea4\u53c9\u7ba1\u7406<\/p>\n<p>#\u8fd9\u662f\u4eceGithub\u6258\u7ba1tomcat\u4f1a\u8bdd\u4fdd\u6301\u5230memcache\u7684\u4ea4\u53c9\u7ba1\u7406\u7684jar\u5305<br \/>\n[root&#064;tomcatA jar]# ls<br \/>\nasm-5.2.jar                memcached-session-manager-2.3.2.jar      msm-kryo-serializer-2.3.2.jar  spymemcached-2.12.3.jar<br \/>\nkryo-3.0.3.jar             memcached-session-manager-tc9-2.3.2.jar  objenesis-2.6.jar<br \/>\nkryo-serializers-0.45.jar  minlog-1.3.1.jar                         reflectasm-1.11.9.jar<br \/>\n#\u5c06\u7ba1\u7406jar\u5305\u653e\u5165tomcat\u7684lib\/\u76ee\u5f55<br \/>\n[root&#064;tomcatA ~]# mv jar\/* \/usr\/local\/tomcat\/lib\/<br \/>\n#\u91cd\u542ftomcat\u8bfb\u53d6\u914d\u7f6e<br \/>\n[root&#064;tomcatA lib]# systemctl restart tomcat.service <\/p>\n<p>\u00a03.\u4fee\u6539tomcat\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>[root&#064;tomcatB ~]# vim \/usr\/local\/tomcat\/conf\/context.xml<br \/>\n&lt;Context&gt;<br \/>\n&#8230;&#8230;<br \/>\n    &lt;Manager className&#061;&#034;de.javakaffee.web.msm.MemcachedBackupSessionManager&#034;<br \/>\n        memcachedNodes&#061;&#034;n1:172.25.254.10:11211,n2:172.25.254.20:11211&#034;<br \/>\n        failoverNodes&#061;&#034;n2&#034;#\u7531\u4e8e\u662f\u4ea4\u53c9\u5b58\u50a8&#xff0c;\u8fd9\u91cc\u586b\u4e0e\u4e3b\u673a\u76f8\u540c\u7684\u8282\u70b9<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#\u540c\u7406\u5728\u53e6\u4e00\u53f0tomcat\u4e0a\u4e5f\u8981\u914d\u7f6e <\/p>\n<p>4.\u6d4b\u8bd5\u63d0\u4ea4\u8868\u5355\u65f6&#xff0c;\u540e\u7aeftomcat\u4e3b\u673a\u53d1\u751f\u5b95\u673a\u8f6e\u8be2\u5230\u53e6\u4e00\u53f0tomcat\u4fdd\u8bc1\u63d0\u4ea4\u8868\u5355\u6570\u636e\u4e0d\u4e22\u5931<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1298\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122537-689c84412d188.png\" width=\"2214\" \/><\/p>\n<p>#\u6a21\u62df\u6545\u969c\u5b95\u673a<br \/>\n[root&#064;tomcatA ~]# systemctl stop tomcat.service <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1298\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122538-689c8442f2523.png\" width=\"2214\" \/><\/p>\n<p>\u00a0\u5f53\u914d\u7f6e\u4e86memcache\u7f13\u5b58\u540e<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"558\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122540-689c8444b2699.png\" width=\"2163\" \/><\/p>\n<p>#\u6a21\u62df\u6545\u969c\u5b95\u673a<br \/>\n[root&#064;tomcatA ~]# systemctl stop tomcat.service<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"567\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122541-689c84458be11.png\" width=\"2175\" \/><\/p>\n<\/p>\n<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb877\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf7\u6b21\u3002Tomcat \u662f\u4e00\u6b3e\u5e7f\u6cdb\u4f7f\u7528\u7684\u5f00\u6e90 Java Web \u670d\u52a1\u5668\u548c Servlet \u5bb9\u5668\uff0c\u4e3b\u8981\u7528\u4e8e\u8fd0\u884c Java \u7f16\u5199\u7684 Web \u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u7531 Apache \u8f6f\u4ef6\u57fa\u91d1\u4f1a\u5f00\u53d1\u5e76\u7ef4\u62a4\uff0c\u56e0\u8f7b\u91cf\u3001\u7a33\u5b9a\u3001\u6613\u7528\u7b49\u7279\u70b9\uff0c\u6210\u4e3a Java Web \u5f00\u53d1\u9886\u57df\u7684\u4e3b\u6d41\u5de5\u5177\u4e4b\u4e00\u3002Tomcat \u7684\u6838\u5fc3\u529f\u80fdServlet \u5bb9\u5668\u3002<\/p>\n","protected":false},"author":2,"featured_media":55284,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[223,87,43],"topic":[],"class_list":["post-55295","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-tomcat","tag-87","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\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\/55295.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\u8bfb877\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf7\u6b21\u3002Tomcat \u662f\u4e00\u6b3e\u5e7f\u6cdb\u4f7f\u7528\u7684\u5f00\u6e90 Java Web \u670d\u52a1\u5668\u548c Servlet \u5bb9\u5668\uff0c\u4e3b\u8981\u7528\u4e8e\u8fd0\u884c Java \u7f16\u5199\u7684 Web \u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u7531 Apache \u8f6f\u4ef6\u57fa\u91d1\u4f1a\u5f00\u53d1\u5e76\u7ef4\u62a4\uff0c\u56e0\u8f7b\u91cf\u3001\u7a33\u5b9a\u3001\u6613\u7528\u7b49\u7279\u70b9\uff0c\u6210\u4e3a Java Web \u5f00\u53d1\u9886\u57df\u7684\u4e3b\u6d41\u5de5\u5177\u4e4b\u4e00\u3002Tomcat \u7684\u6838\u5fc3\u529f\u80fdServlet \u5bb9\u5668\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/55295.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-13T12:25:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122531-689c843b3747b.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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55295.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/55295.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-13T12:25:43+00:00\",\"dateModified\":\"2025-08-13T12:25:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/55295.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/55295.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55295.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\/55295.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\u8bfb877\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf7\u6b21\u3002Tomcat \u662f\u4e00\u6b3e\u5e7f\u6cdb\u4f7f\u7528\u7684\u5f00\u6e90 Java Web \u670d\u52a1\u5668\u548c Servlet \u5bb9\u5668\uff0c\u4e3b\u8981\u7528\u4e8e\u8fd0\u884c Java \u7f16\u5199\u7684 Web \u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u7531 Apache \u8f6f\u4ef6\u57fa\u91d1\u4f1a\u5f00\u53d1\u5e76\u7ef4\u62a4\uff0c\u56e0\u8f7b\u91cf\u3001\u7a33\u5b9a\u3001\u6613\u7528\u7b49\u7279\u70b9\uff0c\u6210\u4e3a Java Web \u5f00\u53d1\u9886\u57df\u7684\u4e3b\u6d41\u5de5\u5177\u4e4b\u4e00\u3002Tomcat \u7684\u6838\u5fc3\u529f\u80fdServlet \u5bb9\u5668\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/55295.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-13T12:25:43+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813122531-689c843b3747b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/55295.html","url":"https:\/\/www.wsisp.com\/helps\/55295.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-13T12:25:43+00:00","dateModified":"2025-08-13T12:25:43+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/55295.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/55295.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/55295.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\/55295","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=55295"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/55295\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/55284"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=55295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=55295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=55295"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=55295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}