UniAgent相关命令

CentOS 7及以上

  • 查看UniAgent状态:sudo systemctl status tingyun-oneagent

  • 启用UniAgent:sudo systemctl start tingyun-oneagent

  • 禁用UniAgent:sudo systemctl stop tingyun-oneagent

    禁用后,已嵌码的进程正常采集数据,新启动的进程不再被嵌码。

  • 重启UniAgent:sudo systemctl restart tingyun-oneagent

CentOS 7以下

  • 查看UniAgent状态:sudo service tingyun-oneagent status

  • 启用UniAgent:sudo service tingyun-oneagent start

  • 禁用UniAgent:sudo service tingyun-oneagent stop

    禁用后,已嵌码的进程正常采集数据,新启动的进程不再被嵌码。

  • 重启UniAgent:sudo service tingyun-oneagent restart

如果系统上没有systemctl 或 service 命令,请尝试以下命令

  • 启动 /etc/init.d/tingyun-oneagent start 停止 /etc/init.d/tingyun-oneagent stop

  • 启动 /sbin/init.d/tingyun-oneagent start 停止 /sbin/init.d/tingyun-oneagent stop

  • 启动 /etc/rc.d/tingyun-oneagent start 停止 /etc/rc.d/tingyun-oneagent stop

results matching ""

    No results matching ""