How can I kill TCP port 16969 in Bash?

后端 未结 4 840
小鲜肉
小鲜肉 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

    Have you tried using tcpkill?

    example:

    tcpkill -i eth0 port 21
    

提交回复
热议问题