V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
nyxsonsleep
V2EX  ›  Linux

Linux 莫名自动配置了 http_proxy

  •  
  •   nyxsonsleep · 44 天前 · 1056 次点击
    这是一个创建于 44 天前的主题,其中的信息可能已经有所发展或是发生改变。

    虚拟机上的 linux 自动配置了主机上的 clash 的端口 ip:port 。

    使用的 mobaxterm 。

    .bashrc 里没有搜索到 ip:port 字段

    这是在什么地方被配置了?

    9 条回复    2024-03-17 16:20:52 +08:00
    nagisaushio
        1
    nagisaushio  
       44 天前   ❤️ 1
    /etc/profile 看看
    om2mo
        2
    om2mo  
       44 天前
    exportq
    om2mo
        3
    om2mo  
       44 天前
    export
    nxuu
        4
    nxuu  
       44 天前
    unset http_proxy 就取消了.
    nyxsonsleep
        5
    nyxsonsleep  
    OP
       43 天前
    @nxuu 它的关键问题是每次机器启动都会自动配置上这个。我还得在.bashrc 里配置取消这两个。
    nyxsonsleep
        6
    nyxsonsleep  
    OP
       43 天前
    @om2mo 可以看到这个字段被配置了,这个是有什么意图吗?
    nyxsonsleep
        7
    nyxsonsleep  
    OP
       43 天前
    @nagisaushio 有效,感谢。
    问了好几个 ChatGPT 工具都没答上来,还得靠论坛里面的 hxd
    julyclyde
        8
    julyclyde  
       42 天前
    顺着 shell 的进程号一层层往上找就知道是在哪儿加进去的了
    如果只有 shell 才有,那就是 profile 之类的
    如果都有,就是/etc/environment
    guanzhangzhang
        9
    guanzhangzhang  
       41 天前
    ```
    find /etc -type f -size -5M -exec grep -Pl 'https?_proxy' {} \;
    ```
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1715 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 16:29 · PVG 00:29 · LAX 09:29 · JFK 12:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.