gpt4 book ai didi

linux - 如何找出 ubuntu 中 http_proxy 设置的位置?

转载 作者:太空宇宙 更新时间:2023-11-04 05:16:00 31 4
gpt4 key购买 nike

当我打开一个新终端并执行“导出”时,我总是可以在那里找到“http_proxy=127.0.0.1:1080”。但在我的主文件夹中检查 .bashrc 后,发现与变量“http_proxy”没有任何关系。那么问题是,环境变量 http_proxy 可能在哪里设置?或者我怎样才能找到“http_proxy”设置的位置?

最佳答案

终端中的 grep 也可能有帮助:

grep --exclude-dir={proc,tmp,mnt,sys,boot,run} --exclude=\*.{md,js,html} -rnw / -e 'http_proxy'>>http_proxy.log

打印到当前文件夹http_proxy.log后,我们可以尝试找到http_proxy的设置位置。

关于linux - 如何找出 ubuntu 中 http_proxy 设置的位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49334646/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com