1. Winnfsd
GitHub - winnfsd/winnfsd
Usage: WinNFSd.exe [-id <uid> <gid>] [-log on | off] [-pathFile <file>] [-addr <ip>] [export path] [alias path]
At least a file or a path is needed
For example:
On Windows> WinNFSd.exe d:\work
On Linux> mount -t nfs 192.168.12.34:/d/work
For another example:
On Windows> WinNFSd.exe d:\work /exports
On Linux> mount -t nfs 192.168.12.34:/exports
Another example where WinNFSd is only bound to a specific interface:
On Windows> WinNFSd.exe -addr 192.168.12.34 d:\work /exports
On Linux> mount - t nfs 192.168.12.34:/exports
Use "." to export the current directory (works also for -filePath):
On Windows> WinNFSd.exe . /exports
2. test
2.1 PC
.\WinNFSd.exe 192.168.1.3 d:\baoli /exports
参数解释:
192.168.1.3:指定监听的网络接口,是本机ip地址;
d:\shared:是需要作为nfs共享的路径;
/exports: 是共享路径的别名,可随便取,在mount时使用exports即可挂载。
2.2 开发板板
mount -t nfs -o nolock,tcp 192.168.1.3:/exports /nfs
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)