NFS mount failed, reason given by server: Permission denied
1. 查看系统有没有nfs功能
cat /proc/filesystes
2. ntsysv 命令选中nfs
service nfs restart,看能否啟动,如不能正常,可以查看相应的出错信息
tali /var/log/messages
3. 配置/etc/exports
eg: /home/mis *(rw)
此文件是配置相关的文件和一些权限,上面的设置表示,所有的用户对/home/mis都有读写的权限
# /etc/exports: the access control list for filesystems which may be exported
2 # to NFS clients. See exports(5).
3 #
4 # Example for NFSv2 and NFSv3:
5 # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
6 #
7 # Example for NFSv4:
8 # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
9 # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
10 #
11
12
13 /home/ls/nfs *(rw,sync,no_root_squash)
14 /mnt *(rw,sync,no_root_squash)
15 /opt *(rw,sync,no_root_squash)
16 #sl