安装服务端

yum -y install nfs* portmap

echo "/root     192.168.1.0/24(rw,no_root_squash)" > /etc/exports

service portmap restart

service nfs restart

本机测试

exportfs -rv 

showmount -e


客户机

showmount -e  192.168.1.254

mount 192.168.1.254:/root /mnt


服务器

showmount -a  #查看nfs使用情况