【IT168 服务器学院】在192.168.16.125上修改 /etc/exports
#
/ 192.168.16.107(rw,no_root_squash)
注释:
/: 接入点
192.168.16.107: 允许的客户端
rw: 允许读写
no_root_squash: root不映射到匿名账户
启动
/etc/init.d/portmap start
/etc/init.d/nfs start
在192.168.16.107上执行:
mount -o rw -t nfs 192.168.16.125:/ /mnt/nfs
OK
测试中忘记重新启动portmap 导致修改 exports加上读写选项部工作。
环境:
192.168.16.125
Red Hat Linux release 9 (Shrike)
192.168.16.107
Red Hat Enterprise Linux AS release 3 (Taroon Update 3)