ping /n 60 127.1>null C:\apache-tomcat-8.5.38\bin\startup.bat
可以写一个监控tomcat进程存活的脚本,一旦监控到进程被kille,就执行tomcat启动脚本复活它。做成系统的定时任务。