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客户端

windowns 挂载nfs_重启

挂载

windowns 挂载nfs_配置信息_02

windowns 挂载nfs_配置信息_03

windowns 挂载nfs_重启_04

添加读写权限

打开注册表

在运行中输入regedit,打开注册表编辑器

注册表路径

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default

添加QWORD值AnonymousUid

windowns 挂载nfs_IP_05

添加QWORD值AnonymousGid

windowns 挂载nfs_配置信息_06

重启电脑

windowns 挂载nfs_IP_07

验证权限

windowns 挂载nfs_重启_08

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