30 * * * *
时间: 2024-03-18 16:37:44 浏览: 17
30 * * * * 是一个Cron表达式,用于指定在每小时的第30分钟执行某个任务。Cron表达式是一种时间表达式,用于在特定时间点或时间间隔内执行任务。它由5个字段组成,分别表示分钟、小时、日期、月份和星期几。
在这个例子中,30 * * * * 表示在每小时的第30分钟执行任务。具体来说,它表示在每小时的30分钟时刻执行任务,而其他字段则表示不限制具体的日期、月份和星期几。
相关问题
30 * * * * ?
"30 * * * * ?"表示每半分钟触发任务。\[1\]\[2\]
#### 引用[.reference_title]
- *1* [cron表达式](https://blog.csdn.net/dingren0775/article/details/102324222)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [定时任务规则 * * * * * ?详解](https://blog.csdn.net/weixin_43205774/article/details/125258846)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [quartz cron表达式](https://blog.csdn.net/u010564366/article/details/72844345)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
*/30 * * * * crontab
这是一个cron表达式,表示每30分钟执行一次crontab命令。具体来说,它的格式如下:
```
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of the week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of the month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)
```
因此,*/30 * * * *表示每30分钟执行一次命令。如果要将其添加到cron作业中,请使用以下命令:
```
crontab -e
```
然后将*/30 * * * * crontab添加到文件中并保存即可。
相关推荐
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)