更新WSL:wsl --update --pre-release 在用户目录%USERPROFILE%下面创建一个配置文件.wslconfig,写入以下内容: [experimental] networkingMode=mirrored dnsTunneling=true firewall=true autoProxy=true 如果你遇到 docker 无法从 Windows 访问的问题,这个是 iptables 的问题,在/etc/docker/daemon.json里添加一句"iptabl...
更新系统版本到 23H2 (目前还没发正式版,可以考虑加入 Windows Insider 的Release Preview 或者 Beta 预览版通道)。或者如果不想加入预览版计划的话你也可以等几周,23H2 也快发布正式版了。 wsl --update --pre-release 把WSL2 更新到 2.0.0 或以上版本 在%userprofile%\.wslconfig 中写入以下内容然后保存:...
wsl--update wsl--update--pre-release 配置 .wslconfig使用 VSCode(或任何您喜欢的编辑器)再次打开文件 代码语言:javascript 代码运行次数:0 运行 AI代码解释 # PowerShell code.wslconfig 并设置实验标志(根据您的需要)。例如: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 [experimental]# Automatic memo...
更新wsl ,否则连接后无法启动 wsl。 wsl --update --pre-release 之后,使用 windows 的账号连接 windows 的 ssh,即可远程 wsl 服务了。 如果嫌启动 wsl 麻烦,可以再做一个配置,直接把 ssh 的终端设置为 wsl New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System3...
2.5.4Pre-release Fix the wsl --update --pre-release logic to correctly handle backports and always pick the actual latest Set LX_WSL2_INSTALL_PATH even when gui apps are disabled Introduce general.instanceIdleTimeout to control distribution termination timeouts (solves#10138,#9401) ...
wsl --update --pre-release failed (#10635), similarity score: 0.79 2.0.0 to 2.0.3 update failure (#10577), similarity score: 0.78 Unable to update past ver 2.0.0.0 (#10591), similarity score: 0.77 Running as an admin the update completed: ...
執行 wsl --update 以確定您使用最新版本。 如果 wsl -–version 顯示早於 2.0.7.0的版本,請執行 wsl -–update –pre-release 以取得最新的更新。 Windows 用戶端裝置必須上線至適用於端點的 Defender。 Windows 用戶端裝置必須執行 Windows 10 2004 版和更新版本, (組建 19044 和更新版本) ,或 Windows 11 ...
现在不用手动开关了 修改一下.wslconfig文件就能自动开启代理了,以下是我的配置文件,修改前需要在powershell运行 wsl --update --pre-release```[wsl2]nestedVirtualization=trueipv6=true[experimental]autoMemoryReclaim=gradual # gradual | dropcache | disablednetworkingMode=mirroreddnsTunneling=truefirewall=true...
If you prefer not switching your Windows installation to a preview channel, you can still test the latest preview of WSL by issuing the command:wsl --update --pre-release. For more information check theWSL Releases page on GitHub. Additional resources ...
# PowerShellwsl--updatewsl--update--pre-release 1. 2. 3. 配置 .wslconfig使用 VSCode(或任何您喜欢的编辑器)再次打开文件 # PowerShellcode .wslconfig 1. 2. 并设置实验标志(根据您的需要)。例如: [experimental]# Automatic memory reclaimautoMemoryReclaim=gradual# Automatic disk space clean upsparse...