云帆培训考试系统使用手册:建题库、出试卷、发考试,管理员端全流程详解
2026/8/25 17:58:08
# 测试能否访问并获取响应头(不下载正文)curl-Ihttps://qyapi.weixin.qq.com# 如果只关心是否连通,可加上 -s 静默模式,并通过 $? 判断curl-s-o/dev/null-w"%{http_code}\n"https://qyapi.weixin.qq.com 成功时,会返回200或其他 HTTP 状态码(如404),表示网络层和 SSL 握手成功。 若返回 curl:(6)Could not resolve host,表示 DNS 解析失败。 若返回 curl:(7)Failed to connect,表示无法连接(可能被防火墙阻断、端口不通)。 若返回 curl:(35)SSL connection error,表示 SSL/TLS 握手失败(可能是证书或时间问题)。telnet qyapi.weixin.qq.com443成功时,会看到 Connected to qyapi.weixin.qq.com 之类的提示。 如果长时间卡住或显示 Connection refused / No route to host,说明端口不可达或防火墙阻断了。nc-zvqyapi.weixin.qq.com443-z表示仅扫描端口,不发送数据;-v 显示详细信息。 成功输出类似 Connection to qyapi.weixin.qq.com port443[tcp/https]succeeded!。nslookupqyapi.weixin.qq.com# 或digqyapi.weixin.qq.comtimeout3bash-c"</dev/tcp/IP/port"&&echo"端口通-Yes"||echo"端口不通-No"