依赖的包

yum -y install nfs-utils

vim /etc/exports

/data/test_nfs 10.125.37.12/16(rw,sync,no_root_squash)
/data/test_nfs 10.125.37.13/16(rw,sync,no_root_squash)


exportfs -a

生效


showmount -e localhost

服务端查看共享目录


mount -t nfs 10.125.37.12:/test_nfs  /data/test_nfs_file

错误的日志

[root@local~ /]# cat /var/log/messages | grep mount

05-12 15:36