【问题标题】:How to run prefect agent in background in centos如何在centos后台运行完美代理
【发布时间】:2021-11-08 13:51:55
【问题描述】:

我想将完美代理作为后台进程运行。

prefect agent local start

还需要检查运行代理的状态(健康检查) 为了健康检查,我使用了下面的命令

prefect agent local start -f --agent-address http://100.64.114.291:8081

但是这个命令的输出总是空白

curl --fail --silent "http://100.64.114.291/api/health"

请帮帮我。

【问题讨论】:

  • 您希望使用--silent 选项有任何输出吗?

标签: curl prefect


【解决方案1】:

nohup command >/dev/null 2>&1 & # 在后台运行,仍然不会创建 nohup.out

用'prefect agent local start -f --agent-address http://100.64.114.291:8081'替换命令

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-10-24
    • 2017-07-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-25
    • 2013-01-06
    相关资源
    最近更新 更多