
虚拟机上的 linux 自动配置了主机上的 clash 的端口 ip:port 。
使用的 mobaxterm 。
.bashrc 里没有搜索到 ip:port 字段
这是在什么地方被配置了?
1 nagisaushio 2024-03-14 10:59:40 +08:00 /etc/profile 看看 |
2 om2mo 2024-03-14 11:09:03 +08:00 exportq |
3 om2mo 2024-03-14 11:09:11 +08:00 export |
4 nxuu 2024-03-14 13:24:52 +08:00 unset http_proxy 就取消了. |
5 nyxsonsleep OP @nxuu 它的关键问题是每次机器启动都会自动配置上这个。我还得在.bashrc 里配置取消这两个。 |
6 nyxsonsleep OP @om2mo 可以看到这个字段被配置了,这个是有什么意图吗? |
7 nyxsonsleep OP @nagisaushio 有效,感谢。 问了好几个 ChatGPT 工具都没答上来,还得靠论坛里面的 hxd |
8 julyclyde 2024-03-16 13:15:43 +08:00 顺着 shell 的进程号一层层往上找就知道是在哪儿加进去的了 如果只有 shell 才有,那就是 profile 之类的 如果都有,就是/etc/environment |
9 guanzhangzhang 2024-03-17 16:20:52 +08:00 ``` find /etc -type f -size -5M -exec grep -Pl 'https?_proxy' {} \; ``` |