ubuntu 14.04 挂载 nfs

来源:互联网 发布:人民大学数据库 编辑:程序博客网 时间:2024/05/21 00:45
将A主机(x.x.x.a)上的/p文件挂载到B主机(x.x.x.b)的/q目录
1.在A执行:
sudo apt-get install rpcbind nfs-kernel-serversudo iptables -I INPUT -s x.x.x.b -j ACCEPTecho "/p    x.x.x.0/24(rw,sync,no_root_squash,no_subtree_check)" >> /ect/exportssudo exportfs -rasudo service nfs-kernel-server start


2.在B执行:
sudo apt-get isntall nfs-commonsudo mount -t nfs x.x.x.a:/p /q

如果不行,阅读原文:https://help.ubuntu.com/community/SettingUpNFSHowTo
0 0