美文网首页
定时-crontab

定时-crontab

作者: 高山之水 | 来源:发表于2018-02-06 21:54 被阅读0次
/crond start    //启动服务
/sbin/service crond stop     //关闭服务
/sbin/service crond restart  //重启服务
/sbin/service crond reload   //重新载入配置</pre>

service crond status
service crond start

查看crontab服务是否已设置为开机启动,执行命令:
ntsysv
加入开机自动启动:
chkconfig -level 35 crond on

定制脚本
crontab -e  
相当于vim
文档加入
0 1 * * * root /data/bakdb.sh  > /data/bak.log 2>&1

0 0 * * *  /opt/com.wuxinvip.blog/git_pull.sh

*/2 * * * * /bin/bash -x /shell/web_monit/http_monit.sh  > /dev/null 2>&1

查看定时任务
crontab -u root -l  

相关文章

  • crondtab 定时任务

    编辑定时任务 crontab -e 查看定时任务 crontab -l 删除定时任务 crontab -r 如:*...

  • linux crontab: 定时任务

    参考 crontab 定时任务 Linux之crontab定时任务

  • crond任务调度(定时任务调度)

    基本语法crontab [选项]选项-e : 编辑crontab定时任务-l : 查询crontab定时任务...

  • linux Crontab

    Linux Crontab:Linux中用于执行定时任务的工具crontab -e:编辑定时任务crontab -...

  • Crontab

    crontab命令: crontab定时任务: example:

  • Linux定时任务

    Linux定时任务 centOS: 使用crontab -e //编辑 crontab -l //查看定时任务 生...

  • mac 定时任务

    1、使用crontab设置定时任务 crontab -e 或者sudo crontab -e。 00 16 * *...

  • Linux定时任务

    >>>crontab -l #显示当前用户所有定时任务 >>>crontab -e #进入编辑定时任务模式 ...

  • Linux定时任务(2019-07-03)

    crontab -l 查询已有定时任务 crontab -e 编辑/新增定时任务 00 7 * * * /home...

  • 常用的linux命令

    ①定时任务管理: crontab –l 查看定时任务 crontab -e 编辑定时任务 ②查看实时日志: tai...

网友评论

      本文标题:定时-crontab

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