版本:apache-tomcat-8.0.53.zip
成都創(chuàng)新互聯(lián)公司專注于高安網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠為您提供高安營銷型網(wǎng)站建設(shè),高安網(wǎng)站制作、高安網(wǎng)頁設(shè)計(jì)、高安網(wǎng)站官網(wǎng)定制、微信小程序開發(fā)服務(wù),打造高安網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供高安網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。
session.jsp
test2
SessionID is
<%=session.getId()%>
SessionIP is
<%=request.getServerName()%>
SessionPort is
<%=request.getServerPort()%>
<%
out.println("Response from tomcat2");
%>
比如放置在:
/Users/da/Library/Tomcat/apache-tomcat-8.0.53-8082/webapps/ROOT/session.jsp
另一臺(tái)一樣。
訪問:
http://localhost:8081/session.jsp
http://localhost:8082/session.jsp
sessionid一致:
SessionID is 6E5D26E07FDE6FB5D01A59F457D64333
SessionIP is tomcat.chinaunicom.tech
SessionPort is 80 Response from tomcat1
SessionID is 6E5D26E07FDE6FB5D01A59F457D64333
SessionIP is tomcat.chinaunicom.tech
SessionPort is 80 Response from tomcat2
參考官網(wǎng):
http://localhost:8082/docs/cluster-howto.html
http://tomcat.apache.org/tomcat-8.0-doc/config/cluster.html
翻譯:
http://wiki.jikexueyuan.com/project/tomcat/clustering.html