How to change port number of apache tomcat?
What is port number?
Port number is a four digit number that is basically used to identify the particular application. One application can be run on one port number you cannot run multiple application on same port number on a same machine.
Need of changing port number?
By default the port number of the apache-tomcat and oracle is same, it 8080 and you cannot run multiple application on a same machine with same port number, so that you have to change the port number of the tomcat or oracle.
Steps to change the port number of tomcat
Step 1: Go to the apache-tomcat-7.0.59\conf.
Step 2: Open server.xml file in the text editor like notepad
Step 3: Find the Connector port and change the value of it
<Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
Note: It must be four digit Number.
Step 4: Save this file and restart the server.