{"id":517148,"date":"2021-07-16T19:55:37","date_gmt":"2021-07-16T11:55:37","guid":{"rendered":"http:\/\/4563.org\/?p=517148"},"modified":"2021-07-16T19:55:37","modified_gmt":"2021-07-16T11:55:37","slug":"shell-%e7%9a%84%e6%97%a0%e9%99%90%e5%be%aa%e7%8e%af%e7%a8%b3%e4%b8%8d%e7%a8%b3%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=517148","title":{"rendered":"shell \u7684\u65e0\u9650\u5faa\u73af\u7a33\u4e0d\u7a33\uff1f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u547c\u5566\u5566<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>shell \u7684\u65e0\u9650\u5faa\u73af\u7a33\u4e0d\u7a33\uff1f<\/h3>\n<p>  \t\t\u6700\u8fd1\u6709\u4e2a\u9879\u76ee\uff0c\u9700\u8981\u76d1\u63a7\u786c\u76d8\u4f11\u7720\u72b6\u6001\uff0c\u9700\u8981\u4e00\u5206\u949f\u76d1\u63a7\u4e00\u6b21\uff0c\u6709 2 \u79cd\u8fd0\u884c\u65b9\u6848\uff1a<br \/>  1\u3001\u7528 crontab \u4e00\u5206\u949f\u8fd0\u884c\u4e00\u6b21<br \/>  2\u3001\u7528 shell \u811a\u672c\u65e0\u9650\u5faa\u73af sleep 60 \u6765 daemon \u8fd0\u884c<\/p>\n<p>  crontab \u4e00\u5206\u949f\u8fd0\u884c\u5c31\u6709\u4e00\u884c\u65e5\u5fd7\uff0c\u6709\u70b9\u70e6\uff0c\u4f46\u662f\u53c8\u62c5\u5fc3 shell \u65e0\u9650\u5faa\u73af\u4e0d\u7a33\u5b9a\uff0c\u6302\u4e86\u5c31\u8d77\u4e0d\u6765\u4e86\uff0c\u7ea0\u7ed3<br \/>  \u5927\u4f6c\u7ed9\u7ed9\u610f\u89c1\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5c0f\u732a\u4f69\u5947<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5bf9\uff0c\u6302\u4e86\u5c31\u8d77\u4e0d\u6765\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>zc_cz<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tshell\u811a\u672c+systemd\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>G.K.D<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u201ccrontab \u4e00\u5206\u949f\u8fd0\u884c\u5c31\u6709\u4e00\u884c\u65e5\u5fd7\u201d<br \/>  \u8fd9\u4e2a\u65e5\u5fd7\u4e00\u822c\u90fd\u662f\u53ef\u4ee5\u91cd\u5b9a\u5411\u5230 \/dev\/null \u7684\u5427\uff1f\u4f60\u6307\u7684\u5177\u4f53\u662f\u54ea\u91cc\u7684\u65e5\u5fd7\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>SAJ<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7ed9\u811a\u672c\u52a0\u4e2a\u5b88\u62a4\u8fdb\u7a0b\u9632\u6b62\u6302\u6389,\u65e0\u9650\u5957\u5a03\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>gqkkk<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tshell\u811a\u672c+systemd(\u5b88\u62a4\u8fdb\u7a0b) \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>sunny_SHEN<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t1\u5206\u949f\u4e00\u6b21\uff0c\u80fd\u6709\u591a\u5c11\u65e5\u5fd7\u3002\u3002\u3002\uff0c\u5199\u65e0\u9650\u5faa\u73af\u80af\u5b9a\u4e0d\u884c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e8c\u6c27\u5316\u78b3<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u79cd\u9ad8\u5f3a\u5ea6\u7684\uff0c\u4f7f\u7528systemd\u7684timer\u5b9a\u65f6\u62d6\u4efb\u52a1\u8fd0\u884c\uff0ccrontab\u6ca1\u6709\u90a3\u4e48\u7a33\u5b9a\uff0c\u4e00\u65e6\u6302\u4e86\u5c31\u5f7b\u5e95\u6ca1\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u547c\u5566\u5566 \u5927\u4f6c\u6709\u8bdd\u8bf4 : shell&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/517148"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=517148"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/517148\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=517148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=517148"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=517148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}