我想编写shell脚本来启动和停止tomcat服务器.为了停止tomcat我使用这个命令"./bin/shudown.sh"或"./bin/catalina.sh stop".这在大多数情况下都不起作用,tomcat仍在运行.所以我想在给出shutdown命令之后杀死tomcat并等待一段时间(比如5分钟).任何人都可以帮我怎么做?
linux bash shell tomcat
bash ×1
linux ×1
shell ×1
tomcat ×1