curl HTTPS 报错curl: (7) couldn't connect to host

xiaoxiao2021-02-28  19

使用curl 命令,无法访问HTTPS,访问Http是正常的 ,

使用curl -V查询版本以及支持的协议

   测试将访问防火墙给关闭了 ,正常访问 ,看来还是问题还是出现在防火墙。查看防火墙的配置:

添加:-A INPUT -p tcp --sport 443 -j ACCEPT 正常访问

防火墙 iptable --dport  (--sport)的区别:

dport:目的端口 ,数据要到达的目的端口。

sport:来源端口 ,数据来源的端口。

转载请注明原文地址: https://www.6miu.com/read-2250120.html

最新回复(0)