This is about how to open the NFS service documents
First I need install
server-side nfs-kernel-server nfs-common portmap
client-side nfs-common portmap
1.sudo apt-get install nfs-kernel-server nfs-common portmap
And then, I need to be configured /etc/exports
2. cd /home ; mkdir nfstest
3. sudo gedit /etc/exports
#/etc/exports
/home/nfstest *(rw,sync,all_squash,anonuid = 1000,annogid = 1000)
4. sudo /etc/init.d/nfs-kernel-server restart
* On behalf of all of the host ,Can also be a IP (192.168.1.XX)
Or is a domain name *.www.xxx.com,Can also be a scope(192.168.1.0/24)
rw read-wirte
ro read-only
sync Data synchronization is written to the hard drive and memory
all_squash All users explain for anonymous users
Finally,client-side login
5.sudo mount 192.168.1.xx:/home/nfstest /mnt