- 论坛徽章:
- 0
|
想要安装NFS,但是挂载始终失败,之前尝试一次成功了,后来就一直失败,希望大牛能帮忙看下怎么回事,谢谢。
服务器端:防火墙已经关了,相关服务也都启动了。
# service nfs status
rpc.svcgssd is stopped
rpc.mountd (pid 29831) is running...
nfsd (pid 29846 29845 29844 29843 29842 29841 29840 29839) is running...
rpc.rquotad (pid 29827) is running...
# cat /etc/exports
/home/NFSshare/ReadOnly *(rw,sync,all_squash,insecure)
# rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 875 rquotad
100011 2 udp 875 rquotad
100011 1 tcp 875 rquotad
100011 2 tcp 875 rquotad
100005 1 udp 892 mountd
100005 1 tcp 892 mountd
100005 2 udp 892 mountd
100005 2 tcp 892 mountd
100005 3 udp 892 mountd
100005 3 tcp 892 mountd
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100021 1 udp 32769 nlockmgr
100021 3 udp 32769 nlockmgr
100021 4 udp 32769 nlockmgr
100021 1 tcp 32803 nlockmgr
100021 3 tcp 32803 nlockmgr
100021 4 tcp 32803 nlockmgr
# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
# service iptables status
iptables: Firewall is not running.
#
# mount -t nfs -v localhost:/home/NFSshare/ReadOnly /home/NFSshare/writable/
mount.nfs: timeout set for Fri Nov 20 16:17:09 2015
mount.nfs: trying text-based options 'vers=4,addr=::1,clientaddr=::1'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting localhost:/home/NFSshare/ReadOnly
尝试直接在本地挂载也是失败了,客户端挂载也是报同样的错误。 |
|