1.安装NFS
sudo apt install nfs-kernel-server
sudo gedit /etc/exports
最后一行加入
/home/leon/ServerProjects *(rw,sync,no_root_squash)
重启NFS
sudo /etc/init.d/nfs-kernel-server restart
远程挂载的操作
sudo mount -t nfs 192.168.199.214:/home/leon/ServerProjects ServerProjects/