[英]How to configure a cron job for EasyAPNS on a web server?
how do I have to configure a cron job for EasyAPNS on a real web server? 如何在真实的Web服务器上为EasyAPNS配置cron作业?
I have the following file (cronjob.phpx): 我有以下文件(cronjob.phpx):
<?php
exec("* * * * * nice /usr/bin/php -f http://mydomain.com/apns.php fetch > http://mydomain.com/apns.log 2>&1");
?>
But it doesn't work. 但这是行不通的。
Thank's for any help. 谢谢你的帮助。
Arno 亚诺
put the full path to nice maybe it works then (/usr/bin/nice)? 把完整的路径放到漂亮的位置,也许它可以工作了(/ usr / bin / nice)? Try whereis nice so you know the path. 尝试whereis nice,以便您知道路径。
My solution: 我的解决方案:
cronjob.phpx cronjob.phpx
content of the cron job file: cron作业文件的内容:
include(" http://mydomain.com/apns/apns.php "); include(“ http://mydomain.com/apns/apns.php ”);
I created a cron job on the web server 我在网络服务器上创建了一个cron作业
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.