NFS error:Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused) rpc.nfsd: unable to set any sockets for nfsd
在RHEL6中,如果直接启动NFS,你可能会遇到如题所示的报错。
具体情况如下:
1 2 3 4 5 6 7 |
[root@bigdata1 cloudera]# service nfs start Starting NFS services: [ OK ] Starting NFS mountd: [FAILED] Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused) rpc.nfsd: unable to set any sockets for nfsd [FAILED] [root@bigdata1 cloudera]# |
在RHEL6中,启动NFS之前,应该先拉起rpcbind服务:
1 2 3 4 5 6 7 8 |
[root@bigdata1 cloudera]# service rpcbind status rpcbind is stopped [root@bigdata1 cloudera]# service rpcbind start Starting rpcbind: [ OK ] [root@bigdata1 cloudera]# [root@bigdata1 cloudera]# service rpcbind status rpcbind (pid 5390) is running... [root@bigdata1 cloudera]# |
[……]