a) Modify the port number:find the Server.xml inside the Conf in the Tomcat filein the file after Tomcat decompression, follow the action
Open the fileafter the file is opened ( e.g. ) Tomcat default 8080 port, the system default configurationModify the Tomcat server-initiated port to port 8081This will change the original port to port 8081, but after modifying the configuration file (*.xml), the Tomcat server will rebootto modify the previous port number:the port number after modification:after reboot: Access to the Tomcat server must also be accessed with the new Access port: http://localhost:8081/, as shown in:II) The problem with the Tomcat port being occupied1) Open cmd (enter cmd in the menu)2) Open after input command: Netstat-anoExample:3) Find the port number to see if there are 8080 ports occupied 4) Right-click on the taskbar in the lower left corner of the computer , then tap task management 5) Find 8080 corresponding process number, end the process can solve the problem
6) Access to the Tomcat server must also be accessed with the new Access port: http://localhost:8081/, as shown in:
A workaround for the Tomcat port number being occupied or modifying the port number