# ping lilac lilac is alive
# /usr/bin/rpcinfo -u localhost rpcbind program 100000 Version 1 ready and waiting program 100000 Version 2 ready and waiting program 100000 Version 3 ready and waiting
# rpcinfo -u localhost nfs program 100003 Version 2 ready and waiting program 100003 Version 3 ready and waiting # ps -ef | grep nfsd root 101328 0 0 Jul 12 ? 303:25 nfsd_kproc root 101327 1 0 Jul 12 ? 2:54 /usr/lib/nfs/nfsd root 263149 131084 0 13:59:19 pts/17 0:00 grep nfsd
如果服务器正在运行,rpcinfo 命令将列出与 UDP 协议关联的程序和版本号。另外,还应使用带有 –t 选项的 rpcinfo 来检查 TCP 连接。如果这些命令失败,请重新启动 NFS 服务。有关更多信息,请参见如何重新启动 NFS 服务。
# /usr/bin/rpcinfo -t localhost mountd program 100005 Version 1 ready and waiting program 100005 Version 2 ready and waiting program 100005 Version 3 ready and waiting # ps -ef | grep mountd root 145 1 0 Apr 07 ? 21:57 /usr/lib/autofs/automountd root 234 1 0 Apr 07 ? 0:04 /usr/lib/nfs/mountd root 3084 2462 1 09:30:20 pts/3 0:00 grep mountd
如果服务器正在运行,rpcinfo 命令将列出与 UDP 协议关联的程序和版本号。另外,还应使用带有 –t 选项的 rpcinfo 来检查 TCP 连接。如果这些命令失败,请重新启动 NFS 服务。有关更多信息,请参见如何重新启动 NFS 服务。