step 1: 在机器B上安装nfs:
apt-get install nfs-kernel-server
step 2: 在机器B上配置/etc/exports,在里面加上
/mnt 192.168.1.153(rw,no_root_squash)
这表示允许IP为192.168.1.153的机器mount本机的/mnt目录。
step 3: 在机器B上配置/etc/hosts (不确实这一步是否确实需要,总之我是配了)
192.168.1.106 myang-VirtualBox
这表示本机IP为192.168.1.106,本机器名为myang-VirtualBox
step 4: mount (操作A机器)
mount -t nfs 192.168.1.106:/mnt /mnt/106
表示将192.168.1.106:/mnt mount到本机的 /mnt/106 目录。
No comments:
Post a Comment