我正试图在我的CentOS 7 VM上配置一个NIS服务器。这是一个新的VM (VMware工作站12),我所做的就是运行以下命令
yum install ypbind ypserv rpcbind
/usr/lib64/yp/ypinit -m
echo "ypserver 127.0.0.1" >> /etc/yp.conf我添加了localhost作为NIS服务器。当我试图启动Systemd下的服务时,我会得到以下错误
systemctl start ypserv.service
journalctl -xe
-- Unit rpcbind.service has begun starting up.
Jan 06 19:13:07 localhost.localdomain rpcbind[4306]: /sbin/rpcbind: symbol lookup error: /sbin/rpcbind: undefined symbol: libtirpc_set_debug
Jan 06 19:13:07 localhost.localdomain systemd[1]: rpcbind.service: control process exited, code=exited status=127
Jan 06 19:13:07 localhost.localdomain systemd[1]: Failed to start RPC bind service.
-- Subject: Unit rpcbind.service has failed这将导致ypserv.service由于延迟而无法启动。有人知道这意味着什么吗。我是不是应该在NIS浪费我的时间?
编辑:也没有提到。当我运行ypinit -m时,我收到了所有这些消息。
We need a few minutes to build the databases...
Building /var/yp/home/ypservers...
Running /var/yp/Makefile...
gmake[1]: Entering directory `/var/yp/home'
Updating passwd.byname...
failed to send 'clear' to local ypserv: RPC: Port mapper failureUpdating passwd.byuid...
failed to send 'clear' to local ypserv: RPC: Port mapper failureUpdating group.byname...
failed to send 'clear' to local ypserv: RPC: Port mapper failureUpdating group.bygid...编辑2:所以我猜应该在数据库上运行的/var/yp/Makefile有问题。我现在正在看,但到目前为止我没有发现什么不寻常的地方。
发布于 2017-01-07 00:46:06
对错误的网络搜索表明它是一个已知的错误。一旦修复(或者手动安装了libtirpc ),rpcbind就应该启动。
https://unix.stackexchange.com/questions/335509
复制相似问题