linux

作者: chenanle | 来源:发表于2017-06-26 22:14 被阅读0次
  • 查看端口是否存在指令:
netstat -tunlp |grep 22
  • [windows下端口占用解决方法-查看和杀死占用端口进程:
以杀死占用了80端口的进程为例:

1、根据端口号“80”查找进程号
netstat -ano|findstr "80"
TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       7796


2、根据进程号“7796”查找进程名
tasklist|findstr 7796
java.exe                      7796 Console                    1     57,368 K


3、根据进程名杀死进程
taskkill /f /t /im java.exe
成功: 已终止 PID 7796 (属于 PID 9052 子进程)的进程。

相关文章

网友评论

      本文标题:linux

      本文链接:https://www.haomeiwen.com/subject/nillzttx.html