linux | crond cron | service systemctl chkconfig

我想说的是,同一标准是真的很重要,不然张三用一套规则,李四用另一套规则,惨的是,这两套规则我们都得学 呜呜呜
cron 简言之,是linux 自带的定时程序,crond 是cron 的进程名,一般都是程序 与进程名同名的,在centos 系统会使用 crond 充当进程名,而在ubuntu会使用cron
还有一个 crontab 是用于操作 cron 定时 任务 常用命令 crontab -e 手动添加定时任务 crontab -l 查看定时任务

在老的版本 比如centos6 还在使用 chkconfig crond on 用于 设置cron 开机自启,使用 service crond on 用于启动cron 服务
在新版本的centos (centos7)和ubuntu(16) 使用 systemctl
但是新版本的要注意,centos 使用进程名 crond 对cron操作(开启、重启、禁用、查看状态) 而ubuntu 使用的是程序名 cron

姑且以我这总模式代入吧,好理解一点
还有一个要注意的,就是 systemctl status crond 等价于 systemctl systemctl crond.service 以及 systemctl status cron 等价于 systemctl status cron.service

你可能感兴趣的:(linux,综合部,linux,运维,服务器)