Linux测试端口是否可用

Linux测试端口是否可用

TCP 端口测试

格式:telnet ip port 
telnet 10.25.5.13 22 Trying 10.25.5.13... Connected to 10.25.5.13.  //端口通 Escape character is '^]'. 退出使用 quit 
telnet 10.25.5.13 80 Trying 10.25.5.13... telnet:connect to address 10.25.5.13: Connection refused  //端口不通 

UDP 端口测试

例如测试告警信息通过syslog发送到某IP端口 nc -vuz 10.25.5.62 514 Connection to 10.25.5.62 514 port [udp/syslog] succeeded! //端口通
posted @ 2018-07-10 13:14  飞入云端_blog  阅读(3530)  评论(0编辑  收藏  举报