关于idea tomcat要点击两次stop才能停止
点击tomcat stop按钮后,出现以下提示
org.apache.catalina.startup.Catalina.stopServer No shutdown port configured. Shut down server through OS signal. Server not shut down.
并且tomcat并没有停止,还需要再点击一次stop
解决方案 修改tomcat 目录下的 conf\server.xml 将 <Server port="-1" shutdown="SHUTDOWN"> 中的 -1 改为 8005
修改前:
<Server port="-1" shutdown="SHUTDOWN">
修改后:
<Server port="8005" shutdown="SHUTDOWN">