Monday, March 9, 2020

How to change tomcat port number

Tomcat will be by default configured to run on port 8080, sometimes our system/machine may already using port 8080. so that time we need to change the port.

Following simple steps help to change the tomcat port. but before changing make sure a new port is in used.

check used ports from machine/system: netstat –aon ( run this from command prompt) then choose which is not used from range.
For example, if 9090 is not in use.

Updation steps:
  •       Go to tomcat_home>conf folder
  •       Edit server.xml
  •       Search for "Connector port"

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
 redirectPort="8443" />
  •       Replace "8080" by your port number ex: 9090
               <Connector port="9090" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

  •       Restart tomcat server

Happy learningJ

1 comment:

  1. Listen...

    This might sound really creepy, and maybe even a little "supernatural"

    WHAT if you could just click "Play" and LISTEN to a short, "magical tone"...

    And magically bring MORE MONEY into your life???

    And I'm really talking about thousands... even MILLIONS of DOLLARS!!

    Sounds way too EASY??? Think it couldn't possibly be REAL?!?

    Well, I'll be the one to tell you the news.

    Many times the greatest miracles life has to offer are the easiest to GET!!

    In fact, I will provide you with PROOF by allowing you to listen to a REAL "magical money tone" I've synthesized...

    You just click "Play" and you will start having more money come into your life. starting so fast, you will be surprised.

    GO here now to play the wonderful "Miracle Money-Magnet Tone" - it's my gift to you!!

    ReplyDelete