NFS mount时出错的解决方法

在开发过程中,客户端mount到服务器端时出现如下错误:

rpcbind: server localhost not responding, timed out
RPC: failed to contact local rpcbind server (errno 5).
rpcbind: server localhost not responding, timed out
RPC: failed to contact local rpcbind server (errno 5).
rpcbind: server localhost not responding, timed out
RPC: failed to contact local rpcbind server (errno 5).
rpcbind: server localhost not responding, timed out
RPC: failed to contact local rpcbind server (errno 5).
rpcbind: server localhost not responding, timed out
RPC: failed to contact local rpcbind server (errno 5).
rpcbind: server localhost not responding, timed out
RPC: failed to contact local rpcbind server (errno 5).
rpcbind: server localhost not responding, timed out
RPC: failed to contact local rpcbind server (errno 5).

解决办法如下:

mount参数由原来的

#mount 192.168.100.88:/opt/xxx /opt/tmp

改为

#mount -o nolock -t nfs 192.168.100.88:/opt/xxx /opt/tmp

后,mount成功

你可能感兴趣的:(技术类)