Current location - Quotes Website - Collection of slogans - In the construction of javaEE development environment, Eclipse configuration web project is started with tomcat, and this process always reports that the port number is occupied. How to solve it?
In the construction of javaEE development environment, Eclipse configuration web project is started with tomcat, and this process always reports that the port number is occupied. How to solve it?
Method of modifying tomcat port number:

Modify the Server.xml file and change port 8080 to 80.

8080 is the default port number of Tomcat server. We can change it by modifying the main configuration file server.xml in the conf directory of the Tomcat server. Open the server.xml file with Notepad and find the following section:

The following is a quote:

& lt connector port = "8080" maxhttpheader size = "8192"

maxThreads = " 150 " minSpareThreads = " 25 " maxSpareThreads = " 75 "

enable lookups = " false " redirect port = " 8443 " accept count = " 100 "

connection time out = " 20000 " disableuploadtime out = " true "/& gt;

Just change port="8080 "to a new port number, for example, change" 8080 "to" 9080 ".