How to setup cron job on Amazon Linux AMI

a 夏天 提交于 2019-12-04 03:40:30

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).

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

service crond start
chkconfig crond on

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

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

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

In Amazon Linux 2 you should enter these commands:

sudo systemctl start crond
sudo systemctl enable crond
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!