首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >proc-sys-fs-binfmt_misc.automount失败服务

proc-sys-fs-binfmt_misc.automount失败服务
EN

Server Fault用户
提问于 2015-04-15 11:24:41
回答 1查看 9.1K关注 0票数 9

我使用的是ubuntu 14.10。

我刚刚安装了systemd,我有一个失败的服务,proc-sys-fs-binfmt_misc.automount

我在这里看到它是systemd的一部分:

这个文件重要吗?如何解决激活问题?

systemctl status的输出:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
svassaux@vps127101:~$ systemctl status
proc-sys-fs-binfmt_misc.automount -> '/org/freedesktop/systemd1/unit/proc_2dsys_2dfs_2dbinfmt_5fmisc_2eautomount'
proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point
   Loaded: loaded (/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
           http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems

编辑:我的单位文件:

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Arbitrary Executable File Formats File System Automount Point
Documentation=https://www.kernel.org/doc/Documentation/binfmt_misc.txt
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
DefaultDependencies=no
Before=sysinit.target
ConditionPathExists=/proc/sys/fs/binfmt_misc/
ConditionPathIsReadWrite=/proc/sys/

[Automount]
Where=/proc/sys/fs/binfmt_misc
EN

回答 1

Server Fault用户

发布于 2017-09-14 11:59:57

binfmt_misc机制用于为“外来”二进制格式注册处理程序,以使内核能够直接执行此类文件。正如普通的ELF二进制文件是使用/lib*/ld-linux*.so.2执行的,各种脚本由它们的第一个"shebang“行上的任何脚本执行,任何其他文件格式都可以通过告诉内核如何识别格式和运行什么而成为可执行文件。binfmt_misc机制最常见的用户可能是WINE,它需要它来启用使用"./program.exe“运行的Windows可执行文件。

因此,除非您使用这个特性的葡萄酒功能,我想您的系统将正常工作,即使是在一个非功能的binfmt_misc机制。

至于为什么激活自动单元在您的系统上失败,这是不可能知道不检查系统日志(至少)。自动装置非常轻巧,因此不太可能发生故障。我猜想您的问题可能与系统上的某些非标准安全或资源限制设置有关。

您可以使用journalctl _SYSTEMD_UNIT=proc-sys-fs-binfmt_misc.automount更仔细地查看失败的单元。如果这没有帮助,请尝试journalctl -b,找出该单元无法启动的点,并查找可能相关的任何错误。

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

https://serverfault.com/questions/682992

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文