<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國際加速解決方案。 廣告
                ### 間隔任務 #### 周日期間隔 實例5:每周一上午8點到11點的第3和第15分鐘執行 3,15 8-11 * * 1 myCommand #### 按天間隔 每天早上6點 0 6 * * * echo "Good morning." >> /tmp/test.txt 注意單純echo,從屏幕上看不到任何輸出,因為cron把任何輸出都email到root的信箱了。 實例6:每晚的21:30重啟smb 30 21 * * * /etc/init.d/smb restart #### 小時間隔 晚上11點到第二天7點每小時準點重啟apatch 0 23-7/1 * * * service httpd restart 晚上11點到早上8點之間每兩個小時和早上八點 0 23-7/2,8 * * * echo "Have a good dream" >> /tmp/test.txt 每晚11點到早上7點每隔1小時重啟服務器, 注意分鐘是用0而不是* 假如是`*`則代表每分鐘都在執行 #### 分鐘間隔 實例2:每小時的第3和第15分鐘執行 3,15 * * * * myCommand 每隔2分鐘重啟apache , 這里的 `*/2` 號 表示從0.0秒開始每隔2分鐘執行 ~~~ */2 * * * * service httpd restart ~~~ 每天18點到23點每隔30分鐘重啟服務器, 兩種寫法: ~~~ */30 18-23 * * * service httpd restart 0,30 18-23 * * * service httpd restart ~~~ #### 秒級間隔 每10秒獲取redis緩存數據進行處理 很多時候,我們計劃任務需要精確到秒來執行,但linux最小只支持分鐘,很多linux自帶的版本都不直接支持以秒來執行,根據以下方法,可以很容易地以秒執行任務。進入終端編輯crontab(命令:crontab -e)添加crontab計劃任務: ~~~ * * * * * /usr/bin/wget -q http://localhost/suixingv3/index.php/cata/index/getRedisValue * * * * * sleep 10; /usr/bin/wget -q http://localhost/suixingv3/index.php/cata/index/getRedisValue * * * * * sleep 20; /usr/bin/wget -q http://localhost/suixingv3/index.php/cata/index/getRedisValue * * * * * sleep 30; /usr/bin/wget -q http://localhost/suixingv3/index.php/cata/index/getRedisValue * * * * * sleep 40; /usr/bin/wget -q http://localhost/suixingv3/index.php/cata/index/getRedisValue * * * * * sleep 50; /usr/bin/wget -q http://localhost/suixingv3/index.php/cata/index/getRedisValue ~~~
                  <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>

                              哎呀哎呀视频在线观看