Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道怎么称呼这个。
如果我编写了一个 php 脚本来计算储蓄账户的利息。
在没有用户监控的情况下,我如何告诉程序在一天结束时运行脚本。例如凌晨 0.00 或服务器启动。
如果您在 UNIX 服务器上,Cron是您的最佳选择。在 Windows 机器上使用计划任务。
通过 CLI使用Crontab调用PHP 文件,如果您在 Windows 上,请尝试pyCron。
您需要运行 cron 作业查看 wiki cron以获取更多信息。希望这可以帮助。