{"id":7707,"date":"2020-05-23T19:48:57","date_gmt":"2020-05-23T11:48:57","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7707"},"modified":"2020-05-23T19:48:58","modified_gmt":"2020-05-23T11:48:58","slug":"anacron","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/anacron","title":{"rendered":"anacron\u547d\u4ee4 – \u5b9a\u671f\u8fd0\u884c\u547d\u4ee4"},"content":{"rendered":"\n
anacron\u547d\u4ee4\u53ef\u7528\u4e8e\u5b9a\u671f\u6267\u884c\u547d\u4ee4\uff0c\u9891\u7387\u4ee5\u5929\u4e3a\u5355\u4f4d\u6307\u5b9a\uff0c\u4e0ecron\uff088\uff09\u4e0d\u540c\u7684\u662f\uff0c\u5b83\u4e0d\u5047\u5b9a\u673a\u5668\u8fde\u7eed\u8fd0\u884c\u3002\u56e0\u6b64\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u6bcf\u5929\u4e0d\u8fd0\u884c24\u5c0f\u65f6\u7684\u673a\u5668\u4e0a\uff0c\u4ee5\u63a7\u5236\u901a\u5e38\u7531cron\u63a7\u5236\u7684\u6bcf\u65e5\u3001\u6bcf\u5468\u548c\u6bcf\u6708\u4f5c\u4e1a\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>anacron [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u6d4b\u8bd5anacron\u8bed\u6cd5\uff1a<\/p>\n\n\n\n \u4f7f\u7528\/root\/myspool\u5b58\u50a8\/etc\/myanacron\u6587\u4ef6\u4e2d\u5b9a\u4e49\u7684\u4f5c\u4e1a\u7684\u6240\u6709\u65f6\u95f4\u6233\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u4f7f\u7528-f\u53c2\u6570\uff0c\u5f3a\u5236\u6267\u884c\u4f5c\u4e1a\uff0c\u5ffd\u7565\u65f6\u95f4\u6233\uff1a<\/p>\n\n\n\n \u53ea\u5c06\u4f5c\u4e1a\u7684\u65f6\u95f4\u6233\u66f4\u65b0\u5230\u5f53\u524d\u65e5\u671f\uff0c\u4f46\u4e0d\u8fd0\u884c\u4efb\u4f55\u64cd\u4f5c\uff1a<\/p>\n\n\n\n anacron\u547d\u4ee4\u53ef\u7528\u4e8e\u5b9a\u671f\u6267\u884c\u547d\u4ee4\uff0c\u9891\u7387\u4ee5\u5929\u4e3a\u5355\u4f4d\u6307\u5b9a\uff0c\u4e0ecron\uff088\uff09\u4e0d\u540c\u7684\u662f\uff0c\u5b83\u4e0d\u5047\u5b9a\u673a\u5668\u8fde\u7eed\u8fd0\u884c\u3002\u56e0\u6b64 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7707"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=7707"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7707\/revisions"}],"predecessor-version":[{"id":7754,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7707\/revisions\/7754"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-f<\/td> \u5f3a\u5236\u6267\u884c\u4f5c\u4e1a\uff0c\u5ffd\u7565\u65f6\u95f4\u6233<\/td><\/tr> -u<\/td> \u53ea\u5c06\u4f5c\u4e1a\u7684\u65f6\u95f4\u6233\u66f4\u65b0\u5230\u5f53\u524d\u65e5\u671f\uff0c\u4f46\u4e0d\u8fd0\u884c\u4efb\u4f55\u64cd\u4f5c<\/td><\/tr> -s<\/td> \u5e8f\u5217\u5316\u4f5c\u4e1a\u7684\u6267\u884c\uff0c\u5728\u524d\u4e00\u4e2a\u4f5c\u4e1a\u5b8c\u6210\u4e4b\u524d\uff0canacron\u4e0d\u4f1a\u542f\u52a8\u65b0\u4f5c\u4e1a<\/td><\/tr> -d<\/td> \u5728\u6b64\u6a21\u5f0f\u4e0b\uff0canacron\u5c06\u4fe1\u606f\u6027\u6d88\u606f\u8f93\u51fa\u5230\u6807\u51c6\u9519\u8bef\u548csyslog,\u4f5c\u4e1a\u7684\u8f93\u51fa\u50cf\u5f80\u5e38\u4e00\u6837\u901a\u8fc7\u90ae\u4ef6\u53d1\u9001<\/td><\/tr> -q<\/td> \u7981\u6b62\u5c06\u6d88\u606f\u663e\u793a\u4e3a\u6807\u51c6\u9519\u8bef,\u4ec5\u9002\u7528\u4e8e-d\u53c2\u6570\u7ed3\u5408\u4f7f\u7528<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# cat \/etc\/anacrontab<\/pre>\n\n\n\n
[root@linuxcool ~]# anacron -S \/root\/myspool -t \/etc\/myanacron<\/pre>\n\n\n\n
[root@linuxcool ~]# anacron -f \/root\/myspool<\/pre>\n\n\n\n
[root@linuxcool ~]# anacron -d -u<\/pre>\n","protected":false},"excerpt":{"rendered":"