dongren9966 2014-10-28 10:34
浏览 122
已采纳

drupal 7如何让cron作业自动运行

I have installed the elysia cron module and setup the cron job. So far I'm running cron jobs mannually. And it is quite time consuming because I have other things to do than run cron every 2 hours. I read the handbooks on cron configurations, but didn't get much, since I'm not a PHP literate person.

How can I make my drupal run cron automatically??? So that I don't have to come back to my site every 2 hours.

  • 写回答

1条回答 默认 最新

  • dongzi0850 2014-10-28 10:49
    关注

    You can use the crontab. Usually this can be accessed on your server by running crontab -e in the shell and then adding an entry to specify how frequently to update your site. For example,

    0 * * * * wget -O - -q -t 1 http://{your_drupal_server}/cron.php
    

    would run every hour. Replace {your_drupal_server} with the url of your server. The command assumes you have wget installed as well.

    These sites may be helpful:

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿