码迷,mamicode.com
首页 > 系统相关 > 详细

linux下安装及简单使用

时间:2019-03-06 16:26:39      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:sharp   star   highlight   restart   config   play   nbsp   kconfig   crontab   

1.安装

# yum install vixie-cron
# yum install crontabs
# chkconfig crond on  #设为开机启动,先要安装chkconfig(yum install chkconfig)
# service crond start  #启动
# service crond stop  #停止
# service crond start     //启动服务  
# service crond stop      //关闭服务  
# service crond restart   //重启服务  
# service crond reload    //重新载入配置  
# service crond status    //查看crontab服务状态  
# /etc/rc.d/init.d/crond restart  #重启
# /etc/rc.d/init.d/crond reload  #不中断服务,重新载入配置

2.使用

# crontab -e  编辑配置文件
#crontab -u <-l, -r, -e>
# crontab -u 指定一个用户
# crontab -l 列出某个用户的任务计划
# crontab -r 删除某个用户的任务
# crontab -e 编辑某个用户的任务

  

linux下安装及简单使用

标签:sharp   star   highlight   restart   config   play   nbsp   kconfig   crontab   

原文地址:https://www.cnblogs.com/two-bees/p/10483974.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!