我在 13.04_x64 启动时看到“rpcbind”错误

我在 13.04_x64 启动时看到“rpcbind”错误

从我的boot.log,我看到了这一点:

rpcbind: Cannot open '/run/rpcbind/rpcbind.xdr' file for reading, errno 2 (No such file or directory)
rpcbind: Cannot open '/run/rpcbind/portmap.xdr' file for reading, errno 2 (No such file or directory)

我在 x86 和 x64 上运行 Raring 13.04(两台机器)。两台机器都显示相同的两行boot.log,我想知道如何修复它。

我看到的一篇帖子建议打开/etc/init.d/rpcbind并添加

if [ ! -f $STATEDIR/rpcbind.xdr ]
then
    touch $STATEDIR/rpcbind.xdr
fi
if [ ! -f $STATEDIR/portmap.xdr ]
then
    touch $STATEDIR/portmap.xdr
fi

但是/etc/init.d/rpcbind我的两台机器上都是空的,所以我不会开始捣鼓,尤其是因为据我所知这似乎不会影响其他任何东西。只是在启动时看到这些错误飞过有点烦人。

答案1

我通过创建列出的两个文件(当然是以 root 身份)解决了这个问题。它们是空的,但它会在启动时停止投诉。x64 是一个 NFS/http/tftp/BOOTP 服务器,似乎不会受到影响。之前没有功能问题,之后也没有。唯一的变化是启动日志中没有错误。

相关内容