How can I kill TCP port 16969 in Bash?

后端 未结 4 911
小鲜肉
小鲜肉 2021-02-01 08:00

I have an application which uses TCP port 16969. It sometimes requires a quick software kernel reboot on the fly. But if I launch it too fast, I am locked with

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-01 08:58

    fuser -k 16969/tcp 
    

    can free that port. This is a useful command that can be used to close ports, whichever it is.

提交回复
热议问题