nfs守护进程不听2049端口

我有一些nfs的问题。 看起来像它不听客户端上的2049端口。 客户端和服务器都有Debian linux。

serv$ rpcinfo -p program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 59336 status 100024 1 tcp 51481 status 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 4 udp 2049 nfs 100021 1 udp 58328 nlockmgr 100021 3 udp 58328 nlockmgr 100021 4 udp 58328 nlockmgr 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100003 4 tcp 2049 nfs 100021 1 tcp 58936 nlockmgr 100021 3 tcp 58936 nlockmgr 100021 4 tcp 58936 nlockmgr 100005 1 udp 52660 mountd 100005 1 tcp 44121 mountd 100005 2 udp 52660 mountd 100005 2 tcp 44121 mountd 100005 3 udp 52660 mountd 100005 3 tcp 44121 mountd 

但客户端没有2049端口:

 client$ rpcinfo -p program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 36256 status 100024 1 tcp 55654 status 

我检查了nfs-common,它说“一切正常”:

 client$ sudo /etc/init.d/nfs-common status all daemons running 

请问你能帮帮我吗?

这是非常正常的。 它不应该在客户端端口2049上进行监听。 只要NFS服务器在端口2049上侦听,客户端就会select一个高端口号来连接到端口2049上的服务器。只要尝试导出服务器上的一个目录,并尝试将其挂载到客户端上。 客户端无需在2049端口上收听。