简体   繁体   中英

CronJob on EC2 not working

I have used these cronjobs on our previous LiquidWeb LAMP stack and it worked fine. Now on our new AWS setup, it won't work at all.

*/1 * * * * /usr/bin/curl --silent --compressed http://website.com/reader.php
*/1 * * * * /usr/bin/curl --silent --compressed http://website.com/process/
*/1 * * * * /usr/bin/curl --silent --compressed http://website.com/subscription/instagramtag
*/1 * * * * /usr/bin/curl --silent --compressed http://website.com/subscription/twittertag
*/1 * * * * /usr/bin/curl --silent --compressed http://website.com/subscription/cron_follow
*/30 * * * * /usr/bin/curl --silent --compressed http://website.com/subscription/report/
*/1 * * * * /usr/bin/curl --silent --compressed http://www.website.com/subscription/twitter

I know these scripts work, there are no PHP errors, and obviously website.com is not the real address. Is it because we are on a micro-instance? Am I overloading the server?

Figured it out, it was an issue w/ all of the SSL certs, these were run as https not http, I added in -k and they all worked. Thanks everyone :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM