root@web1 ~]# rm -rf /usr/local/tomcat/webapps/ROOT/*
1.创建测试网页
[root@web1 ROOT]# vim /usr/local/tomcat/webapps/ROOT/test.jsp
<html>
<body>
<center>
Now time is: <%=new java.util.Date()%> //显示当前时间
</center>
</body>
</html>
2.重启Tomcat服务
[root@web1 ROOT]# shutdown.sh
[root@web1 ROOT]# startup.sh
[root@web1 ROOT]# ss -ntulp | grep java
tcp LISTEN 0 100 :::8009 :::* users:(("java",pid=8419,fd=54))
tcp LISTEN 0 100 :::8080 :::* users:(("java",pid=8419,fd=49))
tcp LISTEN 0 1 ::ffff:127.0.0.1:8005 :::* users:(("java",pid=8419,fd=70))
3.测试
[root@web1 ROOT]# curl 192.168.1.10:8080/test.jsp
<html>
<body>
<center>
Now time is: Tue Sep 08 10:32:08 CST 2020
</center>
</body>
</html>