如何在 WAMP 等本地服务器中测试 cron 作业?

2022-01-03 00:00:00 windows cron wamp php

如何在 WAMP 等本地服务器中测试 cron 作业?

How to test a cron job in Local Server like WAMP?

推荐答案

Windows 没有 Cron(它是 Linux 系统的主要任务调度程序).Windows 版本是 Task Scheduler.这个问题推荐使用at命令.

Windows doesn't have Cron (it is the main task scheduling program for Linux systems). The Windows version for that is the Task Scheduler. This question recommends using the at command.

因此 Cron 与 Apache、Mysql、PHP 设置没有任何关系我认为不可能可靠地测试您在 Windows 中为 Linux Cron 创建的 cronjobs(也许使用http://www.cygwin.com/" rel="nofollow noreferrer">Cygwin).

So that Cron doesn't have anything to do with the Apache, Mysql, PHP setup I don't think it is possible to reliably test the cronjobs you created for the Linux Cron in windows (maybe with Cygwin).

相关文章