您好,登錄后才能下訂單哦!
vi server.xml #192.168.2.140下的tomcat添加 <Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat1"> #192.168.2.136下的tomcat添加 <Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat2">
vi server.xml
<!-- tomcat1 index.jsp --> <%@ page language="java"contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <html> SessionID:<%=session.getId()%> </br> SessionIP:<%=request.getServerName()%> </br> <h2>tomcat1</h2> </html>
<!-- tomcat2 index.jsp --> <%@ page language="java"contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <html> SessionID:<%=session.getId()%> </br> SessionIP:<%=request.getServerName()%> </br> <h2>tomcat2</h2> </html>
./startup.sh
<ManagerclassName="de.javakaffee.web.msm.MemcachedBackupSessionManager" memcachedNodes="n1:192.168.17.9:11211" sticky="false" lockingMode="auto" sessionBackupAsync="false" requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$" sessionBackupTimeout="1000" transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"/>
./shutdown.sh ./startup.sh
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。