在ubuntu 12.04上面安装nfs服务器过程如下:
# sudo apt-get install nfs-kernel-server nfs-common
# sudo mkdir /nfsroot
# sudo chmod 777 /nfsroot -R
# sudo chown nobody /nfsroot -R
# sudo vim /etc/exports添加如下一行:
[On Ubuntu 12.04]:
/nfsroot *(rw,sync,no_root_squash)
[On Ubuntu 14.04]: need oneno_subtree_check option, or else, it will throw out the warning when do start.
/nfsroot *(rw,sync,no_root_squash,no_subtree_check)
# sudo /etc/init.d/nfs-kernel-server restart
至此,NFS服务器安装成功。