如何在 WAMP 等本地服务器中测试 cron 作业? [英] How to test a cron job in Local Server like WAMP?

查看:21
本文介绍了如何在 WAMP 等本地服务器中测试 cron 作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 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).

这篇关于如何在 WAMP 等本地服务器中测试 cron 作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆