Freeing up a TCP/IP port?

前端 未结 11 1085
时光取名叫无心
时光取名叫无心 2020-12-07 06:59

netstat -tulnap shows me what ports are in use. How to free up a port in Linux?

11条回答
  •  一向
    一向 (楼主)
    2020-12-07 07:36

    You can use tcpkill (part of the dsniff package) to kill the connection that's on the port you need:

    sudo tcpkill -9 port PORT_NUMBER
    

提交回复
热议问题