设置 NFS 客户端显示“未设置本地域名”错误

设置 NFS 客户端显示“未设置本地域名”错误

我在配置机器使用 nfs 时遇到了麻烦。我安装了 autofs,并尝试对其进行配置。但问题是我在 OpenSuSe 机器上使用的配置不起作用。

第一个问题是缺少一行nsswitch.conf

我添加了这一行:automount: nis files

但现在我明白了:

automount[2285]: lookup_init:136: lookup(yp): map auto.master: Local domain name not set

这是一个本地网络设置,因此我对这个错误完全感到困惑。为什么 nfs 客户端需要域名?

答案1

我通过执行解决了这个问题hostname computer_name。我真的不知道为什么在安装过程中没有设置这个。

答案2

答案就在日志消息中,系统的域名未设置:只需尝试:

domainname localdomain

nfs4 需要域名...您可能正在安装 nfs4 共享。检查您的 NAS 或其他设备

相关内容