如何运行“作业调度程序”?在 LAMP 堆栈上?
我有一个使用 PHP 构建的简单网站。它托管在 Linux 服务器上。
我需要每晚运行一个 PHP 脚本。我该怎么做?
“Java 中的开源作业调度程序”能够运行 PHP 脚本吗?
I have a simple website built using PHP. It is hosted on a Linux server.
I need to run a PHP script every night. How do I do this?
Will an 'open-source job scheduler in java' be able to run a PHP script?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有几种可能性。
如果您对计算机有 shell 访问权限,则可以设置计划任务(cron 作业,http:// www.scrounge.org/linux/cron.html)通过 php 命令行客户端或像curl或wget这样的工具来执行脚本。
如果您无法访问该机器上的 shell,有几个网站提供免费的 cronjobs。基本上,他们所做的就是您给他们一个链接以及他们应该访问您的链接的时间表。只需谷歌搜索在线 cron 作业
There are several possibilities.
If you have shell access to the machine you can set up a scheduled task (cron job, http://www.scrounge.org/linux/cron.html) to execute your script either by the php command line client or by a tool like curl or wget.
IF you don't have access to the shell on that machine there are several web sites that offer free cronjobs. Basically what they do is that you give them a link and the schedule when they should access your link. Just google for online cron job