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! //端口通

猜你喜欢

转载自www.cnblogs.com/zhangyunfei-blog/p/9288497.html
今日推荐