<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>

                > 在很多業務中 我們都需要定時去中一些任務 下面演示 如何在laravel框架中 使用定時任務 ### 1 定義定時文件 在 app/console/Kernel.php ~~~ $schedule->call(function () { //執行定時邏輯 業務代碼 })->cron('*/4 * * * *'); //每四分鐘執行一次 ~~~ ### 在centos中 ``` crontab -l 查看定時任務 crontab -e 編輯 ``` 執行 `crontab -e` 進入編輯頁面 添加 * * * * * cd /home/wwwroot/xxxx && php artisan schedule:run >> /dev/null 2>&1 命令相當于 進入到你的項目目錄 然后執行 php artisan 更多laravel配置 參見 laravel文檔 https://learnku.com/docs/laravel/8.x/scheduling/9399 ### **普通執行定時任務** ~~~ */1 * * * * curl http://xxxx #每分鐘訪問一次這個地址,時間自己掌握 ~~~
                  <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>

                              哎呀哎呀视频在线观看