wsl --shutdown


然后到用户主目录去

编辑.wslconfig


[wsl2]
memory=26GB

[experimental]
autoMemoryReclaim=gradual  # gradual  | dropcache | disabled
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true