Prometheus init.d 从附加参数开始

Prometheus init.d start with additional arguments

我需要帮助。我如何 运行 带有附加参数的普罗米修斯,我有 OS Debian 8,我 运行 示例:

/etc/init.d/promethus 开始 - 好的 /etc/init.d/promethus ---storage.local.memory-chunks=336342 开始 - 不起作用。

我不知道其他变体的解决方案。

谢谢

在基于 Debian 的系统上,您通常可以在 /etc/default

下的服务文件中添加参数

/etc/init.d/promethus 是一个服务初始化脚本而不是 Prometheus 二进制可执行文件,通常您会像这样使用它:

  • sudo 服务普罗米修斯 start/stop/status/restart

要将其他参数传递给您要启动的守护程序,您可以在文件 /etc/default/prometheus 中配置参数,或者您可以阅读 shell 脚本以查看是否有任何环境变量可以被使用。