17.session信息还是原来的,好现在咱们开启node1,关闭node2,在测试一下,session信息、
[root@node1 ~]# /data/node1/bin/startup.sh
Using CATALINA_BASE: /data/node1
Using CATALINA_HOME: /data/node1
Using CATALINA_TMPDIR: /data/node1/temp
Using JRE_HOME: /data/jdk1.7.0_71/jre
Using CLASSPATH: /data/node1/bin/bootstrap.jar:/data/node1/bin/tomcat-juli.jar
Tomcat started.
[root@node1 ~]# netstat -anpt | grep java
tcp 0 0 :::8080 :::* LISTEN 9144/java
tcp 0 0 ::ffff:127.0.0.1:8005 :::* LISTEN 9144/java
tcp 0 0 :::8009 :::* LISTEN 9144/java
tcp 0 0 ::ffff:192.168.1.15:58421 ::ffff:192.168.1.84:11211 ESTABLISHED 9144/java
tcp 0 0 ::ffff:192.168.1.15:58418 ::ffff:192.168.1.84:11211 ESTABLISHED 9144/java
tcp 0 0 ::ffff:192.168.1.15:58419 ::ffff:192.168.1.84:11211 ESTABLISHED 9144/java
tcp 0 0 ::ffff:192.168.1.15:58420 ::ffff:192.168.1.84:11211 ESTABLISHED 9144/java
[root@node2 ~]# /data/node2/bin/shutdown.sh
Using CATALINA_BASE: /data/node2
Using CATALINA_HOME: /data/node2
Using CATALINA_TMPDIR: /data/node2/temp
Using JRE_HOME: /data/jdk1.7.0_71/jre
Using CLASSPATH: /data/node2/bin/bootstrap.jar:/data/node2/bin/tomcat-juli.jar
[root@node2 ~]# ps -ef | grep java
root 2896 2081 0 17:31 pts/0 00:00:00 grep java
session共享成功实现。
RedHat Linux 5.5安装JDK+Tomcat并部署Java项目
Linux下使用Xshell查看Tomcat实时日志中文乱码解决方案