eclipse中 tomcat 被占用

 

 

今天 遇到的问题 :

Several ports (8005, 8080, 8009) required by Tomcat v8.0 Server at localhost are 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).

解决办法:1-> 打开命令窗口,输入 cmd.exe ,

     2-> 在命令行窗口中输入netstat -ano ,   

       3-> 或者在命令行输入 netstat -ano |findstr 8080  

    4-> 打开任务管理器,点击详细信息 ,点击 PID,使 pid 按顺序排列,找到 8080 端口对应的PID,也就是 进程名为 javaw.exe 的进程,然后结束进程。

    

    5-> 重新启动 tomcat ,就可以了 !!!!

 

 

 

 

 

posted @ 2018-01-19 16:27  stujike123456  阅读(88)  评论(0)    收藏  举报