Ich bin vertraut, um den Cron-Scheduler mit crontab -e
Befehl auf meinem centos
einzurichten. Aber heute fand ich einen meiner centos
Server hat diesen Befehl nichtWie installiert man Crontab auf Centos
Ich habe versucht, dies mit yum install crontab
installieren, aber kein Glück. Dann habe ich versucht yum install crontabs
und es installiert etwas
=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
crontabs noarch 1.10-11.el5 base 7.0 k
Transaction Summary
=============================================================================
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total download size: 7.0 k
Is this ok [y/N]:
Aber immer noch der crontab
Befehl funktioniert nicht. Wenn ich cat /etc/crontab
tun dann zeigt es unten Sache
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
40 * * * * root run-parts /etc/cron.hourly
54 1 * * * root run-parts /etc/cron.daily
14 3 * * 0 root run-parts /etc/cron.weekly
38 1 16 * * root run-parts /etc/cron.monthly
Was soll ich tun crontab
auf diesem bestimmten Server zu haben? Ich benutze CentOS release 5.2 (Final)
.
grep auf cron zeigt:
[root~]# ps -ef | grep cron
root 24022 24001 0 19:07 pts/1 00:00:00 grep cron
beginnend cron-Dienst zurückkehrt:
[root~]# service cron start
cron: unrecognized service
Dank für cronie, das ist der wichtige Teil für 7.x – jeffmcneill
Beachten Sie, dass auf 6.x 'yum crontabs installieren 'auch installiere cronie, cronie-anacron und exim. Denken Sie daran, dass der Dienst "crond" ist und er gestartet werden muss (und 'chkconfig enable on'). – jeffmcneill