步骤1:查看crond.serivce服务的自启动状态
[root@localhost ~]# systemctl is-enabled crond.service
disabledspa
此时crond.serivce的自启动状态为disabledblog
步骤2:开启crond.serivce服务自启动it
[root@localhost ~]# systemctl enable crond.serviceio
[root@localhost ~]# systemctl is-enabled crond.service
enabledfile
列出全部的启动文件:service
systemctl list-unit-filesgrep
列出全部状态为enable的启动文件top
systemctl list-unit-files | grep enabledi
关闭crond.serivce的自启动状态文件
systemctl disable crond.service
步骤1:查看crond.service的启动状态
systemctl status crond.service
开启crond.service服务命令
systemctl start crond.service
中止crond.service服务命令
systemctl stop crond.service