在两台主机上都加入测试页面: [root@vm2 ~]# vim /usr/local/tomcat/webapps/ROOT/test.jsp The time is: <%= new java.util.Date() %> [root@vm2 ~]# scp /usr/local/tomcat/webapps/ROOT/test.jsp 192.168.1.4:/usr/local/tomcat/webapps/ROOT/ 开启服务: [root@vm2 ~]# /usr/local/tomcat/bin/startup.sh [root@vm4 ~]# /usr/local/tomcat/bin/startup.sh 接下来进行测试:192.168.1.3/test.jsp