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