标签:
服务器端配置
- 更新源并下载
sudo apt-get update sudo apt-get nfs-kernel-server
客户端配置
- 更新源并下载
sudo apt-get update sudo apt-get nfs-common
服务器端新建共享目录和客户端新建挂载点
~:mkdir nfsshare ... ~:mkdir /mnt/nfsshare
服务器端配置NFS exports
sudo vi /etc/exports ... Adding following lines at the end of file /home/<user name>/nfsshare *(rw,sync,no_root_squash)
...
sudo exportfs -a
sudo service nfs-kernel-server start
客户端挂载共享目录
sudo mount host-ip:/home/<user name>/nfsshare /mnt/nfsshare
参考URL: https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-14-04
标签:
原文地址:http://www.cnblogs.com/qingkai/p/5460991.html