| 1. |
How To We Can Change Tomcat Default Port? |
|
Answer» 8080 is the DEFAULT HTTP port that Tomcat attempts to bind to at startup. To change this, we need to change port in $ TOMCAT_HOME /conf/server.xml, in that we can search 8080 and after getting below STATEMENT <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> We can change 8080 to other port LIKE 8081, we need to restart tomcat to take effect. We required changes in URL as http://localhost:8081/. 8080 is the default HTTP port that Tomcat attempts to bind to at startup. To change this, we need to change port in $ TOMCAT_HOME /conf/server.xml, in that we can search 8080 and after getting below statement <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> We can change 8080 to other port like 8081, we need to restart tomcat to take effect. We required changes in URL as http://localhost:8081/. |
|