vim /etc/profile
export http_proxy=http://172.17.1.101:808
export https_proxy=http://172.17.1.101:808
source /etc/profile
验证
[root@fabric8 ~]# curl -I https://www.baidu.com
HTTP/1.0 200 Connection established
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Connection: Keep-Alive
Content-Length: 277
Content-Type: text/html
Date: Tue, 04 Sep 2018 06:45:04 GMT
Etag: "575e1f5c-115"
Last-Modified: Mon, 13 Jun 2016 02:50:04 GMT
Pragma: no-cache
Server: bfe/1.0.8.18
不能ping (icmp协议)