+-
linux – binfmt服务上的systemd失败
Systemd有几个失败的服务,我不知道如何解决它:

# systemctl --failed
UNIT                              LOAD   ACTIVE SUB    JOB DESCRIPTION
proc-sys-fs-binfmt_misc.automount loaded failed failed     Arbitrary Executable File Formats File System Automount Point
systemd-binfmt.service            loaded failed failed     Set Up Additional Binary Formats

更多细节:

# systemctl status systemd-binfmt.service
systemd-binfmt.service - Set Up Additional Binary Formats
      Loaded: loaded (/usr/lib/systemd/system/systemd-binfmt.service; static)
      Active: failed (Result: exit-code) since Tue, 2012-11-27 07:42:11 CST; 36min ago
        Docs: man:systemd-binfmt.service(8)
              man:binfmt.d(5)
              https://www.kernel.org/doc/Documentation/binfmt_misc.txt
     Process: 213 ExecStart=/usr/lib/systemd/systemd-binfmt (code=exited, status=1/FAILURE)
      CGroup: name=systemd:/system/systemd-binfmt.service

# systemctl status proc-sys-fs-binfmt_misc.automount
proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point
      Loaded: loaded (/usr/lib/systemd/system/proc-sys-fs-binfmt_misc.automount; static)
      Active: failed (Result: resources)
       Where: /proc/sys/fs/binfmt_misc
        Docs: https://www.kernel.org/doc/Documentation/binfmt_misc.txt

有什么建议?

最佳答案
当systemd单元出现故障时,您可以执行多项操作. journalctl -u [unit-name]将显示该单元生成的所有输出.在停止和启动服务时运行journalctl -f也很有帮助.

systemd附带的许多单元文件都有一个关联的手册页.试试man [unit-name].此外,单元文件可以指向自己的文档. systemd-bnfmt.service手册页和这两个状态输出都指向binfmt_misc.txt.该文档有很多关于为二进制文件注册解释器的信息.如果查看日志不会产生任何有用的信息,我会查看binfmt.d中的配置并手动注册解释器,看看会发生什么.

点击查看更多相关文章

转载注明原文:linux – binfmt服务上的systemd失败 - 乐贴网