gpt4 book ai didi

tomcat - 如何关闭Apache Tomcat9.0服务器

转载 作者:行者123 更新时间:2023-12-04 00:55:25 26 4
gpt4 key购买 nike

使用启动启动服务器时,cmd 代码是这样的。

C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin>startup
Using CATALINA_BASE: "C:\Program Files\Apache Software Foundation\Tomcat 9.0"
Using CATALINA_HOME: "C:\Program Files\Apache Software Foundation\Tomcat 9.0"
Using CATALINA_TMPDIR: "C:\Program Files\Apache Software Foundation\Tomcat 9.0\temp"
Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_192"
Using CLASSPATH: "C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin\tomcat-juli.jar"
**当使用 shutdown 关闭它时,它不会发生,在 cmd 上它是这样的。
C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin>shutdown
Using CATALINA_BASE: "C:\Program Files\Apache Software Foundation\Tomcat 9.0"
Using CATALINA_HOME: "C:\Program Files\Apache Software Foundation\Tomcat 9.0"
Using CATALINA_TMPDIR: "C:\Program Files\Apache Software Foundation\Tomcat 9.0\temp"
Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_192"
Using CLASSPATH: "C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin\tomcat-juli.jar"
15-Jul-2020 15:03:51.192 SEVERE [main] org.apache.catalina.startup.Catalina.stopServer No shutdown port configured. Shut down server through OS signal. Server not shut down.
和往常一样,我的服务器在 chrome 上运行,即使我在服务上停止了它
谁能告诉我这个问题的解决方案。

最佳答案

您能否确认您是否使用 Shutdown 端口?确保您在 server.xml 中使用关闭端口,即

<Server port="8005" shutdown="SHUTDOWN">
Why have a shutdown port in Tomcat?请参阅以获取更多信息。

关于tomcat - 如何关闭Apache Tomcat9.0服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62912431/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com