![NIS/YP make-mail.aliases 回调超时](https://linux22.com/image/520322/NIS%2FYP%20make-mail.aliases%20%E5%9B%9E%E8%B0%83%E8%B6%85%E6%97%B6.png)
我正在尝试将 mail.aliases 映射添加到我的 NIS/YP 服务器上的 Makefile 中。我已将“mail”添加到要构建的映射列表中,并确保它指向正确的别名文件 (/etc/aliases)。
我遇到的问题是,当我运行 make 时,出现如下“回调超时”错误:
mail.aliases -> “SlaveNisServer”:回调超时
其他地图似乎已成功构建。
有人知道这里可能出了什么问题吗?
答案1
可能是您的从属服务器设置不正确 - 尝试在 SlaveNisServer 上运行 ypinit,并确保 NIS(和 rpcbind)守护程序正在运行:
/usr/lib/yp/ypinit -s MasterNisServer
答案2
谢谢。帮助解决了问题:
# /usr/lib64/yp/ypinit -s nfs1
We will need a few minutes to copy the data from nfs1.
Transferring protocols.bynumber...
Trying ypxfrd ... success
Transferring services.byname...
Trying ypxfrd ... success
Transferring group.bygid...
Trying ypxfrd ... success
Transferring auto.data...
Trying ypxfrd ... success
Transferring mail.aliases...
Trying ypxfrd ... success
Transferring auto.app...
Trying ypxfrd ... success
Transferring netid.byname...
Trying ypxfrd ... success
Transferring ypservers...
Trying ypxfrd ... success
Transferring auto.home...
Trying ypxfrd ... success
Transferring rpc.byname...
Trying ypxfrd ... success
Transferring hosts.byname...
Trying ypxfrd ... success
Transferring passwd.byname...
Trying ypxfrd ... success
Transferring auto.master...
Trying ypxfrd ... success
Transferring passwd.byuid...
Trying ypxfrd ... success
Transferring hosts.byaddr...
Trying ypxfrd ... success
Transferring rpc.bynumber...
Trying ypxfrd ... success
Transferring group.byname...
Trying ypxfrd ... success
Transferring protocols.byname...
Trying ypxfrd ... success
Transferring services.byservicename...
Trying ypxfrd ... success
nfs2's NIS data base has been set up.
If there were warnings, please figure out what went wrong, and fix it.
此时,请确保/etc/passwd
和/etc/group
已被编辑,以便在激活 NIS 时,将使用您刚刚创建的数据库,而不是/etc
ASCII 文件。
[root@nfs2:/root]
同时运行:服务 ypserv 重新启动 这将更新 ypserv 设置。
答案3
我在 NIS 系统中添加新文件后也遇到了同样的问题。我手动复制了生成的二进制文件,之后它在从属服务器上同步。显然,指出的 ypinit 也重新复制了该文件。