1、 打开~/.bashrc,末尾添加代理服务器地址 export http_proxy="http://1.2.3.4:3128" export https_proxy="https://1.2.3.4:3128" 2、执行source命令生效 source ~/.bashrc