swapFilepath%USERPROFILE%\AppData\Local\Temp\swap.vhdx交换虚拟硬盘的绝对 Windows 路径。 pageReportingbooleantrue默认的true设置使 Windows 能够回收分配给 WSL 2 虚拟机的未使用内存。 guiApplicationsbooleantrue一个布尔值,用于在 WSL 中打开或关闭对 GUI 应用程序 (WSLg) 的支持。
kernelCommandLine = vsyscall=emulate # Sets amount of swap storage space to 8GB, default is 25% of available RAM swap=8GB # Sets swapfile path location, default is %USERPROFILE%\AppData\Local\Temp\swap.vhdx swapfile=C:\\temp\\wsl-swap.vhdx # Disable page reporting so WSL retains all a...
swapFilepath%USERPROFILE%\AppData\Local\Temp\swap.vhdx交换虚拟硬盘的绝对 Windows 路径。 pageReportingbooleantrue默认的true设置使 Windows 能够回收分配给 WSL 2 虚拟机的未使用内存。 guiApplicationsbooleantrue一个布尔值,用于在 WSL 中打开或关闭对 GUI 应用程序 (WSLg) 的支持。
swapFilepath%USERPROFILE%\AppData\Local\Temp\swap.vhdx交換虛擬硬碟的絕對 Windows 路徑。 pageReportingbooleantrue預設true設定可讓 Windows 回收配置給 WSL 2 虛擬機器的未使用記憶體。 guiApplicationsbooleantrue可開啟或關閉 WSL 中 GUI 應用程式 (WSLg) 支援的布林值。
swapFilepath%USERPROFILE%\AppData\Local\Temp\swap.vhdx交换虚拟硬盘的绝对 Windows 路径。 pageReportingbooleantrue默认的true设置使 Windows 能够回收分配给 WSL 2 虚拟机的未使用内存。 guiApplicationsbooleantrue一个布尔值,用于在 WSL 中打开或关闭对 GUI 应用程序 (WSLg) 的支持。
swapFile=<path> # An absolute Windows path to the swap vhd. localhostForwarding=<bool> # Boolean specifying if ports bound to wildcard or localhost in the WSL2 VM should be connectable from the host via localhost:port (default true). # <path> entries must be absolute Windows paths with ...
swap:虚拟内存 free -m 使用硬盘分区增加swap的大小 对磁盘分区 mkswap 分区名 对分区进行swap格式化(类似于mkfs) swapon 分区名 swap挂载使用(类似于mount) swapoff 分区名 关闭swap挂载 使用文件制作交换分区 ddif=/dev/zero bs=4M count=1024of=/swapfile 创建4M*1024大小的文件 ...
3 swapFile=D:\\LocalCaches\\wsl2\\swap.vhdx 4 localhostForwarding=true 1. 2. 3. 4. 注:在当前系统的用户下,新建.wlsconfig文件,在其中配置以上代码。 实际上本质问题没有解决。有一个码友来询问这个问题,才认认真真的考虑如何解决。 说明: ...
swapFile=<path> # An absolute Windows path to the swap vhd. localhostForwarding=<bool> # Boolean specifying if ports bound to wildcard or localhost in the WSL2 VM should be connectable from the host via localhost:port (default true). # <path> entries must be absolute Windows paths with ...
swapfile=E:\\wsl\\swap\\wsl-swap.vhdx 2 卸载 wslconfig /l #显示出你安装的列表。 wslconfig /u debian #debian为上述列表中的名字 注销子系统 3 关闭 ❯ wsl --shutdown 4 查看状态 ❯ wsl -l -v 5 wsl1和wsl2版本切换 ❯ wsl --set-version <distribution name> <versionNumber 1/2>...