日存档: 12 9 月, 2016

[转]Ubuntu Server 上安裝 NFS Server

安裝所須套件
# apt-get install nfs-common nfs-kernel-server

建立要分享及掛載的目錄
# mkdir /home/partimag

修改設定檔 /etc/exports
加入下面一列
# vim /etc/exports
/home/partimag 192.168.66.0/24(rw,sync,no_subtree_check)

啟動 NFS Server
# /etc/init.d/nfs-kernel-server start
* Exporting directories for NFS kernel daemon… [ OK ]
* Starting NFS kernel daemon [ OK ]
檢查是是有啟動成功
# showmount -e localhost
Export list for localhost:
/home/partimag 192.168.66.0/24