通过nc命令实时监控某个端口
#/bin/bash
while [ 1 ]
do
nc -v -z api.weixin.qq.com 443 >> /tmp/api.weixin.qq.com.status.log
sleep 1s
done
时间: 2024-11-08 19:25:20
通过nc命令实时监控某个端口
#/bin/bash
while [ 1 ]
do
nc -v -z api.weixin.qq.com 443 >> /tmp/api.weixin.qq.com.status.log
sleep 1s
done