Oct 22, 2018

How to fix: NFS: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)

If you encounter the following while starting NFS service:

Aug 10 07:21:19 oreo2 systemd[1]: Starting NFS server and services...
Aug 10 07:21:19 oreo2 rpc.nfsd[44414]: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
Aug 10 07:21:19 oreo2 rpc.nfsd[44414]: rpc.nfsd: unable to set any sockets for nfsd
Aug 10 07:21:19 oreo2 systemd[1]: nfs-server.service: main process exited, code=exited, status=1/FAILURE
Aug 10 07:21:19 oreo2 systemd[1]: Failed to start NFS server and services.
Aug 10 07:21:19 oreo2 systemd[1]: Unit nfs-server.service entered failed state.

You can start / restart rpcbind to fix it. See more 

How to Start / Restart rpcbind