Starting NFS services: [ OK ]
Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp). [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]
一开始一直以为是portmap没有启动。
是因为 rpcbind没有启动。
# service rpcbind start
#chkconfig rpcbind on
#service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
Starting RPC idmapd: [ OK ]
查看进程
# ps -ef |grep nfs
root 2852 2 0 10:20 ? 00:00:00 [nfsd4]
root 2853 2 0 10:20 ? 00:00:00 [nfsd4_callbacks]
root 2854 2 0 10:20 ? 00:00:00 [nfsd]
root 2855 2 0 10:20 ? 00:00:00 [nfsd]
root 2856 2 0 10:20 ? 00:00:00 [nfsd]
root 2857 2 0 10:20 ? 00:00:00 [nfsd]
root 2858 2 0 10:20 ? 00:00:00 [nfsd]
root 2859 2 0 10:20 ? 00:00:00 [nfsd]
root 2860 2 0 10:20 ? 00:00:00 [nfsd]
root 2861 2 0 10:20 ? 00:00:00 [nfsd]
root 2892 2697 0 10:25 pts/0 00:00:00 grep nfs