maomaochong123

Linux篇:

  使用命令:lsof -i:被占用的端口号

会显示出程序,及程序的PID,执行:kill 程序的PID 。

如果提示没有安装lsof这个命令,CentOS可以执行:yum install lsof 安装,Debian可以执行:apt-get install lsof 安装。

 

2  Windows篇:

Windows上的工具比较多,如Active Ports,如果手头上没有现成的工具可以用命令:netstat -aon|findstr "80"

分类:

技术点:

相关文章:

  • 2021-12-15
  • 2021-05-14
  • 2021-12-22
  • 2021-12-03
  • 2021-12-15
  • 2021-10-05
  • 2022-02-08
  • 2021-07-11
猜你喜欢
  • 2021-12-15
  • 2021-12-25
  • 2021-06-17
  • 2022-01-19
  • 2021-12-15
  • 2021-12-15
相关资源
相似解决方案