WSL:修订间差异
跳转到导航
跳转到搜索
WhiteWallClosetFun(留言 | 贡献) 创建页面,内容为“本文的WSL指Windows Subsystem for Linux<ref>[https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux 维基百科: Windows_Subsystem_for_Linux]</ref>,且特指WSL2这个版本。 == 代理设置 == 要想让WSL2系统也能够走主系统的代理,需要进行如下设置: # 在<code>%UserProfile%</code>目录下,创建<code>.wslconfig</code>文件。 # 在该文件中,加入如下的配置即可: <pre> [wsl2] networkingMode = mirrored dnsTunn…” |
(没有差异)
|
2025年7月26日 (六) 13:45的最新版本
本文的WSL指Windows Subsystem for Linux[1],且特指WSL2这个版本。
代理设置
要想让WSL2系统也能够走主系统的代理,需要进行如下设置:
- 在
%UserProfile%
目录下,创建.wslconfig
文件。 - 在该文件中,加入如下的配置即可:
[wsl2] networkingMode = mirrored dnsTunneling=true firewall=true autoProxy=true [experimental] autoMemoryReclaim=gradual
在这之后,重启WSL系统即可。