Linux设置http代理
设置http/https代理:
export https_proxy="127.0.0.1:12333"
export http_proxy="127.0.0.1:12333"
如果有密码:
export http_proxy_user=test
export http_proxy_pass=test
测试代理http/https:
curl http://www.google.com
curl https://www.google.com
取消http/https代理设置:
unset http_proxy
unset https_proxy