自建Windows NFS Server

Windows上配置NFS Server还是很方便的

如果用微软自己的方案,参考https://baijiahao.baidu.com/s?id=1735786632209024450 或者 https://www.94ip.com/post/848.html

通过微软这篇文档知道,windows server上的nfs server默认是NFSv4.1

https://learn.microsoft.com/en-us/windows-server/storage/nfs/nfs-overview

关于微软NFS Server性能调优,用户可操作的有限,参考

https://learn.microsoft.com/zh-cn/windows-server/administration/performance-tuning/role/file-server/nfs-file-server

下面介绍一个我亲自在多个Windows Server系统和Windows PC系统上验证过的第三方方案。

软件官网:https://www.hanewin.net/nfs-e.htm

值得一提的是下图示例(最新版有此编辑功能,可以图形界面勾选来生成参数,比如示例中的只读-readonly、不限制客户端-public、允许挂载子目录-alldirs):

C:\\test -readonly -alldirs -public

有一些低版本的汉化版测试在高版本Window系统上能正常使用

比如https://www.duote.com/soft/813044.html

hanewin-nfs-server-keygen(直接在server2022上貌似打不开、勾选兼容性也打不开,但在server2019上右键勾选兼容Win7可以运行,直接在win10上也可以运行):

http://www.winwin7.com/soft/7971.html

http://www.astray.cn/hanewin-nfs-server-keygen/

这个nfs server还是挺方便的,建议别使用汉化版了,直接英文最新版挺好的。

linux客户端使用很方便,参考腾讯云cfs的使用说明,建议使用NFSv3获取更好的性能,在客户端使用对应命令挂载即可

windows客户端(假如nfs服务端内外网IP是172.21.96.4和82.157.20.227)

\\\\82.157.20.227\\c\\test

\\\\172.21.96.4\\c\\test

mount -o nolock mtype=hard 172.21.96.4:/c/test x:

mount -o nolock mtype=hard 82.157.20.227:/c/test y:

Windows客户端配置参考https://cloud.tencent.com/document/product/582/11524

linux客户端(假如有2个nfs server,外网IP分别是 82.157.20.227、43.152.194.72)

mount -t nfs -o vers=3,nolock,proto=tcp,noresvport 82.157.20.227:/c/test /mnt

mount -t nfs -o vers=3,nolock,proto=tcp,noresvport 43.152.194.72:/c/test/111 /localfolder/subdir

参考https://cloud.tencent.com/document/product/582/11523

需要先在linux客户端安装nfs-utilsnfs-common

本站文章资源均来源自网络,除非特别声明,否则均不代表站方观点,并仅供查阅,不作为任何参考依据!
如有侵权请及时跟我们联系,本站将及时删除!
如遇版权问题,请查看 本站版权声明
THE END
分享
二维码
海报
自建Windows NFS Server
如果用微软自己的方案,参考https://baijiahao.baidu.com/s?id=1735786632209024450 或者 https://www...
<<上一篇
下一篇>>