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 server
sudo apt-get install nfs-kernel-server nfs-common
create share folder
sudo mkdir -p /var/ota
sudo chown nobody:nogroup /var/ota
sudo vi /etc/exports, add following line to /etc/exports 
NOTE: use 'tab' as seperator, do not use 'space'
/var/ota        192.168.0.2(rw,sync,no_subtree_check)
start nfs server
sudo service nfs-kernel-server start

Client[編輯 | 編輯原始碼]

mount the shared folder
sudo mkdir -p /mnt/nfs/ota
sudo mount -t nfs 192.168.0.1:/var/ota /mnt/nfs/ota/

留言

這個網誌中的熱門文章

以樂透為例,用Python統計馬可夫矩陣

將 Jenkins Job 的歷史結果整理出視覺化的 Daily Report mail (一)

如何用 Jenkins API 取得 Job Build Result