如何运行“作业调度程序”?在 LAMP 堆栈上?

发布于 2024-12-27 00:34:23 字数 114 浏览 6 评论 0原文

我有一个使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心意如水 2025-01-03 00:34:23

有几种可能性。

如果您对计算机有 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文