Re: [問題] 請問tomcat 8005 shutdown port

看板java作者 (有些事,有時候。。。)時間10年前 (2014/09/27 10:10), 編輯推噓2(202)
留言4則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《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
我剛剛設為-1,結果log會出現
09/27 11:31, 2F

09/27 11:32, , 3F
IllegalArgumentException: Port value out of -1
09/27 11:32, 3F

09/27 11:32, , 4F
這有點討厭就是了
09/27 11:32, 4F
文章代碼(AID): #1K9XoJEN (java)
討論串 (同標題文章)
文章代碼(AID): #1K9XoJEN (java)