<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 使用thinkphp 5的 消息隊列 think queue > php think queue:listen --queue queuename > php think queue:work --daemon --queue xwyqueue 使用這兩個命令進行消息隊列的監控,在整個Linux操作界面關閉以后,發現就無法運行了。 原因就是這個進程沒有常駐在系統后臺。那么就需要用到liunx操作系統的 supervisor 來保證進程常駐 在百度搜索 supervisor 的安裝 使用 然后配置 supervisor.conf 文件 ``` [program:php] command= /usr/bin/php think queue:work --queue xwyqueue --daemon ; 被監控進程 directory=/www/website/weixin/ ;process_name=%(process_num)02d ;numprocs=5 #啟動幾個進程 autostart=true ;隨著supervisord的啟動而啟動 autorestart=true ;自動啟動 startsecs=1 ;程序重啟時候停留在runing狀態的秒數 startretries=10 ;啟動失敗時的最多重試次數 redirect_stderr=true ;重定向stderr到stdout stdout_logfile=/root/supervisor.log ;stdout文件 ``` ## 配置好以后,啟動Supervisor服務 > supervisord -c /etc/supervisord.conf 在執行命令出現以下提示信息時: Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord. For help, use /usr/bin/supervisord –h 是因為有一個使用supervisor配置的應用程序正在運行,需要執行supervisorctl shutdown命令終止 > supervisorctl status #查看所有任務狀態
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看