1、查看NFS配置文件:vi etc/exports/
2、设置访问的计算机,及访问的目录和访问权限
eg:/home 192.168.3.*(rw,sync,no_root_squash)
home:访问的目录
IP:设置访问的计算机IP
rw:可读可写
sync:同步写磁盘
no_root_squash:表示客服端root用户对该目录具备写权限
3、启动NFS服务器:/etc/init.d/nfs start
4、重启NFS服务器: /etc/init.d/nfs restart
5、使用mount命令挂载NFS服务器上的共享目录:mount -t nfs 要访问的主机的ip:/共享目录 /客户端本地目录