附件下载链接:https://download.csdn.net/download/qq_43017750/12257961
#安装nfs服务器
apt-get install nfs-kernel-server
#安装nfs命令
apt-get install nfs-common
#创建共享文件夹
mkdir /root/share
#编辑配置文件
vim /etc/exports
#写入如下内容
/root/share *(rw,sync,no_root_squash)
#重启nfs服务
systemctl restart nfs-kernel-server
部分windows没有nfs客户端功能可以上谷歌的代码库下载,链接如下:
https://code.google.com/archive/p/nekodrive/downloads
访问不了的小伙伴可以下载附件中的那个