Mud: [solution] the NFS server uses the showmount-e command to report an error. nfsshowmount
This article was sponsored by Xiuyi linfeng and first launched in the dark world.
When I used showmount-e on the NFS server to view the NFS shared directory, I found that the system always displays the following error:
Clnt_create: RPC: Port mapper failure-Timed out
The query results show that the domain name in the hosts file of the NFS server does not correspond to the IP address of the NFS server.
View the hosts file of the NFS server as follows:
The Host Name and IP address records of the NFS server are not recorded in this file. Add it. As follows:
Run the showmount-e command again to view NFS sharing, as shown below:
It can be seen that no error is displayed at present, and the system quickly displays NFS sharing.
In linux, when an nfs client mounts a shared directory on a server, an error of insufficient permissions occurs. How can this problem be solved?
What is your intranet IP address? My Intranet ip address is 192.168.X.X, and my configuration file is written as follows: Directory 192.168.0.0/24 (sync, rw ). You can try it by referring to the modification.
Cent OS 65 NFS server showmount-a Why error NFS server usage not asked
No rules are added to the firewall on the accessed NFS server. Add the following ports to iptables:
# 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
100024 1 udp 62380 status
100024 1 tcp 21666 status
100011 1 udp 875 rquotad
100011 2 udp 875 rquotad
100011 1 tcp 875 rquotad
100011 2 tcp 875 rquotad
100005 1 udp 13764 mountd
100005 1 tcp 63195 mountd
100005 2 udp 19995 mountd
100005 2 tcp 58572 mountd
100005 3 udp 63375 mountd
100005 3 tcp 22438 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 40599 nlockmgr
100021 3 udp 40599 nlockmgr
100021 4 udp 40599 nlockmgr
100021 1 tcp 22530 nlockmgr
100021 3 tcp 22530 nlockmgr
100021 4 tcp 22530 nlockmgr
Or close the Firewall:
Service iptables stop
Chkconfig iptables off... the remaining full text>