linux 代理上网
发表于:2022-04-21 |
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协议)
上一篇:
shell脚本中按日期遍历文件
下一篇:
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.