0%

Linux && Windows杀死端口

关闭端口

Windows:
1
2
3
netstat -ano | findstr “端口号”

taskkill /f/t/im “进程id或者进程名称”

image-20210728153527961

Linux:
1
2
3
4
5
6
7
如果安装了lsof:
lsof -i:{端口号}
否则:
netstat -tunlp|grep {port}

杀死端口:
kill -9 {PID}
----------本文结束感谢您的阅读----------