BAIYUN'S BLOG

BAI YUN

马上订阅 BAIYUN'S BLOG RSS 更新: https://baiyun.me/feed

WSL 踩的坑和解决方法

2019年6月22日 01:32

避免目录权限默认都是 777

创建 /etc/wsl.conf

[automount]
options = "metadata,umask=22,fmask=11"

在 .zshrdc 中添加

umask 0022

无法启动 WSL,提示:参考的对象类型不支持尝试的操作

解决方法:管理员权限启动 cmd,执行:

netsh winsock reset

相关信息

https://adamtheautomator.com/windows-subsystem-for-linux/amp/#

要获得最佳阅读体验,请访问原文 https://baiyun.me/wsl-problem-and-solutions