From a538a7e7d5bbc0b9c9387e12092dd662369519e5 Mon Sep 17 00:00:00 2001 From: "DESKTOP-010SCVV\\Ghost" <> Date: Tue, 14 Jan 2020 14:53:48 +0800 Subject: [PATCH] =?UTF-8?q?:pencil2:=20=E4=BF=AE=E6=AD=A3crontab=E6=9C=89?= =?UTF-8?q?=E5=85=B3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crontab.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crontab.md b/crontab.md index bab9ae3..c7bc542 100644 --- a/crontab.md +++ b/crontab.md @@ -68,7 +68,9 @@ __例子__ 01 * 2 * * ~/http.sh #每月2号第一分钟执行一次 ~/http.sh shell 文件 -* 2,3 * * * ~/http.sh #每天凌晨2点,3点 执行一次 ~/http.sh shell 文件 +0 2,3 * * * ~/http.sh #每天凌晨2点,3点 执行一次 ~/http.sh shell 文件 + +* 2,3 * * * ~/http.sh #每天凌晨2点,3点每分钟 执行一次 ~/http.sh shell 文件 10 * * * 1-5 root /usr/local/bin/php /home/ubuntu/demo.php #周一到周五第10分钟以 root 用户 php 命令去执行一次 demo.php 文件