網頁

2014年8月30日 星期六

[Working Env] 如何在Ubuntu使用nfs mount ?

如何在Ubuntu使用nfs mount ?

使用時機:

開發機在A而目標機器在B,可以在B上mount A, 加速開發速度

環境:

A (192.168.0.101) Ubuntu
B (192.168.0.100) Synology cedarview 5.0

如何安裝nfs: (on A)

sudo apt-get install nfs-common
sudo apt-get nfs-kernel-server

如何啟動nfs: (on A)

vim /etc/exports
------------------------------------------------
     [directory path on A] 192.168.0.100(ro,sync)

/etc/init.d/nfs-kernel-server restart

如何mount directory: (on B)

mount 192.168.0.101:[directory path on A] [existed path on B]/.

沒有留言:

張貼留言