安装nfs client

2023-03-16 00:17:08 浏览数 (1)

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

0 人点赞