Tomcat startup parameter specifies the port by way of

  1. The start port is modified in server.xml variable placeholders.
<Connector port="${http.port}" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
  1. First start the next test, as expected, it failed.
    Here Insert Picture Description
  2. Increase in the startup.sh
JAVA_OPTS="$JAVA_OPTS  -Dhttp.port='50000'"
  1. start up.
    Here Insert Picture Description
Published 12 original articles · won praise 2 · Views 660

Guess you like

Origin blog.csdn.net/gonghaiyu/article/details/104472358