前端之家收集整理的这篇文章主要介绍了
ubuntu 14.04 挂载 nfs,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
将A主机(x.x.x.a)上的/p
文件挂载到B主机(x.x.x.b)的/q目录
@H_
403_0@ 1.在A执行:
@H_
403_0@
sudo apt-get install rpcbind nfs-kernel-server
sudo iptables -I INPUT -s x.x.x.b -j ACCEPT
echo "/p x.x.x.0/24(rw,sync,no_root_squash,no_subtree_check)" >> /ect/exports
sudo exportfs -ra
sudo service nfs-kernel-server start
@H_
403_0@
@H_
403_0@ 2.在B执行:
@H_
403_0@
sudo apt-get isntall nfs-common
sudo mount -t nfs x.x.x.a:/p /q
如果不行,阅读原文:https://help.ubuntu.com/community/SettingUpNFSHowTo