2008R2:
nfs server和nfs client在一块,
安装命令:
代码语言:javascript复制servermanagercmd.exe -install FS-NFS-Services RSAT-NFS-Admin
卸载命令:
代码语言:javascript复制servermanagercmd.exe -remove FS-NFS-Services RSAT-NFS-Admin
≥2012R2:
nfs server和nfs client是分开的
powershell安装nfs client:
代码语言:javascript复制get-windowsfeature NFS-Client,RSAT-NFS-Admin | install-windowsfeature
powershell卸载nfs client:
代码语言:javascript复制Get-WindowsFeature NFS-Client,RSAT-NFS-Admin|Remove-WindowsFeature
win10/win11:
获取名称:
代码语言:javascript复制Get-WindowsOptionalFeature -Online -FeatureName *NFS*
FeatureName : ServicesForNFS-ClientOnly
DisplayName : NFS 服务
FeatureName : ClientForNFS-Infrastructure
DisplayName : NFS 客户端
FeatureName : NFS-Administration
DisplayName : 管理工具
代码语言:javascript复制Enable-WindowsOptionalFeature -FeatureName NFS-Administration, ServicesForNFS-ClientOnly, ClientForNFS-Infrastructure -Online -NoRestart