Discuz! Board

标题: centos 7.0 agent安装无法启动服务 [打印本页]

作者: liuyingdong    时间: 2016-3-1 16:32
标题: centos 7.0 agent安装无法启动服务
1.修改/etc/systemd/system/agent.service 文件 路径去掉引号
vim /etc/systemd/system/agent.service
ConditionFileIsExecutable=/root/tool/agent/agent
ExecStart=/root/tool/agent/agent
[Unit]
Description=Whaley Moniter Agent
ConditionFileIsExecutable=/root/tool/agent/agent
[Service]
StartLimitInterval=5
StartLimitBurst=10
ExecStart=/root/tool/agent/agent


Restart=always
RestartSec=120

[Install]
WantedBy=multi-user.target


2.重载systemctl   
systemctl daemon-reload
3.启动agent
systemctl restart agent.service





欢迎光临 Discuz! Board (http://123.59.83.120:8080/) Powered by Discuz! X3.2