Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
nyxsonsleep
V2EX  ›  Linux

Linux 莫名自动配置了 http_proxy

  •  
  •   nyxsonsleep · Mar 14, 2024 · 1734 views
    This topic created in 797 days ago, the information mentioned may be changed or developed.

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

    使用的 mobaxterm 。

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

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

    9 replies    2024-03-17 16:20:52 +08:00
    nagisaushio
        1
    nagisaushio  
       Mar 14, 2024   ❤️ 1
    /etc/profile 看看
    om2mo
        2
    om2mo  
       Mar 14, 2024
    exportq
    om2mo
        3
    om2mo  
       Mar 14, 2024
    export
    nxuu
        4
    nxuu  
       Mar 14, 2024
    unset http_proxy 就取消了.
    nyxsonsleep
        5
    nyxsonsleep  
    OP
       Mar 15, 2024
    @nxuu 它的关键问题是每次机器启动都会自动配置上这个。我还得在.bashrc 里配置取消这两个。
    nyxsonsleep
        6
    nyxsonsleep  
    OP
       Mar 15, 2024
    @om2mo 可以看到这个字段被配置了,这个是有什么意图吗?
    nyxsonsleep
        7
    nyxsonsleep  
    OP
       Mar 15, 2024
    @nagisaushio 有效,感谢。
    问了好几个 ChatGPT 工具都没答上来,还得靠论坛里面的 hxd
    julyclyde
        8
    julyclyde  
       Mar 16, 2024
    顺着 shell 的进程号一层层往上找就知道是在哪儿加进去的了
    如果只有 shell 才有,那就是 profile 之类的
    如果都有,就是/etc/environment
    guanzhangzhang
        9
    guanzhangzhang  
       Mar 17, 2024
    ```
    find /etc -type f -size -5M -exec grep -Pl 'https?_proxy' {} \;
    ```
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2991 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 12:47 · PVG 20:47 · LAX 05:47 · JFK 08:47
    ♥ Do have faith in what you're doing.