Windows的linux子系统最大占用可到本机器的80%,所以必须限制一下它的性能来达到优化目的

 

按下Windows + R 键,输入 %UserProfile% 并运行进入用户文件夹

新建文件 .wslconfig ,然后记事本编辑(其他软件也行)

 

[wsl2]
memory=4GB
swap=8GB
localhostForwarding=true

  最后,要确保所有更改都生效,请 wsl --shutdown cmd.exe上执行。

相关文章:

  • 2022-02-08
  • 2021-07-24
  • 2021-10-29
  • 2021-12-20
猜你喜欢
  • 2022-12-23
  • 2021-07-01
  • 2021-11-22
  • 2022-03-01
  • 2021-11-18
  • 2021-05-28
  • 2022-12-23
相关资源
相似解决方案