linux中杀死tcp连接或会话的命令是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8278602/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 02:35:02  来源:igfitidea点击:

what is the command in linux to kill tcp connection or session?

linuxsocketsnetworkingtcpnetstat

提问by Syedsma

Possible Duplicate:
How do I break an arbitrary TCP/IP connection on Linux?

可能的重复:
如何在 Linux 上断开任意 TCP/IP 连接?

I want to close the socket connection cretead for some clients in server machine i want to do this using command line. I know only port and ip of client

我想关闭服务器计算机中某些客户端的套接字连接 cretead 我想使用命令行执行此操作。我只知道客户端的端口和IP

plz let me know any command in linux

请让我知道 linux 中的任何命令

回答by Rasive

Something like this

像这样的东西

tcpkill -i eth0 host 192.168.1.100 port 8080