Tomcat 8.5.43 - shutdown.sh 不会停止进程

Tomcat 8.5.43 - shutdown.sh 不会停止进程

团队,我们正在使用雄猫 8.5.43,它完美地启动应用程序,但是在使用 shutdown.sh 时它不起作用,我的意思是它给出了下面的内容

[alfresco@ind785 bin]$ ./shutdown.sh
Using CATALINA_BASE:   /opt/alfresco/alfresco-6.2.2/tomcat
Using CATALINA_HOME:   /opt/alfresco/alfresco-6.2.2/tomcat
Using CATALINA_TMPDIR: /opt/alfresco/alfresco-6.2.2/tomcat/temp
Using JRE_HOME:        /opt/alfresco/alfresco-6.2.2/java
Using CLASSPATH:       /opt/alfresco/alfresco-6.2.2/tomcat/bin/bootstrap.jar:/opt/alfresco/alfresco-6.2.2/tomcat/bin/tomcat-juli.jar
NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
OpenJDK 64-Bit Server VM warning: Ignoring option PermSize; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Jul 20, 2021 1:17:27 AM org.apache.catalina.startup.Catalina stopServer
SEVERE: Could not contact [localhost:[8005]]. Tomcat may not be running.
Jul 20, 2021 1:17:27 AM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused (Connection refused)
        at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
        at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
        at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
        at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
        at java.base/java.net.Socket.connect(Socket.java:609)
        at java.base/java.net.Socket.connect(Socket.java:558)
        at java.base/java.net.Socket.<init>(Socket.java:454)
        at java.base/java.net.Socket.<init>(Socket.java:231)

这是全新安装的tomcat,没有任何改变。我每次都需要手动杀死 PID,而不是 shutdown.sh 本身能够以正确的方式杀死它。

笔记 :我使用 OpenJDK11U-jdk_x64_linux_11.0.7_10.tar.gz 作为 JDK

关于端口 8005,我与我的 Unix 团队确认,它不需要从 IPTables 打开,因为它只对本地开放。同样适用于旧版本的 tomcat 7

任何配置更改或任何需要的更改都请告诉我。

相关内容