Find the server.xml file in the conf folder of Tomcat, and modify it according to your needs. (here is modified)
The port number occupied by Tomcat after opening: (generally changed to a number larger than 8080, do not occupy the port of the operating system)
Port numbers closed to Tomcat: