NFS server and client setup on Ubuntu
Server: NFS server (ex: 192.168.0.1)
Client: NFS client (ex: 192.168.0.2)
Server[編輯 | 編輯原始碼]
Install nfs serversudo apt-get install nfs-kernel-server nfs-common
sudo mkdir -p /var/ota
sudo chown nobody:nogroup /var/ota
NOTE: use 'tab' as seperator, do not use 'space'
/var/ota 192.168.0.2(rw,sync,no_subtree_check)
sudo service nfs-kernel-server start
Client[編輯 | 編輯原始碼]
mount the shared foldersudo mkdir -p /mnt/nfs/ota
sudo mount -t nfs 192.168.0.1:/var/ota /mnt/nfs/ota/
留言
張貼留言