Chinaunix首页 | 论坛 | 博客
  • 博客访问: 196497
  • 博文数量: 96
  • 博客积分: 1781
  • 博客等级: 上尉
  • 技术积分: 970
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-07 12:31
文章分类

全部博文(96)

文章存档

2014年(1)

2013年(14)

2012年(44)

2011年(37)

分类: LINUX

2013-06-19 17:07:35


/etc/init.d/rpcbind restart
/etc/init.d/nfs restart之前一直没有用到nfs挂载,所以也没测试使用nfs,今天看构建嵌入式系统时,讲到了nfs的使用,所以就测试了下.
以前是在ubuntu下面使用nfs 使用的是nfs 和portmap,但Fedora下面不再使用portmap,而是使用rpcbind。
yum install rpcbind nfs-utils
vim /etc/exports /home/james/share *(rw,sync,no_root_squash)
setenforce 0
/etc/init.d/rpcbind restart
/etc/init.d/nfs restart

客户端:mount -t nfs 192.168.0.34:/home/james/share /home/james/share_nfs
mount.nfs: access denied by server while mounting 192.168.0.34:/home/james/share
此时需要修改/etc/sysconfig/nfs 
# Turn off v2 and v3 protocol support
RPCNFSDARGS="-N 2 -N 3"
# Turn off v4 protocol support
RPCNFSDARGS="-N 4"
将这两个#去掉.
exportfs -r
/etc/init.d/rpcbind restart
/etc/init.d/nfs restart
这样挂载就OK了
但用适配器测试确发现找不到对方文件,这个错误网上说是nfs4版本,需要修改exports  /home/james/share *(rw,fsid=0,sync,no_root_squash) 但仍然没用,我怀疑是适配器内核没有设置支持nfs.
阅读(294) | 评论(0) | 转发(0) |
0

上一篇:listen backlog

下一篇:关于RB411烧录问题

给主人留下些什么吧!~~