作者qrtt1 (有些事,有时候。。。)
看板java
标题Re: [问题] 请问tomcat 8005 shutdown port
时间Sat Sep 27 10:10:23 2014
※ 引述《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.
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 36.231.129.97
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/java/M.1411783827.A.397.html
1F:推 pttnews: 感恩~谢谢您 09/27 11:26
2F:推 pttnews: 我刚刚设为-1,结果log会出现 09/27 11:31
3F:→ pttnews: IllegalArgumentException: Port value out of -1 09/27 11:32
4F:→ pttnews: 这有点讨厌就是了 09/27 11:32