How to change tomcat port number

Siva Siva picture Siva Siva · Aug 24, 2013 · Viewed 286.9k times · Source

I am developing a web application in JSP, in that for some purpose I need to change tomcat accessing port.

Is there any possibility?

Answer

kark picture kark · Aug 24, 2013

Simple !!... you can do it easily via server.xml

  • Go to tomcat>conf folder
  • Edit server.xml
  • Search "Connector port"
  • Replace "8080" by your port number
  • Restart tomcat server.

You are done!.