


PS C:\Windows\system32> cd ~
PS C:\Users\Lenovo> ls
目录: C:\Users\Lenovo
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2021/12/20 18:13 .aws
d----- 2021/12/20 18:13 .azure
d----- 2021/12/25 16:22 .docker
d----- 2021/12/20 16:23 .rdm
d----- 2022/1/10 10:27 .ssh
d-r--- 2021/12/19 10:29 3D Objects
d-r--- 2021/12/19 10:29 Contacts
d-r--- 2022/1/17 9:05 Desktop
d-r--- 2022/1/7 9:32 Documents
d-r--- 2022/1/25 16:35 Downloads
d-r--- 2021/12/19 10:29 Favorites
d-r--- 2021/12/19 10:29 Links
d-r--- 2021/12/19 10:29 Music
dar--l 2022/1/25 9:07 OneDrive
d-r--- 2021/12/19 10:31 Pictures
d-r--- 2021/12/19 10:29 Saved Games
d-r--- 2021/12/19 10:30 Searches
d-r--- 2022/1/10 9:04 Videos
-a---- 2021/12/30 16:01 1387 .bash_history
-a---- 2021/12/27 15:30 177 .gitconfig
-a---- 2022/1/24 10:34 20 .lesshst
-a---- 2021/12/30 9:16 29 .minttyrc
-a---- 2022/1/17 13:54 121 .yarnrc
-a---- 2022/1/6 18:00 206 _netrc
PS C:\Users\Lenovo>
# Settings apply across all Linux distros running on WSL 2
[wsl2]
# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB
memory=2GB
# Sets the VM to use two virtual processors
processors=2
# Specify a custom Linux kernel to use with your installed distros. The default kernel used can be found at https://github.com/microsoft/WSL2-Linux-Kernel
# kernel=C:\\temp\\myCustomKernel
# Sets additional kernel parameters, in this case enabling older Linux base images such as Centos 6
# kernelCommandLine = vsyscall=emulate
# Sets amount of swap storage space to 8GB, default is 25% of available RAM
swap=4GB
# 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 allocated memory claimed from Windows and releases none back when free
# pageReporting=false
# Turn off default connection to bind WSL 2 localhost to Windows localhost
localhostforwarding=true
# Disables nested virtualization
# nestedVirtualization=false
# Turns on output console showing contents of dmesg when opening a WSL 2 distro for debugging
# debugConsole=true

PS C:\Users\Lenovo> wsl --shutdown
PS C:\Users\Lenovo>


需要长期技术维护或远程问题排查?
我是拥有 15+ 年经验的 PHP / Go 后端工程师,长期关注已有系统维护、Bug 修复、性能优化、服务器排查、WordPress 网站维护和小功能迭代。
如果你的项目遇到以下情况,可以先从一次小问题排查开始合作:
- ✅ PHP / Laravel / Yii2 老项目无人维护
- ✅ Go / Gin 后端接口需要排查或优化
- ✅ WordPress 网站访问慢、报错或插件冲突
- ✅ Nginx / MySQL / Redis / Linux 服务器异常
- ✅ CDN / Cloudflare / DNS / HTTPS 配置问题
- ✅ 需要长期远程技术支持或兼职维护
更多介绍请查看:关于我 & 合作
微信:13980074657
邮箱:shuijingwanwq@gmail.com
Telegram:@shuijingwan
GitHub:https://github.com/shuijingwan

发表回复