Enable NFS services:
Microsoft Windows includes a service for NFS but you will need to enable it before you can use NFS. The following TechNet article provides more information on enabling the NFS service.
http://technet.microsoft.com/en-us/library/cc753302(v=ws.10).aspx
A registry addition is required to have rewrite access to NFS shared from a Windows system. The reason is that he anonymous UID and GID for Client for NFS to access a NFS your share is set to -2. This needs to be set to 0.
From the command line run: regedit
Locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default
Add two DWORD 32bit values: AnonymousUid and AnonymousGid
Set theses values to: 0
Restart your Client for NFS service or restart your Windows Virtual Machine
You can mount the share from the command line with:
mount <NFS_Server_IP>:<Share_Path> <Mount_Point>
Example:
mount 192.168.31.254:/vol/joyfb7fff88_ae36_4c25_9d4b_df6e3c64efc2 z:
or you can use Expolrer to 'Map a Drive' using <NFS_Server_IP>:<Share_Path> as the share
To have your mounts be persistent on a reboot you need to set up a script that mounts shares on boot. More information can be found here:
http://social.technet.microsoft.com/Forums/is/winserverfiles/thread/44445dc3-0185-407f-b8ad-711f22cd4ec6
打不开文件问题
HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>ClientForNFS>CurrentVersion>User>Default>Mount,新增 Locking 值设为 0。
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步