showmount -e hostname
sudo apt-get install nfs-kernel-server
sudo apt-get install portmap
配置文件 /etc/exports
/home/share 192.168.0.1/10(sync,ro) 192.168.1.20(sync,rw)
/home/public *(rw,sync)
/home/ftp www.baidu.com(ro,sync)
启动服务器
service portmap start
service nfs start
显示共享目录状态
showmount -ae hostname
客户端
显示192.168.0.1的NFS提供的信息
showmount -e hostname
挂载NFS服务器中的目录
mount 192.168.0.1:/home/public /mnt/share
查看挂载信息
mount | grep nfs
卸载
umount /mnt/share