一、报错信息

  1. localhost:8080 is already in use
  2. Port 8080 required by Tomcat v8.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
  3. Error running Tomcat8: Address localhost:8080 is already in use

一、分析并解决问题

电脑中8080端口被占用,导致web项目不能运行

任务管理器关闭占用8080端口的程序

netstat -ano

javaweb-8080端口被占用 - 图1

tasklist

javaweb-8080端口被占用 - 图2
javaweb-8080端口被占用 - 图3

任务管理器

javaweb-8080端口被占用 - 图4