一、安装nfs服务
sudo apt-get install nfs-kernel-server
提示:以下是本篇文章正文内容,下面案例可供参考
二、修改配置文件
sudo vim /etc/exports
内容
/home/gp/Desktop/share_nfs *(rw,sync,no_root_squash,no_subtree_check)
/mnt/hgfs/VMware_Share/QtProject *(rw,sync,no_root_squash,no_subtree_check)
重启服务器
sudo /etc/init.d/nfs-kernel-server restart
showmount -e 查看可挂在的路径
二、挂载
sudo mount -t nfs -o nolock IP:/home /mnt