查找所有端口:

centos:        netstat -ntlp  或者 netstat -tunlp

windows:     netstat -ano

查找某个特定端口:

centos:        netstat -lnp|grep 端口号 或者 netstat -tunlp|grep 端口号

windows:     netstat -ano|findstr 端口号

查找占用端口的进程详细信息:

centos:        ps 进程号(PID)

windows:     tasklist|findstr 进程号(PID)

根据PID杀死进程:

centos:         kill -9 进程号

windows:     taskkill /pid 进程号 -t -f

相关文章:

  • 2022-01-27
  • 2021-08-10
  • 2022-01-15
  • 2021-05-30
  • 2021-11-26
  • 2021-06-26
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2022-02-02
  • 2021-11-30
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2021-10-06
  • 2021-06-15
相关资源
相似解决方案