首页  :: 新随笔  :: 管理

centos 启动一个tcp/UDP服务程序(端口检测)

Posted on 2019-09-22 00:52  季枫  阅读(4060)  评论(0编辑  收藏  举报

需要先yum安装:

yum install nc

启动TCP服务:

nc -l 80

 

 

启动一个udp协议端口:

nc -l -u 8888

监控udp数据包:

tcpdump -i eth1 -s 0 port 8888

客户端测试:

nc -vuz 10.42.160.231 8888

 

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |