How to setup cron job on Amazon Linux AMI

后端 未结 6 1986
遥遥无期
遥遥无期 2021-02-20 17:57

I am hosting Tiny Tiny RSS site hosted on

Amazon Linux AMI

To update the feed automatically I have to run following cron job.

Referen

相关标签:
6条回答
  • 2021-02-20 18:26

    You should first inspect the cron log file /var/log/cron and look for any errors. This will probably give you the answer. Also make sure you can run the command successfully on the command line (/usr/bin/php /var/www/html/tt-rss/update.php --feeds --quiet).

    0 讨论(0)
  • 2021-02-20 18:26

    Simply do : * * * * * wget -o - -q -t 1 "your url with cron file"

    0 讨论(0)
  • 2021-02-20 18:31

    This sounds like crond is not running. In which case:

    service crond start
    chkconfig crond on
    
    0 讨论(0)
  • 2021-02-20 18:31

    Please check the spaces, it could be because of spaces are not placed correctly

    0 讨论(0)
  • 2021-02-20 18:33

    Please remove the "--quiet" part from your cron command and check the log and feed again

    0 讨论(0)
  • 2021-02-20 18:39

    In Amazon Linux 2 you should enter these commands:

    sudo systemctl start crond
    sudo systemctl enable crond
    
    0 讨论(0)
提交回复
热议问题