linux:
netstat -anp | grep 9000 查找进程
windows:
netstat -ano | findstr “9099”
tasklist | findstr 9099 查找使用端口的服务过滤
taskkill -f- t /im 9099 杀掉进程
本文介绍如何在Linux和Windows系统中查询指定端口的使用情况及如何终止相关进程。针对不同操作系统提供了具体命令,如使用netstat检查端口状态、通过tasklist查看服务并利用taskkill结束进程。
linux:
netstat -anp | grep 9000 查找进程
windows:
netstat -ano | findstr “9099”
tasklist | findstr 9099 查找使用端口的服务过滤
taskkill -f- t /im 9099 杀掉进程
3582

被折叠的 条评论
为什么被折叠?