实例如下:
vim /var/spool/cron/root * * * * * sleep 10; /usr/bin/curl http://localhost/index.php * * * * * sleep 20; /usr/bin/curl http://localhost/index.php * * * * * sleep 30; /usr/bin/curl http://localhost/index.php * * * * * sleep 40; /usr/bin/curl http://localhost/index.php * * * * * sleep 50; /usr/bin/curl http://localhost/index.php
以上这篇crontab每10秒执行一次的实现方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持华域联盟。
您可能感兴趣的文章:
- 使用linux命令crontab间隔时间执行其它命令
- 如何使用Linux的Crontab定时执行PHP脚本的方法
- linux使用crontab实现PHP执行计划定时任务
- Centos 7下利用crontab定时执行任务详解
- linux定时任务crontab 实现每秒执行一次的方法
- linux下定时执行任务的方法及crontab 用法说明(收集整理)
- crontab实现每隔多少天执行一次脚本的两种方法
- crontab无法执行php的解决方法
- linux crontab 实现每秒执行的实例
- crontab执行时间与系统时间不一致问题解决
本文由 华域联盟 原创撰写:华域联盟 » crontab每10秒执行一次的实现方法
转载请保留出处和原文链接:https://www.cnhackhy.com/18368.htm