gpt4 book ai didi

centos - Systemctl : Argument list too long

转载 作者:行者123 更新时间:2023-12-04 19:41:32 25 4
gpt4 key购买 nike

我正在运行 Centos 7并且需要安装 check_mk代理获取机器统计信息。我已经在很多其他地方成功安装了代理Centos 7同一个集群通过 rpm包,但使用当前机器我得到这个输出:

Running transaction
Warning: RPMDB altered outside of yum.
Installing : check-mk-agent-1.5.0p9-1.noarch 1/1
Activating startscript of xinetd
Note: Forwarding request to 'systemctl enable xinetd.service'.
Failed to execute operation: Argument list too long
Starting xinetd...
Redirecting to /bin/systemctl start xinetd.service
Failed to start xinetd.service: Argument list too long
See system logs and 'systemctl status xinetd.service' for details.
Verifying : check-mk-agent-1.5.0p9-1.noarch 1/1

Installed:
check-mk-agent.noarch 0:1.5.0p9-1

还注意到系统无法正常工作 systemd新服务。我为测试目的做了一个垃圾服务,它的配置文件在 /etc/systemd/system被命名为 test.service并简单地调用 /root/test_service/ 下的 python 脚本.
这是服务文件:
[Unit]
Description=Example systemd service.

[Service]
Type=simple
ExecStart=/root/test_service/service

[Install]
WantedBy=multi-user.target

这是 python脚本:
#!/usr/bin/python

import time

i = 0
while True:
print(i)
time.sleep(2)
i += 1

运行 systemctl start test.service我得到错误:
Failed to start test.service: Argument list too long
See system logs and 'systemctl status test.service' for details.

此外, systemd似乎工作正常,因为我有很多其他服务启动并运行。还尝试启动 xinetd服务导致同样的错误。

任何线索将不胜感激。

最佳答案

这是一个 known bug

试试 pruning你的日记

关于centos - Systemctl : Argument list too long,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59881919/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com