我有一个奇怪的问题。我已经设置了crontab,使其每15分钟运行一次。
*/15 * * * * php /var/www/index.php api/cron check_for_reminders
上面的crontab条目的作用是调用index.php文件并将api/cron
和check_for_reminders
作为参数传递。
脚本似乎在每小时的00,15和30分钟运行,但它在第45分钟无法运行。为什么会这样?
DEV - 2017-03-08 10:15:01 --> production
DEV - 2017-03-08 10:15:01 --> production
ERROR - 2017-03-08 10:15:01 --> Severity: 8192 --> mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead /var/www/XXXX/database/drivers/mysql/mysql_driver.php 91
DEV - 2017-03-08 10:30:01 --> production
DEV - 2017-03-08 10:30:01 --> production
ERROR - 2017-03-08 10:30:01 --> Severity: 8192 --> mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead /var/www/XXXX/database/drivers/mysql/mysql_driver.php 91
DEV - 2017-03-08 11:00:01 --> production
DEV - 2017-03-08 11:00:01 --> production
ERROR - 2017-03-08 11:00:01 --> Severity: 8192 --> mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead /var/www/XXXX/database/drivers/mysql/mysql_driver.php 91
DEV - 2017-03-08 11:00:01 --> production
DEV - 2017-03-08 11:00:01 --> production
ERROR - 2017-03-08 11:00:01 --> Severity: 8192 --> mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead /var/www/XXXX/database/drivers/mysql/mysql_driver.php 91