﻿{"id":123,"date":"2019-11-30T16:49:42","date_gmt":"2019-11-30T08:49:42","guid":{"rendered":"http:\/\/47.104.236.141\/?p=123"},"modified":"2020-07-02T15:56:05","modified_gmt":"2020-07-02T07:56:05","slug":"centos-7-7-%e5%ae%9a%e6%97%b6%e4%bb%bb%e5%8a%a1","status":"publish","type":"post","link":"http:\/\/www.linux-dba.com\/index.php\/2019\/11\/123\/","title":{"rendered":"CentOS 7.7 \u5b9a\u65f6\u4efb\u52a1"},"content":{"rendered":"<p>\u63a8\u8350\u53c2\u8003\u7f51\u5740\u4e00\uff1a<a href=\"https:\/\/os.51cto.com\/art\/201911\/605966.htm\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/os.51cto.com\/art\/201911\/605966.htm<\/a><\/p>\n<p>\u63a8\u8350\u53c2\u8003\u7f51\u5740\u4e8c\uff1a<a href=\"https:\/\/www.cnblogs.com\/p0st\/p\/9482167.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.cnblogs.com\/p0st\/p\/9482167.html<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>cron \u4efb\u52a1\u7528\u4e8e\u201c\u81ea\u52a8\u6267\u884c\u7684\u4efb\u52a1\u201d\uff0c\u5b83\u6709\u52a9\u4e8e\u7b80\u5316\u91cd\u590d\u7684\u3001\u6709\u65f6\u662f\u4e4f\u5473\u7684\u4efb\u52a1\u7684\u6267\u884c\uff0c\u672c\u7ad9\u4e0d\u505a\u57fa\u7840\u4ecb\u7ecd\uff0c\u672c\u7ad9\u53ea\u8bb0\u5f55crontab\u914d\u7f6e\u6587\u4ef6\u683c\u5f0f\uff0c\u9700\u8981\u8be6\u7ec6\u4e86\u89e3cron\uff0c\u8bf7\u53c2\u8003\u672c\u6587\u63a8\u8350\u7f51\u5740\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e00\u3001cron\u670d\u52a1\u662fLinux\u7684\u5185\u7f6e\u670d\u52a1\uff0ccron\u4efb\u52a1\u7684\u81ea\u52a8\u6267\u884c\u9700\u8981\u5f00\u542fcrond\u5b88\u62a4\u8fdb\u7a0b\u3002cronb \u8fdb\u7a0b\u76f8\u5173\u547d\u4ee4\uff1a<\/p>\n<blockquote>\n<ol>\n<li>systemctl status crond.service # \u68c0\u67e5crond\u670d\u52a1\u8fdb\u7a0b\u72b6\u6001<\/li>\n<li>systemctl start crond.service # \u5f00\u542fcrond\u670d\u52a1\u8fdb\u7a0b<\/li>\n<li>systemctl stop crond.service # \u505c\u6b62crond\u670d\u52a1\u8fdb\u7a0b<\/li>\n<li>systemctl enable crond.service # \u8bbe\u7f6ecrond\u670d\u52a1\u8fdb\u7a0b\u5f00\u673a\u542f\u52a8<\/li>\n<li>systemctl disable crond.service # \u5173\u95edcrond\u670d\u52a1\u8fdb\u7a0b\u5f00\u673a\u542f\u52a8<\/li>\n<li>systemctl is-active crond.service # \u68c0\u67e5 crond\u670d\u52a1\u8fdb\u7a0b\u662f\u5426\u4e3a\u6d3b\u52a8\u72b6\u6001<\/li>\n<li>systemctl is-enabled crond.service # \u68c0\u67e5crond\u670d\u52a1\u8fdb\u7a0b\u662f\u5426\u4e3a\u5f00\u673a\u542f\u52a8<\/li>\n<\/ol>\n<\/blockquote>\n<p>\u4e8c\u3001\u7528 crontab \u547d\u4ee4\u53ef\u4ee5\u914d\u7f6e cron \u53c2\u6570\uff0ccrontab\u683c\u5f0f\u5982\u4e0b<\/p>\n<blockquote><p>* * * * * command<\/p><\/blockquote>\n<p>\u6b64\u683c\u5f0f\u4e5f\u53ef\u4ee5\u8868\u793a\u5982\u4e0b\uff1a<\/p>\n<blockquote><p>m h d moy dow command<\/p><\/blockquote>\n<p>\u8ba9\u6211\u4eec\u6765\u89e3\u91ca\u4e00\u4e0b\u6bcf\u4e2a\u6761\u76ee<\/p>\n<p>m\uff1a\u4ee3\u8868\u5206\u949f\u3002\u8303\u56f4\u662f 0 \u5230 59<br \/>\nh\uff1a\u8868\u793a\u5c0f\u65f6\uff0c\u8303\u56f4\u662f 0 \u5230 23<br \/>\nd\uff1a\u4ee3\u8868\u4e00\u4e2a\u6708\u4e2d\u7684\u67d0\u5929\uff0c\u8303\u56f4\u662f 1 \u5230 31<br \/>\nmoy\uff1a\u8fd9\u662f\u4e00\u5e74\u4e2d\u7684\u6708\u4efd\u3002\u8303\u56f4\u662f 1 \u5230 12<br \/>\ndoy\uff1a\u8fd9\u662f\u661f\u671f\u51e0\u3002\u8303\u56f4\u662f 0 \u5230 6\uff0c\u5176\u4e2d 0 \u4ee3\u8868\u661f\u671f\u65e5<br \/>\ncommand\uff1a\u8fd9\u662f\u8981\u6267\u884c\u7684\u547d\u4ee4\uff0c\u4f8b\u5982\u5907\u4efd\u547d\u4ee4\u3001\u91cd\u65b0\u542f\u52a8\u548c\u590d\u5236\u547d\u4ee4\u7b49<\/p>\n<p>&nbsp;<\/p>\n<p>\u6ce8\uff1avim \u7b49\u5176\u4ed6\u6587\u672c\u7f16\u8f91\u5de5\u5177\u4e5f\u53ef\u4ee5\uff0c\u4f46\u662f\u4e0d\u4f1a\u81ea\u52a8\u68c0\u67e5\u8bed\u53e5\uff0ccrontab\u4f1a\u5728\u4fdd\u5b58\u65f6\u68c0\u67e5\u8bed\u6cd5<\/p>\n<p>&nbsp;<\/p>\n<p>\u9a8c\u8bc1\u73af\u5883\uff1aCentOS 7.7<\/p>\n<p>\u6574\u7406\u65f6\u95f4\uff1a2019-11-30 16:44:00<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: right;\">\u65f6\u95f4\uff1a2019-11-30 16:45:00<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a8\u8350\u53c2\u8003\u7f51\u5740\u4e00\uff1ahttps:\/\/os.51cto.com\/art\/201911\/605966.htm \u63a8\u8350\u53c2\u8003 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[36,35],"tags":[9,10,12,3],"_links":{"self":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/123"}],"collection":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":1,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":272,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions\/272"}],"wp:attachment":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}