在使用代理的服务器上“curl: (6) Could not resolve host:“问题的解决方案
1.http代理没有设置export http_proxy=http://xxxx:xxxx (ip|域名:端口)export https_proxy=https://xxxx:xxxx (ip|域名:端口)2.curl自身的代理这里可以参考文章《Linux curl命令使用代理、以及代理种类介绍(附:curl命令详解)》https://blog.csdn.net/Rong_Toa/article
·
1.http代理没有设置
export http_proxy=http://xxxx:xxxx (ip|域名:端口)
export https_proxy=https://xxxx:xxxx (ip|域名:端口)
2.curl自身的代理
这里可以参考文章《Linux curl命令使用代理、以及代理种类介绍(附:curl命令详解)》https://blog.csdn.net/Rong_Toa/article/details/108140796
这里我使用alias进行命令替换
alias curl="curl -x xxx:xxx"
更多推荐
所有评论(0)