Re: [问题] 请问tomcat 8005 shutdown port

楼主: qrtt1 (有些事,有时候。。。)   2014-09-27 10:10:23
※ 引述《pttnews (PTT新闻)》之铭言:
: Tomcat 安装时会默认开一个shutdown port
: 请问这是干啥么用? 会不会有资安问题?
: 要怎么disable?
: 谢谢!
qty:apache-tomcat-7.0.29 qrtt1$ bin/startup.sh
Using CATALINA_BASE: /Users/qrtt1/app/apache-tomcat-7.0.29
Using CATALINA_HOME: /Users/qrtt1/app/apache-tomcat-7.0.29
Using CATALINA_TMPDIR: /Users/qrtt1/app/apache-tomcat-7.0.29/temp
Using JRE_HOME: /Library/Java/Home
Using CLASSPATH: /Users/qrtt1/app/apache-tomcat-7.0.29/bin/bootstrap.jar:/Users/qrtt1/app/apache-tomcat-7.0.29/bin/tomcat-juli.jar
qty:apache-tomcat-7.0.29 qrtt1$ jps -l
3368 sun.tools.jps.Jps
955
3365 org.apache.catalina.startup.Bootstrap
qty:apache-tomcat-7.0.29 qrtt1$ lsof -p 3365 | grep 8005
java 3365 qrtt1 61u IPv6 0x3ba3ed4d7748e35b 0t0 TCP 10.0.1.58:8005 (LISTEN)
qty:apache-tomcat-7.0.29 qrtt1$ telnet 10.0.1.58 8005
Trying 10.0.1.58...
Connected to 10.0.1.58.
Escape character is '^]'.
SHUTDOWN
Connection closed by foreign host.
qty:apache-tomcat-7.0.29 qrtt1$ jps -l
955
3378 sun.tools.jps.Jps
qty:apache-tomcat-7.0.29 qrtt1$
=====================================================================
http://tomcat.apache.org/tomcat-7.0-doc/config/server.html
The TCP/IP port number on which this server
waits for a shutdown command.
Set to -1 to disable the shutdown port.
Note: Disabling the shutdown port works well
when Tomcat is started using Apache Commons Daemon
(running as a service on Windows or with jsvc on un*xes).
It cannot be used when running Tomcat with
the standard shell scripts though,
as it will prevent shutdown.bat|.sh and catalina.bat|.sh
from stopping it gracefully.
作者: pttnews (PTT新闻)   2014-09-27 11:26:00
感恩~谢谢您我刚刚设为-1,结果log会出现IllegalArgumentException: Port value out of -1这有点讨厌就是了

Links booklink

Contact Us: admin [ a t ] ucptt.com