Re: [問題] 請問tomcat 8005 shutdown port
※ 引述《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://www.ptt.cc/bbs/java/M.1411783827.A.397.html
推
09/27 11:26, , 1F
09/27 11:26, 1F
推
09/27 11:31, , 2F
09/27 11:31, 2F
→
09/27 11:32, , 3F
09/27 11:32, 3F
→
09/27 11:32, , 4F
09/27 11:32, 4F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
java 近期熱門文章
PTT數位生活區 即時熱門文章