赞
踩
报错:mount.nfs: access denied by server while mounting localhost:/root/nfs_root
挂载的时候,挂载不上。提示访问拒绝。原因是如果挂载在root目录下,默认root目录只有管理员权限,需要执行:chmod 777 root修改权限解决问题。
mount -t nfs -o nolock localhost:/root/XXX /mnt/
参考博客:
http://blog.csdn.net/chenqiai0/article/details/8535467
http://blog.csdn.net/imxiangzi/article/details/7465560
---------------------------------------------------------------------------------------------------------
一、安装NFS
# sudo apt-get install nfs-kernel-server
同时会有两个软件包nfs-common和portmap被安装上
二.在/建立共享项目nfst
# mkdir nfs_shared
# chmod 777 -R nfs_shared/
保证使用者都能够读、写、执行
其他选项可以通过man exports查阅man文档
Escape character is '^]'.
(none) login: root~ #
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。