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协议)
- 文章链接: https://blog.zhangcun.store/2022/04/21/linux-dai-li-shang-wang/
- 版权声明: 本网站所有文章除特别声明外,均采用 CC BY-NC-ND 4.0 许可协议。转载请注明出处!
你的赏识是我前进的动力
支付宝
微信