我试图按照这些说明
https://docs.microsoft.com/en-us/windows/wsl/install-on-server在AWS EC2上的Windows Server 2016上启用linux子系统
这是错误消息:
PS C:\Users\Administrator> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature : Feature name Microsoft-Windows-Subsystem-Linux is unknown.
At line:1 char:1
+ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand
我的Windows服务器是基于AWS ami创建的.
如何判断我的窗口服务器是否支持linux子系统?我能做些什么来启用这个功能吗?
更新:
> systeminfo | Select-String "^OS Name","^OS Version"
OS Name: Microsoft Windows Server 2016 Datacenter
OS Version: 10.0.14393 N/A Build 14393