linux设置http,https代理
vim ~/.bashrc
或vim /etc/environment
-
export http_proxy='http://10.4.7.1:7897'
-
export https_proxy='http://10.4.7.1:7897'
-
export no_proxy='localhost,127.0.0.1,10.0.0.0/8,172.0.0.0/8,192.0.0.0/8'
source /etc/environment
检验是否生效
export -p