测试远程端口
测试端口失败示例
localhost:~ mac$ nc -vz -w 2 219.159.12.30 1522
nc: connectx to 219.159.12.30 port 1522 (tcp) failed: Connection refused
测试端口成功示例
localhost:~ mac$ nc -vz -w 2 219.159.12.30 1521
found 0 associations
found 1 connections:
1: flags=82<CONNECTED,PREFERRED>
outif en0
src 10.75.104.222 port 64294
dst 219.159.12.30 port 1521
rank info not available
TCP aux info available
Connection to 219.159.12.30 port 1521 [tcp/ncube-lm] succeeded!