- 登录需要代理上网的centos主机,编辑etc/profile
http_proxy=http://xxxxx:xxxx
https_proxy=http://xxxxx:xxxx
export http_proxy
export https_proxy
- 新增保存后,刷新etc/profile文件
- curl www.baidu.com测试
http_proxy=http://xxxxx:xxxx
https_proxy=http://xxxxx:xxxx
export http_proxy
export https_proxy