首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
centos7 配置定时任务
centos7 配置定时任务
it
2023-08-05
79
1、编辑定时任务文件
vim /etc/crontab
2、添加定时任务内容
添加如下信息,表示每晚1点执行 /home下xxx.sh脚本
00 01 * * * root /home/xxx.sh
3、重启定时任务
systemctl restart crond.service
转载请注明原文地址: https://lol.8miu.com/read-7740.html
最新回复
(
0
)