如何解决:RPC: Port mapper failure - RPC: Unable to receive errno = Connection denied

Posted

技术标签:

【中文标题】如何解决:RPC: Port mapper failure - RPC: Unable to receive errno = Connection denied【英文标题】:How to solve: RPC: Port mapper failure - RPC: Unable to receive errno = Connection refused 【发布时间】:2017-09-12 19:04:53 【问题描述】:

我正在尝试设置 NFS 服务器。

我有两个程序服务器和客户端,我启动了没有错误启动的服务器,然后我用客户端创建了一个文件,该文件被正确创建,但是当我尝试在该文件中写一些东西时,我得到了错误:

call failed: RPC: Unable to receive; errno = Connection refused

这是我的rpcinfo -p 输出

# 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    662  status
    100024    1   tcp    662  status
    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    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    3   tcp   2049  nfs_acl
    100003    3   udp   2049  nfs
    100227    3   udp   2049  nfs_acl
    100021    1   udp  58383  nlockmgr
    100021    3   udp  58383  nlockmgr
    100021    4   udp  58383  nlockmgr
    100021    1   tcp  39957  nlockmgr
    100021    3   tcp  39957  nlockmgr
    100021    4   tcp  39957  nlockmgr
 536870913    1   udp    997
 536870913    1   tcp    999

请问有谁知道我该如何解决这个问题?

注意:我将笔记本电脑同时用作服务器和客户端。

【问题讨论】:

您需要提供一些额外的信息;例如您使用什么命令来挂载、/etc/exports 的内容等。特别是,如果您使用的是 NFSv4,则不需要 rpcbind(参考下面的答案)。 【参考方案1】:

确保 rpcbind 正在运行。此外,最好使用“showmount -e”检查您是否可以看到导出。

【讨论】:

如果用户使用 NFSv4,则不需要 Rpcbind。

以上是关于如何解决:RPC: Port mapper failure - RPC: Unable to receive errno = Connection denied的主要内容,如果未能解决你的问题,请参考以下文章

解决NFS:clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)

clnt_create: RPC: Port mapper failure

Caused by: com.alibaba.dubbo.rpc.RpcException: Fai

Caused by: com.alibaba.dubbo.rpc.RpcException: Fai

NFS服务器出现:clnt_create:RPC:Port mapper failure - Unable to receive:errno 113(No route to host)

电脑开机提示softether vpn client rpc port open failed