{"id":76368,"date":"2026-02-22T10:17:53","date_gmt":"2026-02-22T02:17:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/76368.html"},"modified":"2026-02-22T10:17:53","modified_gmt":"2026-02-22T02:17:53","slug":"rhel-web%e5%ba%94%e7%94%a8%e6%9c%8d%e5%8a%a1%e5%99%a8tomcat","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/76368.html","title":{"rendered":"RHEL\u2014\u2014web\u5e94\u7528\u670d\u52a1\u5668TOMCAT"},"content":{"rendered":"<p># java \u5168\u6808&#xff08;\u524d\u7aef&#043;\u540e\u7aef&#xff09;&#xff0c;\u7528\u6237\u60f3\u8981\u8bbf\u95eejava\u7a0b\u5e8f\u9700\u8981\u901a\u8fc7nginx&#xff0c;\u4f46nginx\u5904\u7406\u4e0d\u4e86java&#xff0c;\u9700\u8981TOMCAT\u6765\u5904\u7406java\u7a0b\u5e8f\u540e\u5c06\u6570\u636e\u8fd4\u56de\u7ed9nginx<\/p>\n<p>#nginx&#xff08;\u6784\u5efa\u54cd\u5e94\u62a5\u6587&#xff09;\u2014\u2014\u4e2d\u95f4\u4ef6\u2014\u2014java&#xff08;\u7a0b\u5e8f&#xff09;<\/p>\n<p>#\u4e2d\u95f4\u4ef6<\/p>\n<ul>\n<li>\n<p>\u4f01\u4e1a\u7248&#xff1a;Oracle WebLogic\u3001Red Hat JBoss EAP\u7b49<\/p>\n<\/li>\n<li>\n<p>\u793e\u533a\u7248&#xff1a;Apache Tomcat\u7b49<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>\u4e00\u3001WEB\u6280\u672f<\/h2>\n<h3>1. \u67b6\u6784<\/h3>\n<p># C\/S\u67b6\u6784<\/p>\n<p>\u5ba2\u6237\u7aef&#xff08;\u5e94\u7528&#xff09;\u2014\u2014\u670d\u52a1<\/p>\n<p># B\/S\u67b6\u6784<\/p>\n<p>\u6d4f\u89c8\u5668&#xff08;\u7f51\u9875&#xff09;\u2014\u2014\u670d\u52a1<\/p>\n<hr \/>\n<h4><\/h4>\n<h4><\/h4>\n<h3>2. \u524d\u7aef\u4e09\u5927\u6838\u5fc3\u6280\u672f<\/h3>\n<h4>&#xff08;1&#xff09; HTML<\/h4>\n<p># HTML&#xff08;HyperText Markup Language&#xff09;\u662f\u7f51\u9875\u7684\u9aa8\u67b6&#xff0c;\u7528\u6807\u7b7e\u6765\u5b9a\u4e49\u7f51\u9875\u6709\u54ea\u4e9b\u5185\u5bb9<\/p>\n<ul>\n<li>\n<p>\u4e0d\u662f\u7f16\u7a0b\u8bed\u8a00&#xff08;\u6ca1\u6709\u903b\u8f91\u5224\u65ad\u3001\u5faa\u73af&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u662f\u6807\u8bb0\u8bed\u8a00&#xff08;\u7528\u4e00\u5bf9\u5bf9\u6807\u7b7e\u5305\u88f9\u5185\u5bb9&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u6d4f\u89c8\u5668\u80fd\u76f4\u63a5\u8bc6\u522b\u548c\u6e32\u67d3<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h4><\/h4>\n<h4>&#xff08;2&#xff09;css<\/h4>\n<p># CSS&#xff08;Cascading Style Sheets&#xff09;\u662f\u7f51\u9875\u7684\u76ae\u80a4&#xff0c;\u63a7\u5236 HTML \u5143\u7d20\u7684\u5916\u89c2&#xff08;\u989c\u8272\u3001\u5927\u5c0f\u3001\u4f4d\u7f6e\u3001\u52a8\u753b\u7b49&#xff09;<\/p>\n<ul>\n<li>\n<p>\u4e5f\u662f\u6807\u8bb0\u8bed\u8a00&#xff08;\u4e0d\u662f\u7f16\u7a0b\u8bed\u8a00&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u901a\u8fc7\u9009\u62e9\u5668\u627e\u5230 HTML \u5143\u7d20&#xff0c;\u7136\u540e\u8bbe\u7f6e\u6837\u5f0f<\/p>\n<\/li>\n<li>\n<p>\u652f\u6301\u5c42\u53e0\u548c\u7ee7\u627f<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h4><\/h4>\n<h4>&#xff08;3&#xff09;JavaScript<\/h4>\n<p># JavaScript\u00a0\u662f\u7f51\u9875\u7684\u7075\u9b42&#xff08;\u80fd\u505a\u4ec0\u4e48\u52a8\u4f5c&#xff09;&#xff0c;\u8ba9\u9875\u9762\u4ece\u201c\u9759\u6001\u5c55\u793a\u201d\u53d8\u6210\u201c\u52a8\u6001\u4ea4\u4e92\u201d<\/p>\n<ul>\n<li>\n<p>\u662f\u7f16\u7a0b\u8bed\u8a00&#xff08;\u6709\u53d8\u91cf\u3001\u5faa\u73af\u3001\u5224\u65ad\u3001\u51fd\u6570&#xff09;&#xff0c;\u4e0d\u662f\u6807\u8bb0\u8bed\u8a00<\/p>\n<\/li>\n<li>\n<p>\u8fd0\u884c\u5728\u6d4f\u89c8\u5668\u7aef&#xff08;\u4e5f\u53ef\u4ee5\u8fd0\u884c\u5728\u670d\u52a1\u5668\u7aef&#xff0c;\u5982 Node.js&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u53ef\u4ee5\u52a8\u6001\u64cd\u4f5c HTML \u548c CSS&#xff08;\u589e\u5220\u6539\u67e5\u9875\u9762\u5143\u7d20\u548c\u6837\u5f0f&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u4e8b\u4ef6\u9a71\u52a8&#xff08;\u54cd\u5e94\u7528\u6237\u7684\u70b9\u51fb\u3001\u8f93\u5165\u3001\u6eda\u52a8\u7b49\u64cd\u4f5c&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u652f\u6301\u5f02\u6b65\u901a\u4fe1&#xff08;AJAX\/Fetch&#xff0c;\u4e0d\u5237\u65b0\u9875\u9762\u83b7\u53d6\u6570\u636e&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p># \u7528\u6237\u548c\u670d\u52a1\u5668\u8fdb\u884c\u4ea4\u4e92\u65f6\u6709\u540c\u6b65\u548c\u5f02\u6b65\u4e24\u79cd\u6a21\u5f0f<\/p>\n<p># \u540c\u6b65&#xff1a;\u7528\u6237\u53d1\u6765\u8bf7\u6c42\u65f6&#xff0c;\u5728\u7f51\u9875\u4e2d\u6309\u987a\u5e8f\u7f16\u5199\u5185\u5bb9&#xff0c;\u5982\u679c\u4e0a\u4e00\u884c\u5185\u5bb9\u6709\u9519\u6216\u8005\u6574\u4e2a\u7f51\u9875\u6709\u4e00\u884c\u9519\u8bef&#xff0c;\u60f3\u8981\u4fee\u6539\u5219\u4f1a\u76f4\u63a5\u5237\u65b0\u6574\u4e2a\u7f51\u9875&#xff0c;\u7528\u6237\u53c8\u8981\u91cd\u65b0\u7f16\u5199\u5185\u5bb9<\/p>\n<p># \u5f02\u6b65&#xff1a;\u7528\u6237\u53d1\u6765\u8bf7\u6c42\u7f16\u5199\u5185\u5bb9\u65f6&#xff0c;\u662f\u4e0d\u9700\u8981\u6309\u987a\u5e8f\u7f16\u5199\u7684&#xff0c;\u4e5f\u4e0d\u4f1a\u56e0\u56de\u5230\u4e0a\u4e00\u884c\u4fee\u6539\u800c\u5bfc\u81f4\u6574\u4e2a\u7f51\u9875\u91cd\u65b0\u5237\u65b0<\/p>\n<hr \/>\n<h4><\/h4>\n<h4>&#xff08;4&#xff09;JSP\u540e\u7aef\u6280\u672f<\/h4>\n<p># HTML\u3001CSS\u3001JavaScript\u00a0\u2014\u2014\u00a0\u90fd\u662f\u9759\u6001\u7684&#xff0c;\u5b83\u4eec\u662f\u6d4f\u89c8\u5668\u76f4\u63a5\u8fd0\u884c\u7684&#xff0c;\u5185\u5bb9\u5199\u6b7b\u5728\u6587\u4ef6\u91cc&#xff0c;\u4e0d\u4f1a\u53d8\u5316<\/p>\n<p># JSP\u00a0\u2014\u2014\u00a0\u662f\u52a8\u6001\u7684<\/p>\n<ul>\n<li>\n<p>JSP&#xff08;JavaServer Pages&#xff09;\u662f\u00a0Java Web \u6280\u672f<\/p>\n<\/li>\n<li>\n<p>\u8fd0\u884c\u5728\u00a0\u670d\u52a1\u5668\u7aef&#xff08;\u5982 Tomcat&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u53ef\u4ee5\u8fde\u63a5\u6570\u636e\u5e93\u3001\u5904\u7406\u4e1a\u52a1\u903b\u8f91&#xff0c;\u52a8\u6001\u751f\u6210 HTML\u00a0\u8fd4\u56de\u7ed9\u6d4f\u89c8\u5668<\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<\/p>\n<h2>\u4e8c\u3001web\u6846\u67b6<\/h2>\n<h3>1. web\u8d44\u6e90\u548c\u8bbf\u95ee<\/h3>\n<p># \u7528\u6237\u901a\u8fc7\u7535\u8111\u6216\u624b\u673a\u6765\u8bbf\u95ee\u670d\u52a1\u5668<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"501\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021745-699a6749c7c01.png\" width=\"882\" \/><\/p>\n<hr \/>\n<\/p>\n<h3>2. \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\/2026\/02\/20260222021746-699a674a0002c.png\" width=\"1461\" \/><\/p>\n<h4>&#xff08;1&#xff09;\u5355\u4f53\u67b6\u6784<\/h4>\n<p># \u4f20\u7edf\u67b6\u6784&#xff08;\u5355\u673a\u7cfb\u7edf&#xff09;&#xff0c;\u4e00\u4e2a\u9879\u76ee\u5c31\u662f\u4e00\u4e2a\u5de5\u7a0b<\/p>\n<p># all in one\u7684\u67b6\u6784\u65b9\u5f0f&#xff0c;\u6240\u6709\u529f\u80fd\u90fd\u653e\u5728\u4e00\u4e2a\u5e94\u7528\u91cc<\/p>\n<p># Java\u5b9e\u73b0&#xff1a;jsp\u3001Servlet&#xff0c;\u6253\u6210\u4e00\u4e2a\u5305jar\u3001war\u90e8\u7f72<\/p>\n<p># \u6613\u4e8e\u5f00\u53d1\u548c\u6d4b\u8bd5<\/p>\n<p># \u5982\u679c\u67d0\u4e2a\u529f\u80fd\u6a21\u5757\u51fa\u95ee\u9898\u3002\u9700\u8981\u4fee\u6539\u5c31\u5f97\u91cd\u65b0\u6253\u5305<\/p>\n<hr \/>\n<h4>&#xff08;2&#xff09;\u5fae\u670d\u52a1<\/h4>\n<p># SOA<\/p>\n<ul>\n<li>\u5c06\u529f\u80fd\u5206\u914d\u5230\u591a\u4e2a\u6a21\u5757<\/li>\n<li>\u67d0\u4e2a\u6a21\u5757\u51fa\u95ee\u9898\u5c31\u4fee\u590d\u67d0\u4e2a\u6a21\u5757\u5c31\u884c&#xff0c;\u4e0d\u7528\u91cd\u65b0\u4fee\u590d\u6574\u4e2a\u5e94\u7528<\/li>\n<\/ul>\n<p># Microservice<\/p>\n<ul>\n<li>\u5728SOA\u7684\u57fa\u7840\u662f\u66f4\u52a0\u7ec6\u5316\u66f4\u591a\u6a21\u5757<\/li>\n<li>\u591a\u4eba\u5f00\u53d1\u4f4e&#xff0c;\u7ef4\u62a4\u6210\u672c\u9ad8<\/li>\n<\/ul>\n<p># \u4f18\u70b9<\/p>\n<ul>\n<li>\u6bcf\u4e2a\u670d\u52a1\u8db3\u591f\u5c0f&#xff0c;\u4ee3\u7801\u5bb9\u6613\u7406\u89e3<\/li>\n<li>\u5f00\u53d1\u7b80\u5355\u3001\u6548\u7387\u9ad8&#xff0c;\u53ef\u4ee5\u7531\u5c0f\u56e2\u961f&#xff08;2-5&#xff09;\u5355\u72ec\u5f00\u53d1<\/li>\n<li>\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u8bed\u8a00\u5f00\u53d1<\/li>\n<\/ul>\n<p># \u7f3a\u70b9<\/p>\n<ul>\n<li>\u4e00\u4e2a\u9879\u76ee\u88ab\u62c6\u5206\u6210\u591a\u4e2a\u5de5\u7a0b&#xff0c;\u589e\u52a0\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u8fd0\u7ef4\u548c\u76d1\u63a7\u7b49\u590d\u67e5\u5ea6<\/li>\n<li>\u8981\u4fdd\u8bc1\u4e0d\u540c\u670d\u52a1\u4e4b\u95f4\u7684\u6570\u636e\u4e00\u81f4&#xff0c;\u5f15\u5165\u4e86\u5206\u5e03\u5f0f\u4e8b\u52a1\u548c\u5f02\u6b65\u8865\u507f\u673a\u5236<\/li>\n<\/ul>\n<p># \u5fae\u670d\u52a1\u67b6\u6784&#xff1a;Dubbo\u3001Spring cloud<\/p>\n<hr \/>\n<\/p>\n<h2>\u4e09\u3001TOMCAT<\/h2>\n<h3>1. TOMCAT\u5b9e\u9a8c\u73af\u5883<\/h3>\n<p># \u5b89\u88c5\u4e2d\u95f4\u4ef6TOMCAT\u8981\u770b\u4f01\u4e1a\u7528\u7684\u6700\u591a\u7684\u662f\u54ea\u4e2a\u7248\u672c&#xff0c;\u4e0d\u4e00\u5b9a\u8981\u4e0b\u6700\u65b0\u7684\u7248\u672c<\/p>\n<p># \u5b9e\u9a8c\u73af\u5883\u81f3\u5c11\u9700\u8981\u4e09\u53f0\u865a\u62df\u4e3b\u673a&#xff0c;\u4e00\u53f0\u7528\u6765\u505a\u9ad8\u65b0\u80fdweb\u670d\u52a1\u5668&#xff08;Nginx&#xff09;&#xff0c;\u4e24\u53f0\u7528\u6765\u505aweb\u5e94\u7528\u670d\u52a1\u5668&#xff08;rs1\u548crs2&#xff0c;\u7528\u6765\u90e8\u7f72TOMCAT&#xff09;<\/p>\n<p># \u5b89\u88c5Nginx&#xff1a;https:\/\/blog.csdn.net\/Forget_8\/article\/details\/157556220?spm&#061;1001.2014.3001.5502#t26<\/p>\n<p># \u4e0b\u8f7dTOMCAT9\u7248\u672c&#xff08;\u76ee\u524d\u4f01\u4e1a\u7528\u6700\u591a&#xff09;&#xff1a;Apache Tomcat\u00ae &#8211; Apache Tomcat 9 \u8f6f\u4ef6\u4e0b\u8f7d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"862\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021746-699a674a3a3d7.png\" width=\"1031\" \/><\/p>\n<hr \/>\n<h4><\/h4>\n<\/p>\n<h3>2. \u4e0b\u8f7dtomcat\u5e76\u90e8\u7f72<\/h3>\n<p># \u5728rs1\u4e3b\u673a\u4e0a\u4e0b\u8f7dtomcat\u548c\u5b89\u88c5Java\u73af\u5883<\/p>\n<p>[root&#064;rs1 ~]# wget https:\/\/dlcdn.apache.org\/tomcat\/tomcat-9\/v9.0.115\/bin\/apache-tomcat-9.0.115.tar.gz<br \/>\n[root&#064;rs1 ~]# yum install java-1.8.0-openjdk.x86_64 -y <\/p>\n<p># \u90e8\u7f72tomcat<\/p>\n<p>[root&#064;rs1 ~]# ls<br \/>\n[root&#064;rs1 ~]# tar zxf apache-tomcat-9.0.115.tar.gz -C \/usr\/local\/<br \/>\n[root&#064;rs1 ~]# cd \/usr\/local\/<br \/>\n[root&#064;rs1 local]# ls<br \/>\n[root&#064;rs1 local]# mv apache-tomcat-9.0.115\/ tomcat<br \/>\n[root&#064;rs1 local]# cd tomcat\/<br \/>\n[root&#064;rs1 tomcat]# ls<br \/>\n[root&#064;rs1 tomcat]# cd bin\/<br \/>\n[root&#064;rs1 bin]# .\/startup.sh<br \/>\n[root&#064;rs1 bin]# netstat -antlupe | grep 8080 <\/p>\n<h4><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"346\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021746-699a674a98771.png\" width=\"854\" \/><\/h4>\n<hr \/>\n<\/p>\n<h3>3. \u5236\u4f5ctomcat\u542f\u52a8\u811a\u672c<\/h3>\n<p># \u7f16\u5199\u542f\u52a8\u811a\u672c<\/p>\n<p>[root&#064;rs1 bin]# 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># \u8bbe\u7f6etomcat\u73af\u5883&#xff0c;\u521b\u5efatomcat\u7528\u6237\u5e76\u8fdb\u884c\u6d4b\u8bd5<\/p>\n<p>[root&#064;rs1 bin]# vim \/usr\/local\/tomcat\/conf\/tomcat.conf<br \/>\n\u00a0 1 JAVA_HOME&#061;\/etc\/alternatives\/jre<\/p>\n<p>[root&#064;rs1 bin]# useradd -s \/sbin\/nologin -M tomcat<br \/>\n[root&#064;rs1 bin]# chown tomcat.tomcat \/usr\/local\/tomcat\/ -R<br \/>\n[root&#064;rs1 bin]# systemctl daemon-reload<br \/>\n[root&#064;rs1 bin]# systemctl enable &#8211;now tomcat.service<br \/>\n[root&#064;rs1 bin]# systemctl restart tomcat.service<br \/>\n[root&#064;rs1 bin]# netstat -antlupe | grep java <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"449\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021746-699a674aba1ef.png\" width=\"849\" \/><\/p>\n<hr \/>\n<\/p>\n<h3>4. \u5728rs2\u4e0a\u90e8\u7f72tomcat<\/h3>\n<p>###\u6ce8\u610f&#xff1a;\u5728rs1\u4e0a\u90e8\u7f72\u5b8ctomcat\u540e&#xff0c;\u5728rs2\u4e0a\u6267\u884crs1\u4e00\u6837\u7684\u64cd\u4f5c\u90e8\u7f72tomcat<\/p>\n<p># \u5c06rs1\u4e0a\u7684tomcat\u7a0b\u5e8f\u548ctomcat\u542f\u52a8\u811a\u672c\u62f7\u8d1d\u5230rs2\u4e0a<\/p>\n<p>[root&#064;rs1 local]# scp -r \u00a0tomcat\/ root&#064;192.168.153.20:\/usr\/local\/<br \/>\n[root&#064;rs1 local]# scp \/lib\/systemd\/system\/tomcat.service root&#064;192.168.153.20:\/lib\/systemd\/system\/tomcat.service <\/p>\n<p># \u5728rs2\u4e0a\u5b89\u88c5Java\u73af\u5883&#xff0c;\u5e76\u521b\u5efatomcat\u7528\u6237&#xff0c;\u542f\u52a8tomcat\u670d\u52a1<\/p>\n<p>[root&#064;rs2 ~]# yum install java-1.8.0-openjdk.x86_64 -y<br \/>\n[root&#064;rs2 ~]# useradd -s \/sbin\/nologin -M tomcat<br \/>\n[root&#064;rs2 ~]# chown tomcat.tomcat \/usr\/local\/tomcat\/ -R<br \/>\n[root&#064;rs2 ~]# systemctl daemon-reload<br \/>\n[root&#064;rs2 ~]# systemctl enable &#8211;now tomcat<br \/>\n[root&#064;rs2 ~]# systemctl restart tomcat.service<br \/>\n[root&#064;rs2 ~]# netstat -antlupe | grep 8080<br \/>\n[root&#064;rs2 ~]# netstat -antlupe | grep java <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"466\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021746-699a674ae142d.png\" width=\"840\" \/><\/p>\n<hr \/>\n<\/p>\n<h2>\u56db\u3001nginx\u4e0etomcat\u6574\u5408<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"761\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021747-699a674b144f9.png\" width=\"1287\" \/><\/p>\n<h3>1. \u5355\u4f53\u67b6\u6784<\/h3>\n<p># \u5728nginx\u4e3b\u673a\u4e0a\u914d\u7f6e&#xff0c;\u53cd\u5411\u4ee3\u7406&#xff0c;\u5355\u673a\u8fd0\u884c<\/p>\n<p>[root&#064;Nginx ~]# vim \/usr\/local\/nginx\/conf\/conf.d\/vhosts.conf<br \/>\n[root&#064;Nginx ~]# nginx -s reload <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"172\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021747-699a674b66743.png\" width=\"729\" \/><\/p>\n<hr \/>\n<p># \u5728rs1\u7684tomcat\u9ed8\u8ba4\u53d1\u5e03\u76ee\u5f55\/usr\/local\/tomcat\/webapps\/ROOT\/\u4e0a\u7f16\u5199\u6d4b\u8bd5\u6587\u4ef6test.jsp<\/p>\n<p>[root&#064;rs1 ~]# vim \/usr\/local\/tomcat\/webapps\/ROOT\/test.jsp<br \/>\n&lt;%&#064; page contentType&#061;&#034;text\/html; charset&#061;GBK&#034; %&gt;<br \/>\n&lt;%&#064; page import&#061;&#034;java.util.*&#034; %&gt;<br \/>\n&lt;html&gt;&lt;head&gt;&lt;title&gt;Cluster App Test&lt;\/title&gt;&lt;\/head&gt;<br \/>\n&lt;body&gt;<br \/>\nServer Info:<br \/>\n&lt;%<br \/>\nout.println(request.getLocalAddr() &#043; &#034; : &#034; &#043; request.getLocalPort()&#043;&#034;&lt;br&gt;&#034;);%&gt;<br \/>\n&lt;%<br \/>\nout.println(&#034;&lt;br&gt; ID &#034; &#043; session.getId()&#043;&#034;&lt;br&gt;&#034;);<br \/>\nString dataName &#061; request.getParameter(&#034;dataName&#034;);<br \/>\nif (dataName !&#061; null &amp;&amp; dataName.length() &gt; 0) {<br \/>\nString dataValue &#061; request.getParameter(&#034;dataValue&#034;);<br \/>\nsession.setAttribute(dataName, dataValue);<br \/>\n}<br \/>\nout.print(&#034;&lt;b&gt;Session list&lt;\/b&gt;&#034;);<br \/>\nEnumeration e &#061; session.getAttributeNames();<br \/>\nwhile (e.hasMoreElements()) {<br \/>\nString name &#061; (String)e.nextElement();<br \/>\nString value &#061; session.getAttribute(name).toString();<br \/>\nout.println( name &#043; &#034; &#061; &#034; &#043; value&#043;&#034;&lt;br&gt;&#034;);<br \/>\nSystem.out.println( name &#043; &#034; &#061; &#034; &#043; value);<br \/>\n}<br \/>\n%&gt;<br \/>\n&lt;form action&#061;&#034;test.jsp&#034; method&#061;&#034;POST&#034;&gt;<br \/>\nname:&lt;input type&#061;text size&#061;20 name&#061;&#034;dataName&#034;&gt;<br \/>\n&lt;br&gt;<br \/>\nkey:&lt;input type&#061;text size&#061;20 name&#061;&#034;dataValue&#034;&gt;<br \/>\n&lt;br&gt;<br \/>\n&lt;input type&#061;submit&gt;<br \/>\n&lt;\/form&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt; <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"522\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021747-699a674b78242.png\" width=\"818\" \/><\/p>\n<hr \/>\n<p># \u5c06\u6d4b\u8bd5\u6587\u4ef6test.jsp\u4e5f\u62f7\u8d1d\u5230rs2\u7684\u9ed8\u8ba4\u53d1\u5e03\u76ee\u5f55\u4e0a<\/p>\n<p>[root&#064;rs1 ~]# scp \/usr\/local\/tomcat\/webapps\/ROOT\/test.jsp root&#064;192.168.153.20:\/usr\/local\/tomcat\/webapps\/ROOT\/test.jsp <\/p>\n<p># \u5728Windows\u4e3b\u673a&#xff08;\u6d4b\u8bd5\u4e3b\u673a&#xff09;\u4e2d\u6dfb\u52a0app.timinglee.org\u7684\u57df\u540d\u89e3\u6790<\/p>\n<p>\u00a0\ue0e8 2026-02-14 \ue0b0 \ue0e9 19:44.59 \ue0b0 \ue0ea \/home\/mobaxterm \ue0b0 vim \/etc\/hosts<br \/>\n127.0.0.1 \u00a0 \u00a0 \u00a0 localhost<br \/>\n::1 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 localhost<br \/>\n192.168.153.100 www.timinglee.org lee.timinglee.org bbs.timinglee.org login.timinglee.org www.lee.org www.lee.com php.timinglee.org app.timinglee.org <\/p>\n<p># \u5728\u6d4f\u89c8\u5668\u4e0a\u8bbf\u95eeapp.timinglee.org\/test.jsp<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"347\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021747-699a674ba1ce9.png\" width=\"613\" \/><\/p>\n<hr \/>\n<\/p>\n<h3>2. tomcat\u8d1f\u8f7d\u5747\u8861<\/h3>\n<p>[root&#064;Nginx ~]# vim \/usr\/local\/nginx\/conf\/conf.d\/vhosts.conf<br \/>\n[root&#064;Nginx ~]# nginx -s reload <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"258\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021747-699a674bb6beb.png\" width=\"736\" \/><\/p>\n<hr \/>\n<p># \u518d\u6b21\u8bbf\u95eeapp.timinglee.org\/test.jsp&#xff0c;\u586b\u5199\u8868\u683c\u662f\u4e0d\u4f1a\u4e71\u8df3\u5230\u53e6\u4e00\u4e2a\u670d\u52a1\u5668\u4e0a&#xff0c;\u771f\u6b63\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"412\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021747-699a674bc9345.png\" width=\"628\" \/><\/p>\n<hr \/>\n<\/p>\n<h2>\u4e94\u3001session\u5171\u4eab\u670d\u52a1\u5668<\/h2>\n<h3>1. msm\u4ecb\u7ecd<\/h3>\n<p>#\u00a0msm&#xff08;memcached session manager&#xff09;\u63d0\u4f9b\u5c06Tomcat\u7684session\u4fdd\u6301\u5230memcached\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u53ef\u7528<\/p>\n<p># \u901a\u8fc7tomcat&#043;memcache\u5b9e\u73b0session\u4f1a\u8bdd\u9886\u4e22\u5931<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"2377\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021747-699a674bded9a.png\" width=\"6956\" \/><\/p>\n<hr \/>\n<\/p>\n<h3>2. \u4e0b\u8f7d\u6a21\u5757<\/h3>\n<p># \u4e0b\u8f7d\u6a21\u5757&#xff0c;\u5c06\u6a21\u5757\u653e\u5230\/usr\/local\/tomcat\/lib\u76ee\u5f55\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"243\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021751-699a674faf698.png\" width=\"628\" \/><\/p>\n<p>\u4e0b\u8f7d\u94fe\u63a5&#xff1a;https:\/\/github.com\/magro\/memcached-session-manager\/wiki\/SetupAndConfiguration#add-memcached-session-manager-jars-to-tomcat<\/p>\n<p># \u6253\u4e0d\u5f00github\u53ef\u4ee5\u4e0b\u8f7d\u74e6\u7279\u5de5\u5177\u7bb1(Steam&#043;&#043;\u5b98\u7f51) &#8211; Watt Toolkit\u52a0\u901fgithub<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"707\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021751-699a674fc3b97.png\" width=\"1039\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"610\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021752-699a675021635.png\" width=\"1062\" \/><\/p>\n<hr \/>\n<p># \u5c06\u6a21\u5757\u62f7\u8d1d\u5230rs1\u548crs2\u7684tomcat\u7684\/lib\u76ee\u5f55\u4e0b<\/p>\n<p># \u5230rs2\u67e5\u770b\/usr\/local\/tomcat\/lib\/\u76ee\u5f55\u4e0b\u662f\u5426\u6709\u4e0b\u597d\u7684\u6a21\u5757<\/p>\n<p>[root&#064;rs1 ~]# ls<br \/>\n[root&#064;rs1 ~]# unzip jar.zip<br \/>\n[root&#064;rs1 ~]# cp jar\/* \/usr\/local\/tomcat\/lib\/<br \/>\n[root&#064;rs1 ~]# ls \/usr\/local\/tomcat\/lib\/<br \/>\n[root&#064;rs1 ~]# scp jar\/* root&#064;192.168.153.20:\/usr\/local\/tomcat\/lib\/<\/p>\n<p>[root&#064;rs2 ~]# ls \/usr\/local\/tomcat\/lib\/ <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"519\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021752-699a675069e6b.png\" width=\"827\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"207\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021752-699a675095a15.png\" width=\"831\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"263\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021752-699a6750af93b.png\" width=\"799\" \/><\/p>\n<hr \/>\n<\/p>\n<h3>3. \u5b89\u88c5memcache<\/h3>\n<p># \u5728rs1\u548crs2\u4e0a\u5b89\u88c5memcache&#xff0c;\u5e76\u5f00\u542fmemcache\u670d\u52a1<\/p>\n<p>[root&#064;rs1 ~]# dnf install memcached -y<br \/>\n[root&#064;rs1 ~]# vim \/etc\/sysconfig\/memcached<br \/>\n[root&#064;rs1 ~]# systemctl restart memcached.service<br \/>\n[root&#064;rs1 ~]# netstat -antluple | grep memcached <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"220\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021752-699a6750cd00e.png\" width=\"844\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"183\" src=\"2026-02-22gdnzvifwmza.png\" width=\"842\" \/><\/p>\n<hr \/>\n<\/p>\n<h3>4. \u914d\u7f6etomcat<\/h3>\n<p># \u5728rs1\u548crs2\u7684\/usr\/local\/tomcat\/conf\/context.xml<\/p>\n<p>\u53c2\u8003\u6a21\u677f&#xff1a;\u200b\u200b\u200b\u200b\u200b\u200b\u200bhttps:\/\/github.com\/magro\/memcached-session-manager\/wiki\/SetupAndConfiguration#example-for-sticky-sessions&#8211;kryo<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"751\" src=\"2026-02-22mtbwrrxh05y.png\" width=\"1091\" \/><\/p>\n<p>[root&#064;rs1 ~]# vim \/usr\/local\/tomcat\/conf\/context.xml<br \/>\n\u00a029 \u00a0 \u00a0 &lt;Manager className&#061;&#034;de.javakaffee.web.msm.MemcachedBackupSessionManager&#034;<br \/>\n\u00a030 \u00a0 \u00a0 memcachedNodes&#061;&#034;n1:192.168.153.10:11211,n2:192.168.153.20:11211&#034;<br \/>\n\u00a031 \u00a0 \u00a0 failoverNodes&#061;&#034;n1&#034;<br \/>\n\u00a032 \u00a0 \u00a0 requestUriIgnorePattern&#061;&#034;.*\\\\.(ico|png|gif|jpg|css|js)$&#034;<br \/>\n\u00a033 \u00a0 \u00a0 transcoderFactoryClass&#061;&#034;de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory&#034;<br \/>\n\u00a034 \u00a0 \u00a0 \/&gt;<br \/>\n[root&#064;rs1\u00a0~]# systemctl restart tomcat.service<\/p>\n<p>[root&#064;rs2 ~]# vim \/usr\/local\/tomcat\/conf\/context.xml<br \/>\n\u00a029 \u00a0 \u00a0 &lt;Manager className&#061;&#034;de.javakaffee.web.msm.MemcachedBackupSessionManager&#034;<br \/>\n\u00a030 \u00a0 \u00a0 memcachedNodes&#061;&#034;n1:192.168.153.10:11211,n2:192.168.153.20:11211&#034;<br \/>\n\u00a031 \u00a0 \u00a0 failoverNodes&#061;&#034;n2&#034;<br \/>\n\u00a032 \u00a0 \u00a0 requestUriIgnorePattern&#061;&#034;.*\\\\.(ico|png|gif|jpg|css|js)$&#034;<br \/>\n\u00a033 \u00a0 \u00a0 transcoderFactoryClass&#061;&#034;de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory&#034;<br \/>\n\u00a034 \u00a0 \u00a0 \/&gt;<br \/>\n[root&#064;rs2 ~]# systemctl restart tomcat.service <\/p>\n<hr \/>\n<\/p>\n<h3>5. \u6d4b\u8bd5\u5171\u4eab\u670d\u52a1\u5668<\/h3>\n<p># rs1\u548crs2\u90fd\u5728\u7ebf\u7684\u60c5\u51b5\u4e0b\u8bbf\u95eeapp.timinglee.org\/test.jsp<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"318\" src=\"2026-02-22qinqmk3ez4c.png\" width=\"594\" \/><\/p>\n<hr \/>\n<p># \u5f53rs2\u6302\u6389\u540e&#xff0c;\u518d\u6b21\u8bbf\u95eeapp.timinglee.org\/test.jsp\u5230rs1\u4e0a\u662f\u5426\u6709\u4e4b\u524drs2\u7684\u4f1a\u8bdd\u6570\u636e<\/p>\n<p>[root&#064;rs2 ~]# systemctl stop tomcat.service <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"339\" src=\"2026-02-22rnhcehj0iln.png\" width=\"588\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"398\" src=\"2026-02-22atohnm43omf.png\" width=\"574\" \/><\/p>\n<hr \/>\n<p># \u6fc0\u6d3brs2\u7684tomcat\u670d\u52a1&#xff0c;\u5173\u95edrs1\u7684tomcat\u670d\u52a1&#xff0c;\u5728rs2\u4e0a\u67e5\u770b\u662f\u5426\u6709rs1\u7684\u4f1a\u8bdd\u6570\u636e<\/p>\n<p>[root&#064;rs2 ~]# systemctl restart tomcat.service<br \/>\n[root&#064;rs1 ~]# systemctl stop tomcat.service <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"346\" src=\"2026-02-22fmszawdlb2h.png\" width=\"650\" \/><\/p>\n<hr \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p># java \u5168\u6808&#xff08;\u524d\u7aef\u540e\u7aef&#xff09;&#xff0c;\u7528\u6237\u60f3\u8981\u8bbf\u95eejava\u7a0b\u5e8f\u9700\u8981\u901a\u8fc7nginx&#xff0c;\u4f46nginx\u5904\u7406\u4e0d\u4e86java&#xff0c;\u9700\u8981TOMCAT\u6765\u5904\u7406java\u7a0b\u5e8f\u540e\u5c06\u6570\u636e\u8fd4\u56de\u7ed9nginx<br \/>\n#nginx&#xff08;\u6784\u5efa\u54cd\u5e94\u62a5\u6587&#xff09;\u2014\u2014\u4e2d\u95f4\u4ef6\u2014\u2014java&#xff08;\u7a0b\u5e8f&#xff09;<br \/>\n#\u4e2d\u95f4\u4ef6 \u4f01\u4e1a\u7248&#xff1a;Oracle WebLogic\u3001Red Hat JBoss EAP\u7b49  \u793e\u533a\u7248&amp;#xff1a<\/p>\n","protected":false},"author":2,"featured_media":76348,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,223,87],"topic":[],"class_list":["post-76368","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-tomcat","tag-87"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RHEL\u2014\u2014web\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\/76368.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RHEL\u2014\u2014web\u5e94\u7528\u670d\u52a1\u5668TOMCAT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"# java \u5168\u6808&#xff08;\u524d\u7aef\u540e\u7aef&#xff09;&#xff0c;\u7528\u6237\u60f3\u8981\u8bbf\u95eejava\u7a0b\u5e8f\u9700\u8981\u901a\u8fc7nginx&#xff0c;\u4f46nginx\u5904\u7406\u4e0d\u4e86java&#xff0c;\u9700\u8981TOMCAT\u6765\u5904\u7406java\u7a0b\u5e8f\u540e\u5c06\u6570\u636e\u8fd4\u56de\u7ed9nginx #nginx&#xff08;\u6784\u5efa\u54cd\u5e94\u62a5\u6587&#xff09;\u2014\u2014\u4e2d\u95f4\u4ef6\u2014\u2014java&#xff08;\u7a0b\u5e8f&#xff09; #\u4e2d\u95f4\u4ef6 \u4f01\u4e1a\u7248&#xff1a;Oracle WebLogic\u3001Red Hat JBoss EAP\u7b49 \u793e\u533a\u7248&amp;#xff1a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/76368.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-22T02:17:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021745-699a6749c7c01.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=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/76368.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/76368.html\",\"name\":\"RHEL\u2014\u2014web\u5e94\u7528\u670d\u52a1\u5668TOMCAT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-22T02:17:53+00:00\",\"dateModified\":\"2026-02-22T02:17:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/76368.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/76368.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/76368.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RHEL\u2014\u2014web\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":"RHEL\u2014\u2014web\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\/76368.html","og_locale":"zh_CN","og_type":"article","og_title":"RHEL\u2014\u2014web\u5e94\u7528\u670d\u52a1\u5668TOMCAT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"# java \u5168\u6808&#xff08;\u524d\u7aef\u540e\u7aef&#xff09;&#xff0c;\u7528\u6237\u60f3\u8981\u8bbf\u95eejava\u7a0b\u5e8f\u9700\u8981\u901a\u8fc7nginx&#xff0c;\u4f46nginx\u5904\u7406\u4e0d\u4e86java&#xff0c;\u9700\u8981TOMCAT\u6765\u5904\u7406java\u7a0b\u5e8f\u540e\u5c06\u6570\u636e\u8fd4\u56de\u7ed9nginx #nginx&#xff08;\u6784\u5efa\u54cd\u5e94\u62a5\u6587&#xff09;\u2014\u2014\u4e2d\u95f4\u4ef6\u2014\u2014java&#xff08;\u7a0b\u5e8f&#xff09; #\u4e2d\u95f4\u4ef6 \u4f01\u4e1a\u7248&#xff1a;Oracle WebLogic\u3001Red Hat JBoss EAP\u7b49 \u793e\u533a\u7248&amp;#xff1a","og_url":"https:\/\/www.wsisp.com\/helps\/76368.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-22T02:17:53+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260222021745-699a6749c7c01.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/76368.html","url":"https:\/\/www.wsisp.com\/helps\/76368.html","name":"RHEL\u2014\u2014web\u5e94\u7528\u670d\u52a1\u5668TOMCAT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-22T02:17:53+00:00","dateModified":"2026-02-22T02:17:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/76368.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/76368.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/76368.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"RHEL\u2014\u2014web\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\/76368","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=76368"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/76368\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/76348"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=76368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=76368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=76368"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=76368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}