打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
mount.nfs: access denied by server while mounting


root@ubuntu:/var/log# mount -t nfs 127.0.0.1:/host/linux/home/root /mnt

提示 :mount.nfs: access denied by server while mounting 127.0.0.1:/host/linux/home/root

一直无法解决,最后发现 /etc/exports中括号是中文字符导致出错

/host/linux/home *(rw,sync,no_root_squash)



root@ubuntu:/var/log# service nfs-kernel-server restart
 * Stopping NFS kernel daemon                                          [ OK ]
 * Unexporting directories for NFS kernel daemon...                    [ OK ]
 * Exporting directories for NFS kernel daemon...                             exportfs: No options for /host/linux/home 192.168.1.113: suggest 192.168.1.113(sync) to avoid warning
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.113:/host/linux/home".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: No options for /host/linux/home (rw,sync,no_root_squash): suggest (rw,sync,no_root_squash)(sync) to avoid warning
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "(rw,sync,no_root_squash):/host/linux/home".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: (rw,sync,no_root_squash) has non-inet addr
exportfs: (rw,sync,no_root_squash) has non-inet addr
(由这两行可看出共享目录导出错误)
                                                                       [ OK ]
 * Starting NFS kernel daemon                                          [ OK ]
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
NFS网络文件系统
【Linux】nfs 服务的exportfs命令的简介
ubuntu下搭建nfs服务器
Ubuntu 搭建 配置 nfs服务器
关于NFS参数说明——在文件服务器上(16)/etc/exports中配置10.X.X.X(fsid=2,rw,sync,no_root_squash) 2011-03-19 13:33:57|
嵌入式开发中NFS调试环境搭建
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服