哈尔滨网站优化技术,涵江网站建设,贵州建设局网站,软件开发流程1.查看 crond 是否开启
systemctl status crond 2.设置 crontab 定时任务
基本语法
#基本语法
crontab [选项] 查看定时任务
#查看定时任务
crontab -l 编辑定时任务
#编辑定时任务
crontab -e 案例实操
*/1 * * * * echo hello,world /root/hel…
1.查看 crond 是否开启
systemctl status crond 2.设置 crontab 定时任务
基本语法
#基本语法
crontab [选项] 查看定时任务
#查看定时任务
crontab -l 编辑定时任务
#编辑定时任务
crontab -e 案例实操
*/1 * * * * echo hello,world /root/hello
#每隔1分钟将hello,world追加到/root下的hello文件
删除定时任务
#删除定时任务
crontab -r