Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Centos Systemctl:参数列表太长_Centos_Systemd_Check Mk_Xinetd - Fatal编程技术网

Centos Systemctl:参数列表太长

Centos Systemctl:参数列表太长,centos,systemd,check-mk,xinetd,Centos,Systemd,Check Mk,Xinetd,我正在运行Centos 7,需要安装check_mk代理以获取机器统计信息。我已通过rpm软件包在同一集群的许多其他Centos 7中成功安装了代理,但在当前机器上,我得到以下输出: Running transaction Warning: RPMDB altered outside of yum. Installing : check-mk-agent-1.5.0p9-1.noarch

我正在运行
Centos 7
,需要安装
check_mk
代理以获取机器统计信息。我已通过
rpm
软件包在同一集群的许多其他
Centos 7
中成功安装了代理,但在当前机器上,我得到以下输出:

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\u 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启动测试。服务
我得到错误:

Failed to start test.service: Argument list too long
See system logs and 'systemctl status test.service' for details.
此外,
systemd
似乎工作正常,因为我还有很多其他服务正在运行。还尝试启动
xinetd
服务,导致相同错误

任何线索都将不胜感激。

这是一个

试试你的日记