1、yum install vixie-cron
yum install crontabs
2、启动与停止
service crond start
service crond stop
service crond restart
3、使用方法
1小时执行一次
vi /etc/crontab
0 */1 * * * curl -d "is_cron=1" http://hosts/weibo.php/Cron/auto_search_weibo_for_self
本文介绍了如何通过yum安装vixie-cron和crontabs软件包,以及如何启动、停止和重启Cron服务。此外,还提供了一个每小时执行一次的Cron任务配置实例。
1、yum install vixie-cron
yum install crontabs
2、启动与停止
service crond start
service crond stop
service crond restart
3、使用方法
1小时执行一次
vi /etc/crontab
0 */1 * * * curl -d "is_cron=1" http://hosts/weibo.php/Cron/auto_search_weibo_for_self
6449
1174
1230

被折叠的 条评论
为什么被折叠?