windows系统中关闭指定端口呢?
今天使用IDEA调试程序时,一直提示端口被占用(Address already in use),那么如何解决这个问题呢?
我们只需找到占用端口的进程ID,然后杀死进程即可例:关闭指定端口上的进程方法
1、打开cmd输入netstat -ano | findstr xxx 查看占用该端口的进程PID,其中xxx为具体的端口 (最后面为进程ID号) 2.根据PID获取进程名 tasklist | findstr PID 3.根据进程名字关闭进程 taskkill -f -t -im 进程名

版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。