windows查看并杀死指定端口进程(Web server failed to start. Port 8761 was already in use.)

开始---->运行---->cmd,或者是window+R组合键,调出命令窗口

windows查看并杀死指定端口进程(Web server failed to start. Port 8761 was already in use.)

 

 

输入命令:netstat -ano,列出所有端口的情况。

windows查看并杀死指定端口进程(Web server failed to start. Port 8761 was already in use.)

 

查看被占用端口对应的PID,输入命令:netstat -aon|findstr "8761",回车,记下最后一位数字,即PID,这里是2388,输入命令:netstat -aon|findstr "8093",回车,记下最后一位数字,即PID,这里是5176,。

 windows查看并杀死指定端口进程(Web server failed to start. Port 8761 was already in use.)

 

 继续输入tasklist|findstr "2388",回车,查看是哪个进程或者程序占用了2388端口,结果是:java.exe

 windows查看并杀死指定端口进程(Web server failed to start. Port 8761 was already in use.)

 

 根据PID杀死指定进程

taskkill -F/pid 2388

windows查看并杀死指定端口进程(Web server failed to start. Port 8761 was already in use.)

 

windows查看并杀死指定端口进程(Web server failed to start. Port 8761 was already in use.)

上一篇:windows10系统开机提示“您已使用临时配置文件登陆”的解决方法


下一篇:面试 -- 关于Activity的相关知识