博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux Start Restart and Stop The Cron or Crond Service
阅读量:6266 次
发布时间:2019-06-22

本文共 1725 字,大约阅读时间需要 5 分钟。

Linux Start Restart and Stop The Cron or Crond Service

by on December 29, 2006 ·

How do I start, restart and stop the cron service under Linux / UNIX / BSD like operating systems?

is use to execute scheduled commands or scripts. cron wakes up every minute, examining all stored crontabs, checking each command to see if it should be run in the current minute.

If you are using Redhat (RHEL)/Fedora Core/Cent OS Linux use the following commands.

Task: Start cron service

To start the cron service, use:

# /etc/init.d/crond start

Task: Stop cron service

To stop the cron service, use:

# /etc/init.d/crond stop

Task: Restart cron service

To restart the cron service, use:

# /etc/init.d/crond restart

If you are using Debian or Ubuntu Linux the following commands.

Task: Debian Start cron service

To start the cron service, use:

# /etc/init.d/cron start
OR
$ sudo /etc/init.d/cron start

Task: Debian Stop cron service

To stop the cron service, use:

# /etc/init.d/cron stop
OR
$ sudo /etc/init.d/cron stop

Task: Debian Restart cron service

To restart the cron service, use:

# /etc/init.d/cron restart
OR
$ sudo /etc/init.d/cron restart

Task : Start the cron service at boot time

It is recommended that you start the service at boot time so that job can run w/o problems.

If you are using Redhat (RHEL)/Fedora Core/Cent OS Linux use the following commands to ensure that the service remains enabled after a reboot:

# chkconfig crond on
You can use a text based GUI tool called ntsysv to enable crond service:
# ntsysv

If you are using Debian or Ubuntu Linux use the following commands to ensure that a reboot:

# rcconf
OR
$ sudo rcconf
You can use command line tool :
# update-rc.d cron defaults
OR
$ sudo update-rc.d cron defaults

转载地址:http://nedpa.baihongyu.com/

你可能感兴趣的文章
ubuntu一键安装lamp
查看>>
漫谈 Clustering (1): k-means
查看>>
SQL Server 查询性能优化——索引与SARG(三)
查看>>
Oracle EBS:打开工作日历查看
查看>>
浅谈字节序(Byte Order)及其相关操作
查看>>
OSG闪存
查看>>
C#迭代器
查看>>
[Android] Change_xml.sh
查看>>
POJ-1925 Spiderman 动态规划
查看>>
实战BULK COLLECT(成批聚合类型)和数组集合type类型is table of 表%rowtype index by binary_integer ....
查看>>
Linux编程基础——线程概述
查看>>
Hive内部表外部表转化分析
查看>>
【转】使用Xcode和Instruments调试解决iOS内存泄露
查看>>
CDE: Automatically create portable Linux applications
查看>>
微信公众平台开发(4)天气预报
查看>>
WPF: RenderTransform特效
查看>>
基础才是重中之重~你是否真正了解TransactionScope?
查看>>
svn
查看>>
何时会发生db file sequential read等待事件?
查看>>
了解你所不知道的SMON功能(十二):Shrink UNDO(rollback) SEGMENT
查看>>