后来发现是因为使用了命令sh bin/startup.sh&tail -f logs/catalina.out 启动查看日志,此时强制关闭xshell,在登陆xshell,使用grep查看运行的tomcat,发现tomcat已关闭. 查看日志后须要crtl+C 退出后再关闭xshell.web