首页 > 其他 > 详细

nfs

时间:2015-03-07 13:53:38      阅读:337      评论:0      收藏:0      [点我收藏+]

参考

实测

服务端 centos7   192.168.1.129

安装软件

yum  install  nfs-utils  portmap

service rpcbind start、service nfs start

[root@localhost nfs]# cat  /etc/exports      #设置共享目录   添加以下内容
/home/nfs/ 192.168.1.126/24(rw,no_root_squash,no_all_squash,sync)

[root@localhost nfs]# exportfs -r      #使配置生效

关闭防火墙

[root@localhost nfs]#  firewall-cmd --state  

[root@localhost nfs]# systemctl stop firewalld

 

客户端 Ubuntu   192.168.1.126

 

root@zabix:~/nfs# mount -t nfs 192.168.1.129:/home/nfs /root/nfs          #挂载

提示错误

root@zabix:~# showmount -e 192.168.1.129   #提示apt-get install nfs-common

安装后就正常挂载了

root@zabix:~/nfs# showmount -e 192.168.1.129
Export list for 192.168.1.129:
/home/nfs 192.168.1.126

 

接下来能挂载成功

 

nfs

原文:http://www.cnblogs.com/hanxing/p/4320188.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!