When I tried to change tomcat shut down port from 8005 to -1 and starting tomcat, it did not start and threw an "invalid port number" exception.

Is there any process for changing tomcat shutdown port to -1?


From the docs:


The TCP/IP port number on which this server waits for a shutdown command. Set to -1 to disable the shutdown port.

So you can set the port value to -1 to disable the shutdown port; note, however, that this is merely a configuration setting of Tomcat as port numbers have positive integer values.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.