方法一 添加代理设置,添加环境变量 export http_proxy="http://127.0.0.1:8123" export https_proxy="http://127.0.0.1:8123" source /etc/profile 取消代理 unset http_pro