crontab -l
rails s -e production -p 5000 -d
*/10 * * * * curl http://localhost:5000/iqiyi/originality
*/10 * * * * curl http://localhost:5000/tx/task
在crontab -e 里面添加类似上面的语句
rails s -e production -p 5000 -d
*/10 * * * * curl http://localhost:5000/iqiyi/originality
*/10 * * * * curl http://localhost:5000/tx/task
在crontab -e 里面添加类似上面的语句
本文介绍了一个具体的crontab配置示例,展示了如何使用curl命令配合crontab来定期执行特定任务,这对于理解如何设置后台定时作业非常有用。
686

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



