Win10 Build 18945中WSL新功能介绍
时间:2022-11-23 18:58:52
Windows 10insiders build 18945发布,它包含了 Windows Subsystem for Linux(WSL)的一些新的功能,增加了使用 localhost 从 Windows 访问 WSL 2 发行版中的 Linux 网络应用程序的能力,以及更好地控制 Linux 发行版的全局配置选项,这些选项将更好地控制 Linux 发行版,例如为 WSL 2 虚拟机(VM)指定自定义内核。
使用localhost从Windows连接到 Linux 应用程序
在使用 WSL 2 发布的第一个版本中,需要通过远程 IP 地址访问网络应用程序,但现在这个问题已经解决,现在可以使用 localhost 从 Windows 访问 Linux 网络应用程序。例如,下面的图片显示了在 WSL 2 发行版中启动 NodeJS服务器,然后在 Edge 浏览器中使用本地主机连接到 NodeJS 服务器。
其团队表示已经对 Windows 中的 Linux 应用程序进行了排序,因为这是最常见的网络用例。
WSL 全局配置
所有 WSL 2 发行版都运行在同一个虚拟机(VM)上,因此,在此 VM 的任何配置选项都将全局应用于所有 WSL 2 发行版。在这个新的更新中,增加了为 WSL 使用全局配置选项的能力,这些选项是针对那些希望进一步定制他们的 WSL 体验的超级用户。
在用户文件夹中创建一个名为 .wslconfig 的新文件(C:Users
在 WSL 2 中使用自定义内核
提供了一个 WSL 2 的 Linux 内核,它是在 Windows 中提供的。如果你希望有一个特定的内核为你的 WSL 2 发行版提供电源,例如使用特定的内核模块,现在可以在 .wslconfig 文件中使用内核选项来指定到机器上内核的路径,并且该内核在启动时将被加载到 WSL 2 VM 中。如果没有指定选项,将回到使用 Windows 提供的 Linux 内核作为 WSL 2 的一部分。
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何在Win10系统桌面添加个人文档?
![](https://img.aspxhome.com/file/2023/26/a226273_0s.jpg)
Excel怎么截图_Excel截图的方法
![](https://img.aspxhome.com/file/2023/4/a311023_0s.jpg)
如何通过dos命令解决U盘无法自动播放问题?
![](https://img.aspxhome.com/file/2023/4/a307418_0s.jpg)
处理Excel工作表表头技巧
![](https://img.aspxhome.com/file/2023/2/a156302_0s.jpg)
WPS超链接打不开怎么办?
![](https://img.aspxhome.com/file/2023/1/a182181_0s.png)
Win10怎么关闭开始菜单毛玻璃半透明效果?
![](https://img.aspxhome.com/file/2023/30/a264398_0s.jpg)
wmi provider host占用cpu过高怎么办?wmi provider host占用cpu过高解决方法
![](https://img.aspxhome.com/file/2023/28/a239960_0s.jpg)
Ps如何去掉黑白格子背景?PS图片的格子背景去掉的方法
![](https://img.aspxhome.com/file/2023/7/a327305_0s.jpg)
Win10的资讯和兴趣功不能关闭吗?资讯和兴趣功能怎么关闭?
![](https://img.aspxhome.com/file/2023/1/51431_0s.png)
Win7怎么释放网速?
![](https://img.aspxhome.com/file/2023/3/a295426_0s.jpg)
电脑版WPS演示文稿怎么将繁体字转为简体字
![](https://img.aspxhome.com/file/2023/8/a183088_0s.png)
PDVDServ.exe是什么进程 PDVDServ进程查询
wps演示中母版是什么
![](https://img.aspxhome.com/file/2023/1/53631_0s.jpg)
教你利用powershell找回Win10应用商店
![](https://img.aspxhome.com/file/2023/2/a289228_0s.png)
Excel怎么筛选出自己想要的内容?excel表格自定义筛选内容操作教程
![](https://img.aspxhome.com/file/2023/3/39623_0s.jpg)
专利申请显示MacBook Pro未来可能采用新的通风底盘
![](https://img.aspxhome.com/file/2023/6/a207756_0s.jpeg)
After Effects 教程「10」,如何在 After Effects 中对 Illustrator 分图层文档进行动画绘制?
![](https://img.aspxhome.com/file/2023/9/a202469_0s.jpeg)
Win10预览版PowerShell不响应怎么办?
![](https://img.aspxhome.com/file/2023/26/a226411_0s.jpg)