首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ubuntu 16.04中,启动时不启动rpcbind

在Ubuntu 16.04中,启动时不启动rpcbind
EN

Ask Ubuntu用户
提问于 2016-05-12 13:17:22
回答 3查看 18.8K关注 0票数 8

在Ubuntu16.04中,服务rpcbind在启动时不能正常启动

代码语言:javascript
复制
root@HZ-Saturn /etc/systemd # systemctl status rpc-statd.service
● rpc-statd.service - NFS status monitor for NFSv2/3 locking.
   Loaded: loaded (/lib/systemd/system/rpc-statd.service; disabled; vendor preset: enabled)
   Active: inactive (dead)

root@HZ-Saturn ~ # journalctl /sbin/rpcbind 
-- Logs begin at Thu 2016-05-12 12:09:23 CEST, end at Thu 2016-05-12 14:54:54 CEST. --
May 12 12:16:51 HZ-Saturn rpcbind[1738]: rpcbind: xdr_/run/rpcbind/rpcbind.xdr: failed
May 12 12:16:51 HZ-Saturn rpcbind[1738]: rpcbind: xdr_/run/rpcbind/portmap.xdr: failed

如果我开始手动

代码语言:javascript
复制
systemctl start rpcbind

起作用了。

代码语言:javascript
复制
root@HZ-Saturn ~ # systemctl start rpcbind
root@HZ-Saturn ~ # systemctl status rpcbind
● rpcbind.service - RPC bind portmap service
   Loaded: loaded (/lib/systemd/system/rpcbind.service; indirect; vendor preset: enabled)
  Drop-In: /run/systemd/generator/rpcbind.service.d
           └─50-rpcbind-$portmap.conf
   Active: active (running) since Thu 2016-05-12 15:13:50 CEST; 2s ago
 Main PID: 1497 (rpcbind)
    Tasks: 1 (limit: 512)
   Memory: 528.0K
      CPU: 4ms
   CGroup: /system.slice/rpcbind.service
           └─1497 /sbin/rpcbind -f -w

May 12 15:13:50 HZ-Saturn systemd[1]: Starting RPC bind portmap service...
May 12 15:13:50 HZ-Saturn rpcbind[1497]: rpcbind: xdr_/run/rpcbind/rpcbind.xdr: failed
May 12 15:13:50 HZ-Saturn rpcbind[1497]: rpcbind: xdr_/run/rpcbind/portmap.xdr: failed
May 12 15:13:50 HZ-Saturn systemd[1]: Started RPC bind portmap service.

怎么修呢?

EN

回答 3

Ask Ubuntu用户

发布于 2016-05-13 09:35:17

它是Ubuntu16.https://bugs.launchpad.net/ubuntu/+source/rpcbind/+bug/1558196中的bug systemd配置rpcbind单元

解决方案:

代码语言:javascript
复制
systemctl add-wants multi-user.target rpcbind.service
票数 7
EN

Ask Ubuntu用户

发布于 2017-03-30 12:26:02

以上并不是一个解决办法。在这篇文章中,Ubuntu16.04LTS- Xenial还没有实现解决方案。我已经在多用户环境中成功运行了这个补丁一个月。我从以前的海报链接中找到了下面的补丁,但是链接已经被删除了。

这个补丁可以在这里找到:

16.04上0.2.3~0.2的rpcbind贴片

票数 1
EN

Ask Ubuntu用户

发布于 2017-11-30 15:43:42

作为一项工作,安装nfs-内核-服务器也将致力于修复这个问题,因为nfs-内核-服务器服务连接了缺失的网络服务依赖项。

当然,您必须愿意让nfs服务器在机器上运行。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/771319

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档