[net]netcat 做网络端口监听
nc命令说明:https://www.cnblogs.com/nmap/p/6148306.html
如下:
nc -vz -w 5 domain/ip 10083 &> /dev/null && echo "online" || echo "offline"
nc命令说明:https://www.cnblogs.com/nmap/p/6148306.html
如下:
nc -vz -w 5 domain/ip 10083 &> /dev/null && echo "online" || echo "offline"