telnet command to shut down tomcat

At the command line, type: telnet after ip port, and then type the uppercase SHUTDOWN. Which is the default port 8005

The default server.xml has the following line:

<Server port="8005" shutdown="SHUTDOWN"/>This allows anyone to telnet server port 8005, enter "SHUTDOWN", and then enter the server immediately be turned off.

From the security point of view, we need to put this string into a shutdown instruction of others is not easy to guess.

For example, by the following: <Server port="8006" shutdown="xxxxxx"/>Thus, only the telnet to 8006, and inputs "xxxxxx" to be able to close the Tomcat.

Note: This change does not affect the implementation of shutdown.bat. Shutdown.bat can still run off the server.

Guess you like

Origin blog.csdn.net/huangbaokang/article/details/94740753