定时任务

crontab
crontab log

Redhat (RHEL)/Fedora Core/Cent OS Linux.
# /etc/init.d/crond start|stop|restart|reload
# /etc/rc.d/init.d/crond start

Debian or Ubuntu Linux.
$ sudo /etc/init.d/cron start|stop|restart|reload
$ sudo service cron start


start the service at boot time so that job can run w/o problems.
Redhat (RHEL)/Fedora Core/Cent OS Linux:
# chkconfig crond on

Debian or Ubuntu Linux:
$ sudo rcconf
$ sudo update-rc.d cron defaults


man service
service --status-all
sudo service SCRIPT COMMAND [OPTIONS]
sudo service cron start

The  SCRIPT  parameter  specifies  a  System  V init script, located in
/etc/init.d/SCRIPT.  The supported values  of  COMMAND  depend  on  the
invoked  script,  service  passes  COMMAND  and  OPTIONS it to the init
script unmodified.  All scripts should support at least the  start  and
stop  commands.   As  a special case, if COMMAND is --full-restart, the
script is run twice, first with the stop command, then with  the  start
command.

/etc/init.d containing System V init scripts.



rails whenever







  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值