Dos命令查看端口占用及关闭进程

1. 查看端口占用

在windows命令行窗口下执行:

netstat -aon|findstr "8080" 
TCP     127.0.0.1:80         0.0.0.0:0               LISTENING       2448

端口“8080”被PID(进程号)为2448的进程占用。

2. 关闭进程

taskkill /f /pid 2448

猜你喜欢

转载自blog.csdn.net/u012755196/article/details/80898238