要修改这个文件/etc/sysconfig/cron,要修改的内容如下:
## Type: string ## Default: "" # # At which time cron.daily should start. Default is 15 minutes after booting # the system. Example setting would be "14:00". # Due to the fact that cron script runs only every 15 minutes, # it will only run on xx:00, xx:15, xx:30, xx:45, not at the accurate time # you set. DAILY_TIME="4:06"
默认是从14:15开始启动cron.daily中的程序。
修改DAILY_TIME到相应的值即可,但是,要注意的是,因为cron是每15分钟运行一次,所以实际上cron.daily的启动时间不是精确的和设定值完全一样的。
时间: 2024-10-27 05:01:26