Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Apache Tomcat web server port number [closed]

Tags:

port

tomcat

How to change Apache Tomcat web server default port number?


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

like image 687
Siva Siva Avatar asked Aug 24 '13 06:08

Siva Siva


People also ask

Can we change Tomcat shutdown port?

In the Tomcat installation folder, open the Conf directory. Create a backup of the server. xml file. Modify the value of the port parameter to the desired value.

What is Tomcat server shutdown port?

Tomcat listens on TCP port 8005 to accept shutdown requests. By connecting to this port and sending the SHUTDOWN command, all applications within Tomcat are halted.


1 Answers

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!.

like image 175
kark Avatar answered Oct 03 '22 04:10

kark