crond 無法啟動:crond: unrecognized service

2014-04-04 CentOS

一般安裝好系統後都會有crond的服務,但是在做LAB的時候常常會把一些套件裝了又移除,常常會不小心把一些相依性的套件給移除掉而不知道怎麼裝回來

此篇記錄的是crond被移除了,要怎麼裝回來



執行 crond 找不到這個服務可以啟動
shell# service crond start
crond: unrecognized service

crontab 也無效
shell# crontab -e
crontab: command not found


只好重裝crond套件

shell# yum install vixie-cron


Dependencies Resolved
==================================================================================================== 
Package                Arch              Version                Repository                   Size ==================================================================================================== 
Installing:
cronie                    i686               1.4.4-7.el6              base                          70 k 
Installing for dependencies: 
cronie-anacron        i686               1.4.4-7.el6              base                          29 k 
crontabs                noarch            1.10-33.el6             base                          10 k 
cyrus-sasl              i686                2.1.23-13.el6          base                          77 k 
postfix                   i686                2:2.6.6-2.2.el6_1     base                          2.0 M 

Transaction Summary ====================================================================================================



確認
shell# which crond
/usr/sbin/crond

給 Mr. 沙先生一點建議

彙整

分類

展開全部 | 收合全部

License

訂閱 Mr. 沙先生 的文章

輸入你的 email 用於訂閱