当前位置:   article > 正文

NFS mount.nfs: access denied by server while mounting_mount.nfs: access denied by server while mounting

mount.nfs: access denied by server while mounting 192.168.43.252:/mnt/sharen

遇到此报错,先确认/etc/exports配置文件配置正确
然后我遇到的其中一种可能的原因是,server端版本client端版本不一致导致的问题
查看server 端 version

# rpcinfo -t localhost nfs
program 100003 version 3 ready and waiting
program 100003 version 4 ready and waiting
  • 1
  • 2
  • 3

发现只有3、4版本,由于client版本是ubuntu14 默认是ver 2,在挂载的时候需要指定版本号

mount -o nfsvers=3 -t nfs $server_ip:$path $mount_path
  • 1

如果要写入 /etc/fstab ,需要在第四列加入 nfsvers=3 的参数,参考

$server_ip:$path      $mount_path      nfs nofail,noatime,nolock,intr,tcp,actimeo=1800,nfsvers=3 0 0
  • 1
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号