1、安装nfs
sudo apt-get install rpcbind sudo apt-get install nfs-kernel-server
2、启动nfs
sudo /etc/init.d/rpcbind start sudo /etc/init.d/nfs-kernel-server start
3、配置nfs
sudo nano /etc/exports
最后一行粘贴
/home/pi/raid *(ro,all_squash,insecure,no_subtree_check) /home/pi/wd *(ro,all_squash,insecure,no_subtree_check)
4、刷新目录
sudo exportfs -rv
5、查看目录列表
sudo showmount -e localhost