在go get 或者go install 时,代理报错,比如
proxyconnect tcp: dial tcp: lookup 3128: no such host
dial tcp: lookup proxy.golang.com.cn on 8.8.4.4:53: read udp 192.168.192.22:35810->8.8.4.4:53: i/o timeout
这通常是因为没有配置系统代理或者系统代理配置有误
解决方案:
export https_proxy="http://yourname:password@host:port/"
export http_proxy="http://yourname:password@host:port/"
再次执行go get 或者go install命令即可
标签:http,centos,get,代理,tcp,install,go From: https://www.cnblogs.com/Ronnie-97/p/17023934.html