1、编辑文件/etc/profile,增加如下两行
export http_proxy=http://ip:port export https_proxy=http://ip:port
2、执行source /etc/profile,然后登出再登入生效

1、编辑文件/etc/profile,增加如下两行
export http_proxy=http://ip:port export https_proxy=http://ip:port
2、执行source /etc/profile,然后登出再登入生效