window10下,命令行与端口

时间:2020-06-02 19:20:30   收藏:0   阅读:122

netstat -ano

查看端口情况

 

tasklist|findstr “9220”

通过PID号“9220”查看对应端口被什么进程占用了

 

netstat -aon|findstr "8080"

查看端口8080对应的PID

 

tskill 1844

结束PID为1844的进程

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!