nfs安裝rest
sudo apt-get install nfs-kernel-server
修改配置文件code
sudo gedit /etc/exports
加上一段server
/srv/share *(rw,insecure,sync,no_root_squash,no_subtree_check)
其中/srv/share 爲要共享的目錄get
啓動nfs服務,以及portmap服務it
sudo service nfs-server restart sudo service portmap restart