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 ]
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。