http://www.dearda.com/index.php/archives/1163
有时候碰到某些情景需要把一些tcp连接结束掉而不想重启服务器,可以通过安装dsniff实现。
http://pkgs.repoforge.org/dsniff/ 再此找到相应的rpm包,安装好之后会有tcpkill此命令。
命令实例如下:
tcpkill -9 port ftp &>/dev/null
tcpkill -9 host 10.7.1.11 &>/dev/null
tcpkill -9 port 25 and port 8080 &>/dev/null
tcpkill -9 net 10.7.1 &>/dev/null
tcpkill -9 net 10.7.1 and port 22 &>/dev/null
本文介绍如何通过安装dsniff来结束特定TCP连接的方法,包括使用tcpkill命令进行实例操作。

1579

被折叠的 条评论
为什么被折叠?



