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

Linux 莫名自动配置了 http_proxy

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