之前调用tomcat的shutdown.sh无法关闭tomcat,一直报could not contact localhost8005 tomcat may not be running错。

在网上找了半天答案,一直以为问题出在shutdown.sh上,

其实是我的思路想错了,shutdown.sh报这个错本身没任何问题,提示也说的很清楚“tomcat may not be running”,tomcat可能没启动,没启动自然也就无法关闭了。

 

而这次我真正的问题是调用了startup.sh,且也显示了tomcat start,但ps -ef|grep java后却没有tomcat进程。

最后查明原因是server.xml配置错误,导致tomcat没有启动。(貌似tomcat启动时即使失败也不会报具体的错)

相关文章:

  • 2021-11-07
  • 2021-10-14
  • 2022-12-23
  • 2021-12-07
  • 2021-08-26
  • 2022-12-23
  • 2021-07-14
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2021-06-26
  • 2021-06-30
  • 2021-10-16
  • 2021-10-05
相关资源
相似解决方案