1.linux服务端
sudo apt-get install nfs-kernel-server
vi /etc/exports
/home/root/nfsroot *(rw,sync,no_root_squash)
service nfs-kernel-server restart
showmount -e
2.客户端
mount -t nfs -o noclock 192.168.1.2:/home/root/nfsroot ./share
umount ./share
mount.nfs: an incorrect mount option was specified
mount -t nfs -o nolock,nfsvers=3,vers=3 192.168.1.10:/home/root/nfsroot/ ./share1
vim /etc/fstab //在最后一行添加下面一行信息
192.168.1.253:/testnfs /testnfs_client nfs defaults 0 0