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