6.0.41实现负载均衡(2)

<%
out.println("<br>Session ID : " + session.getId() + "<br>");
session.setAttribute("myname", "session");
String dataName = request.getParameter("dataName");
if(null!=dataName && dataName.length()>0){
 String dataValue = request.getParameter("dataValue");
 session.setAttribute(dataName, dataValue);
}
out.print("<b>Session 列表</b><br>");
java.util.Enumeration e = session.getAttributeNames();
while(e.hasMoreElements()){
 String name = (String)e.nextElement();
 String value = session.getAttribute(name).toString();
 out.println( name + " = " + value+"<br>");
}
%>

<form action="demo.jsp" method="POST">
 属性名:<input type=text size=20><br>
 属性值:<input type=text size=20><br>
 <input type=submit>
</form>

jkstatus效果图

搭建LVS负载均衡测试环境

Apache负载均衡的实现

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/c075999404e64c82af23a744f57876b4.html