windowns 挂载nfs
nfs-server
IP
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1454 qdisc pfifo_fast state UP qlen 1000
link/ether 52:54:00:f8:2e:ae brd ff:ff:ff:ff:ff:ff
inet 192.168.0.241/24 brd 192.168.0.255 scope global eth0
valid_lft forever preferred_lft forever
配置信息
# cat /etc/exports
/repo/data/ *(rw,sync,no_root_squash)
安装nfs客户端
挂载
添加读写权限
打开注册表
在运行中输入regedit,打开注册表编辑器
注册表路径
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default
添加QWORD值AnonymousUid
添加QWORD值AnonymousGid
重启电脑
验证权限
server 端验证
# ls -lh /repo/data/
total 96G
-rwxr-xr-x 1 root root 96G Feb 28 16:58 r_amlogic_a311d2_t982_20221221.tar.gz