crontab每10秒执行一次的实现方法

实例如下:

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

相关推荐