好记性不如烂笔头。

linux /etc/profile 代理

export PATH=$PATH:/usr/local/go/bin export GO111MODULE=on export GOPROXY=https://goproxy.cn export proxy="http://v2ray.you.domain:10809" export http_proxy=$proxy export https_proxy=$proxy export no_proxy="localhost,127.0.0.1,::1"