美文网首页
在CentOS下安装crontab服务

在CentOS下安装crontab服务

作者: Bteam_独孤求败 | 来源:发表于2016-09-01 09:56 被阅读0次

1. 确认crontab是否安装:

执行 crontab 命令如果报 command not found,就表明没有安装

2. 安装 crontab

执行 yum install -y vixie-cron

3. 确认是否安装成功:

执行 crontab -l

4. 看是否设置了开机自动启动

chkconfig --list crond 或者chkconfig crond on

5. 启动crontab

service crond start

6.添加计划任务

crontab -e

crontab -l

7.脚本sh设置777权限

相关文章

网友评论

      本文标题:在CentOS下安装crontab服务

      本文链接:https://www.haomeiwen.com/subject/ajpcettx.html