【问题标题】:What is the meaning of -q in the following scripts? What differences will it make running without it? [duplicate]以下脚本中 -q 的含义是什么?没有它运行会有什么不同? [复制]
【发布时间】:2018-06-17 12:00:33
【问题描述】:

我正在运行这个脚本,

/usr/bin/php -q /home/username/app_folder/artisan queue:work >> /dev/null 2>&1

这是否意味着,命令将在队列中运行?

【问题讨论】:

标签: php laravel cron


【解决方案1】:

取自man php命令:

-q  Quiet-mode. Suppress HTTP header output (CGI only).

另见What does it mean to run PHP in quiet mode?

【讨论】:

    【解决方案2】:

    从 php 的手册中你可以找到:

    -q
    静音模式。禁止 HTTP 标头输出(仅限 CGI)。

    【讨论】:

      【解决方案3】:

      它是php命令的一个选项,你可以阅读手册:

      -q :安静模式。禁止 HTTP 标头输出(仅限 CGI)。

      【讨论】:

        猜你喜欢
        • 2019-04-21
        • 1970-01-01
        • 1970-01-01
        • 2021-02-24
        • 1970-01-01
        • 2014-10-24
        • 2013-08-08
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多