NFS服务配置与问题解决

1.创建共享目录

#mkdir /home/hellolinux/nfs

2.创建或修改/etc/exports文件

#vi /etc/exports

home/hellolinux/nfs 192.168.0.*(rw,sync,no_root_squash)

3.NFS服务的启动与停止

#service nfs start

#service nfs stop

#service nfs restart

#servcie nfs status(服务状态)

4 在客户机上查看NFS的资源共享情况
# showmount -e 192.168.0.1
Export list for 192.168.0.1:
/home/hellolinux/nfs 192.168.0.*

5 .使用mount命令挂栽共享资源
mount -t nfs -o nolock 192.168.0.1:/home/hellolinux/nfs /mnt/nfs

出现的问题与解决方法:

[root@FORLINX6410]# mount -t nfs 192.168.0.1:/home/hellolinux/rootfs /mnt/nfs
svc: failed to register lockdv1 RPC service (errno 111).
mount: mounting 192.168.0.1:/home/hellolinux/rootfs on /mnt/nfs failed: Connection refused

解决方案:

nfs mount 默认选项包括文件锁,依赖于portmap提供的动态端口分配功能。
解决方法:kill 文件锁(lockd)或者mount -o nolock

相关解答链接:

1.http://bbs.chinaunix.net/thread-2001083-1-1.html

2.http://blog.csdn.net/alex_xhl/article/details/7222602


  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值