To solve the port occupation, change port 8080 to 80 to quickly open localhost:
Open the tomcat folder --> find conf --> server.xml --> open it with Notepad
turn up:
Change Connector port="8080" to 80 as shown in the figure above --> restart tomcat --> complete the port change --> directly enter localhost:80 next time and the following screenshot will appear: