Linux 程序已经退出 端口依然被占用

内容纲要

程序关闭后,端口已经被占用,使用

netstat -npla | grep {端口号}

可以看到被占用的端口及进程号,但是使用 kill 却提示找不到进程。

1、强制杀死该端口进程

      sudo fuser -k -n tcp 80

2、根据PID关闭某个被占用的端口

      netstat -tunlp | grep 80
      lsof -i:80
      sudo kill -9 PID
点赞
  1. cheap zyprexa说道:

    Thanks for the tips about credit repair on this blog. Things i would advice people would be to give up the mentality that they'll buy right now and pay later. As a society all of us tend to do this for many things. This includes holidays, furniture, as well as items we want. However, you have to separate your own wants from all the needs. When you are working to improve your credit rating score you have to make some sacrifices. For example you are able to shop online to save money or you can turn to second hand shops instead of costly department stores with regard to clothing.

发表评论

邮箱地址不会被公开。 必填项已用*标注

You must enable javascript to see captcha here!