守护进程
安装 LoongCollector
linux环境
cat>/etc/systemd/system/loongcollectord.service<<EOF [Unit] Description=loongcollector [Service] Type=simple User=root Restart=always RestartSec=60 ExecStart=/usr/local/loongcollector/loongcollector [Install] WantedBy=multi-user.target EOFsystemctl daemon-reloadsystemctl restart loongcollectordsystemctl status loongcollectordsystemctl stop loongcollectord
Last updated