The default port of tomcat is 8080, and it will also occupy ports 8005, 8009 and 8443. If tomcat has been started,
Start another tomcat and you will find that these ports are already occupied. At this time, you need to modify the port number.
Here's how to change the default port number of tomcat:
Step 1: Enter the installation directory of tomcat and find the conf folder
Step 2: Find the server.xml configuration file in the conf directory and open it with Notepad
Step 3: Modify the default access port 8080 of tomcat to 80
change into:
Port 80 is the default port for our Internet and can be omitted in browsers.