{"id":1360,"date":"2026-11-01T21:39:01","date_gmt":"2026-11-01T13:39:01","guid":{"rendered":"https:\/\/www.asaeo.com\/?p=1360"},"modified":"2026-11-01T21:39:01","modified_gmt":"2026-11-01T13:39:01","slug":"cron%e5%ae%9a%e6%97%b6%e4%bb%bb%e5%8a%a1%e6%b2%a1%e6%89%a7%e8%a1%8c%ef%bc%9f%e4%bb%8e%e8%bf%90%e8%a1%8c%e7%94%a8%e6%88%b7%e3%80%81%e7%bb%9d%e5%af%b9%e8%b7%af%e5%be%84%e5%92%8c%e6%97%a5%e5%bf%97","status":"publish","type":"post","link":"https:\/\/www.asaeo.com\/?p=1360","title":{"rendered":"cron\u5b9a\u65f6\u4efb\u52a1\u6ca1\u6267\u884c\uff1f\u4ece\u8fd0\u884c\u7528\u6237\u3001\u7edd\u5bf9\u8def\u5f84\u548c\u65e5\u5fd7\u67e5\u8d77"},"content":{"rendered":"<div class=\"yd-practical-guide\" style=\"font-size:16px;line-height:1.9\">\n<p>\u811a\u672c\u624b\u52a8\u6267\u884c\u6b63\u5e38\uff0c\u653e\u8fdbcron\u540e\u5374\u6ca1\u6709\u7ed3\u679c\uff0c\u6700\u5e38\u89c1\u7684\u8bef\u533a\u662f\u76f4\u63a5\u91cd\u542fcron\uff0c\u6216\u8005\u628a\u8fd0\u884c\u7528\u6237\u6539\u6210root\u3002\u5148\u5224\u65ad\u662f\u201c\u6839\u672c\u6ca1\u89e6\u53d1\u201d\uff0c\u8fd8\u662f\u201c\u5df2\u7ecf\u89e6\u53d1\u3001\u811a\u672c\u5931\u8d25\u201d\uff0c\u6392\u67e5\u4f1a\u5feb\u5f97\u591a\u3002<\/p>\n<p>\u672c\u6587\u6309Debian cron\u3001Red Hat\u548csystemd\u5b98\u65b9\u6587\u6863\u6574\u7406\uff0c\u6838\u9a8c\u65e5\u671f\u4e3a2026\u5e7411\u67081\u65e5\u3002\u622a\u56fe\u4e3a\u5b98\u65b9\u6587\u6863\u5b9e\u62cd\uff1b\u547d\u4ee4\u3001\u7528\u6237\u540d\u548c\u8def\u5f84\u5747\u4e3a\u6392\u67e5\u793a\u4f8b\uff0c\u5e76\u975e\u771f\u5b9e\u6545\u969c\u8bb0\u5f55\u3002\u8bf7\u6309\u81ea\u5df1\u7684\u53d1\u884c\u7248\u548c\u6743\u9650\u66ff\u6362\u3002<\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">1. \u5148\u786e\u5b9a\u4efb\u52a1\u7a76\u7adf\u5199\u7ed9\u4e86\u8c01<\/h2>\n<pre style=\"padding:18px;background:#f4f7fb;border:1px solid #e0e7f0;border-radius:8px;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere\"><code>id\r\ncrontab -l\r\ndate -Is\r\ntimedatectl status<\/code><\/pre>\n<p><code>crontab -l<\/code>\u53ea\u67e5\u770b\u5f53\u524d\u7528\u6237\u7684\u4efb\u52a1\u3002\u7ba1\u7406\u5458\u82e5\u66ff\u5e94\u7528\u7528\u6237\u68c0\u67e5\uff0c\u53ef\u7528<code>sudo -u app crontab -l<\/code>\uff0c\u5176\u4e2d<code>app<\/code>\u5fc5\u987b\u6362\u6210\u5b9e\u9645\u8d26\u6237\u3002\u901a\u8fc7\u9762\u677f\u521b\u5efa\u7684\u4efb\u52a1\uff0c\u8fd8\u5e94\u786e\u8ba4\u9762\u677f\u6700\u7ec8\u5199\u5230\u4e86\u54ea\u4e2a\u7528\u6237\u3001\u54ea\u4e2a\u6587\u4ef6\uff0c\u4e0d\u8981\u5728\u51e0\u4e2a\u5730\u65b9\u91cd\u590d\u6dfb\u52a0\u540c\u4e00\u4efb\u52a1\u3002<\/p>\n<p>\u7528\u6237crontab\u901a\u5e38\u662f\u201c\u4e94\u4e2a\u65f6\u95f4\u5b57\u6bb5\uff0b\u547d\u4ee4\u201d\uff1b<code>\/etc\/crontab<\/code>\u548c<code>\/etc\/cron.d\/<\/code>\u7684\u7cfb\u7edf\u4efb\u52a1\u8fd8\u5305\u542b\u8fd0\u884c\u7528\u6237\u540d\u3002\u4e24\u79cd\u683c\u5f0f\u6df7\u7528\uff0c\u4f1a\u628a\u7528\u6237\u540d\u5f53\u6210\u547d\u4ee4\uff0c\u6216\u8005\u7f3a\u5c11\u5fc5\u8981\u5b57\u6bb5\u3002\u5148\u7528\u7b80\u5355\u7684\u56fa\u5b9a\u65f6\u95f4\u9a8c\u8bc1\uff0c\u522b\u5728\u6392\u969c\u65f6\u540c\u65f6\u5f15\u5165\u590d\u6742\u65e5\u671f\u89c4\u5219\u3002<\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">2. \u627e\u5230\u8c03\u5ea6\u8bc1\u636e\uff0c\u518d\u770b\u4e1a\u52a1\u7ed3\u679c<\/h2>\n<p>\u5728\u4f7f\u7528systemd\u7684\u5e38\u89c1\u7cfb\u7edf\u4e0a\uff0c\u6309\u53d1\u884c\u7248\u9009\u62e9\u5b9e\u9645\u5b58\u5728\u7684\u670d\u52a1\uff1a<\/p>\n<pre style=\"padding:18px;background:#f4f7fb;border:1px solid #e0e7f0;border-radius:8px;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere\"><code># Debian\/Ubuntu\u5e38\u89c1\u670d\u52a1\u540d\r\nsystemctl status cron --no-pager\r\njournalctl -u cron --since today --no-pager\r\n\r\n# RHEL\u7cfb\u5e38\u89c1\u670d\u52a1\u540d\r\nsystemctl status crond --no-pager\r\njournalctl -u crond --since today --no-pager<\/code><\/pre>\n<p>\u90e8\u5206\u7cfb\u7edf\u628acron\u6d88\u606f\u5199\u5230<code>\/var\/log\/cron<\/code>\u6216syslog\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u65e5\u5fd7\u914d\u7f6e\u3002\u770b\u5230\u4efb\u52a1\u7684\u542f\u52a8\u8bb0\u5f55\uff0c\u8bf4\u660e\u8c03\u5ea6\u8d70\u5230\u4e86\u6267\u884c\u9636\u6bb5\uff1b\u4e0d\u80fd\u56e0\u6b64\u8ba4\u5b9a\u4e0a\u4f20\u3001\u5907\u4efd\u6216\u6570\u636e\u5e93\u64cd\u4f5c\u5df2\u7ecf\u6210\u529f\u3002\u6ca1\u6709\u65e5\u5fd7\u4e5f\u4e0d\u5fc5\u7acb\u5373\u8ba4\u5b9a\u6ca1\u8fd0\u884c\uff1a\u5148\u6838\u5b9e\u65e5\u5fd7\u4fdd\u5b58\u65b9\u5f0f\u548c\u67e5\u770b\u6743\u9650\u3002<\/p>\n<table style=\"width:100%;border-collapse:collapse;font-size:14px;margin:20px 0\">\n<thead>\n<tr>\n<th style=\"padding:12px;border:1px solid #dce4ef;text-align:left;background:#f2f6fc\">\u73b0\u8c61<\/th>\n<th style=\"padding:12px;border:1px solid #dce4ef;text-align:left;background:#f2f6fc\">\u5148\u67e5\u4ec0\u4e48<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">\u670d\u52a1\u672a\u8fd0\u884c\uff0c\u4efb\u52a1\u65e0\u542f\u52a8\u8bb0\u5f55<\/td>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">\u670d\u52a1\u72b6\u6001\u3001\u5b89\u88c5\u60c5\u51b5\u4e0e\u8c03\u5ea6\u914d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">\u6709\u542f\u52a8\u8bb0\u5f55\uff0c\u8f93\u51fa\u6587\u4ef6\u6ca1\u6709\u751f\u6210<\/td>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">\u811a\u672c\u8def\u5f84\u3001\u8fd0\u884c\u8d26\u6237\u3001\u8f93\u51fa\u76ee\u5f55\u6743\u9650<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">\u65e5\u5fd7\u63d0\u793acommand not found<\/td>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">\u7a0b\u5e8f\u7edd\u5bf9\u8def\u5f84\u3001PATH\u3001\u865a\u62df\u73af\u5883<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">\u4efb\u52a1\u6210\u529f\u542f\u52a8\u4f46\u4e1a\u52a1\u6ca1\u5b8c\u6210<\/td>\n<td style=\"padding:12px;border:1px solid #dce4ef;text-align:left;vertical-align:top\">\u5e94\u7528\u65e5\u5fd7\u3001\u7f51\u7edc\u4f9d\u8d56\u3001\u9000\u51fa\u72b6\u6001<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">3. \u7528\u65e0\u4e1a\u52a1\u526f\u4f5c\u7528\u7684\u5c0f\u4efb\u52a1\u9a8c\u8bc1<\/h2>\n<p>\u5728\u76ee\u6807\u7528\u6237\u7684crontab\u91cc\u4e34\u65f6\u6dfb\u52a0\u4e0b\u9762\u4e00\u884c\uff0c\u6bcf\u4e94\u5206\u949f\u628a\u65f6\u95f4\u8ffd\u52a0\u5230\u8be5\u7528\u6237\u53ef\u5199\u7684\u6587\u4ef6\u3002\u8def\u5f84\u5e94\u66ff\u6362\u4e3a\u5b9e\u9645\u7528\u6237\u76ee\u5f55\uff0c\u5e76\u786e\u8ba4<code>\/usr\/bin\/date<\/code>\u5b58\u5728\uff1a<\/p>\n<pre style=\"padding:18px;background:#f4f7fb;border:1px solid #e0e7f0;border-radius:8px;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere\"><code>*\/5 * * * * \/usr\/bin\/date -Is &gt;&gt; \/home\/app\/cron-probe.log 2&gt;&amp;1<\/code><\/pre>\n<p>\u7b49\u4e00\u4e2a\u8c03\u5ea6\u5468\u671f\u540e\u67e5\u770b\u6587\u4ef6\u3002\u5b83\u80fd\u5199\u5165\uff0c\u8bf4\u660e\u8fd9\u4e2a\u7528\u6237\u7684\u7b80\u5355\u4efb\u52a1\u53ef\u4ee5\u88ab\u8c03\u5ea6\uff1b\u539f\u811a\u672c\u4ecd\u9700\u5355\u72ec\u6392\u67e5\u3002\u9a8c\u8bc1\u5b8c\u5220\u9664\u8fd9\u6761\u4e34\u65f6\u6d4b\u8bd5\u884c\uff0c\u4fdd\u7559\u539f\u6765\u7684\u4e1a\u52a1\u4efb\u52a1\uff0c\u4e0d\u8981\u7528<code>crontab -r<\/code>\u6e05\u7a7a\u6574\u4e2a\u4efb\u52a1\u8868\u3002<\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">4. \u624b\u52a8\u80fd\u8dd1\uff0c\u4e0d\u4ee3\u8868cron\u7684\u73af\u5883\u76f8\u540c<\/h2>\n<p>cron\u4e0d\u4f1a\u7167\u642c\u4f60\u767b\u5f55\u7ec8\u7aef\u540e\u7684\u5168\u90e8\u73af\u5883\u3002Debian\u624b\u518c\u8bf4\u660e\u4e86\u9ed8\u8ba4shell\u548c\u7528\u6237\u76f8\u5173\u73af\u5883\uff1b\u4f9d\u8d56\u767b\u5f55\u811a\u672c\u3001\u522b\u540d\u3001\u4ea4\u4e92\u8f93\u5165\u3001\u5f53\u524d\u76ee\u5f55\u6216Python\u865a\u62df\u73af\u5883\u7684\u811a\u672c\uff0c\u6362\u5230cron\u91cc\u5c31\u53ef\u80fd\u5931\u8d25\u3002<\/p>\n<figure style=\"margin:26px 0\"><a href=\"https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd3-cron-20261101.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"1348\" height=\"926\" class=\"aligncenter size-full wp-image-1345\" src=\"https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd3-cron-20261101.jpg\" alt=\"Debian\u5b98\u65b9crontab\u624b\u518c\u4e2dSHELL\u3001HOME\u3001LOGNAME\u53ca\u4efb\u52a1\u683c\u5f0f\u7684\u8bf4\u660e\" loading=\"lazy\" style=\"display:block;width:100%;height:auto;border:1px solid #e5eaf2;border-radius:8px\" srcset=\"https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd3-cron-20261101.jpg 1348w, https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd3-cron-20261101-300x206.jpg 300w, https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd3-cron-20261101-1024x703.jpg 1024w, https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd3-cron-20261101-768x528.jpg 768w\" sizes=\"auto, (max-width: 1348px) 100vw, 1348px\" \/><\/a><figcaption style=\"font-size:13px;line-height:1.7;color:#67758a;margin-top:9px\">Debian crontab\u5b98\u65b9\u624b\u518c\u5bf9\u8fd0\u884c\u73af\u5883\u4e0e\u8eab\u4efd\u7684\u8bf4\u660e\uff0c\u771f\u5b9e\u622a\u56fe\u3002 <a href=\"https:\/\/www.asaeo.com\/wp-content\/uploads\/2026\/11\/yd3-cron-20261101.jpg\" target=\"_blank\" rel=\"noopener\">\u67e5\u770b\u622a\u56fe<\/a> \u00b7 <a href=\"https:\/\/manpages.debian.org\/bookworm\/cron\/crontab.5.en.html\" target=\"_blank\" rel=\"noopener\">\u5b98\u65b9\u539f\u6587<\/a><\/figcaption><\/figure>\n<p>\u5148\u786e\u8ba4\u7a0b\u5e8f\u7684\u5b9e\u9645\u4f4d\u7f6e\uff0c\u7528\u5b8c\u6574\u8def\u5f84\u8c03\u7528\uff1b\u5728\u811a\u672c\u91cc\u660e\u786e\u5de5\u4f5c\u76ee\u5f55\uff0c\u68c0\u67e5\u76ee\u5f55\u5207\u6362\u5931\u8d25\u65f6\u662f\u5426\u7acb\u5373\u505c\u6b62\u3002\u4f8b\u5982\u53ea\u5c55\u793a\u7ed3\u6784\uff0c\u4e0d\u80fd\u76f4\u63a5\u4ee3\u66ff\u4f60\u7684\u4e1a\u52a1\u811a\u672c\uff1a<\/p>\n<pre style=\"padding:18px;background:#f4f7fb;border:1px solid #e0e7f0;border-radius:8px;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere\"><code>#!\/bin\/sh\r\ncd \/srv\/app || exit 1\r\n\/usr\/bin\/python3 \/srv\/app\/jobs\/report.py<\/code><\/pre>\n<p>\u82e5\u4f9d\u8d56\u865a\u62df\u73af\u5883\uff0c\u8c03\u7528\u8be5\u73af\u5883\u7684\u89e3\u91ca\u5668\u8def\u5f84\u3002\u811a\u672c\u7528\u5230Bash\u4e13\u6709\u8bed\u6cd5\u65f6\uff0c\u5e94\u9009\u62e9\u6b63\u786e\u89e3\u91ca\u5668\uff1b\u4e0d\u8981\u628a\u6240\u6709\u6587\u4ef6\u6743\u9650\u6539\u6210777\u6765\u63a9\u76d6\u95ee\u9898\u3002\u5bc6\u94a5\u4ece\u53d7\u9650\u5236\u7684\u914d\u7f6e\u6587\u4ef6\u6216\u5408\u9002\u7684\u51ed\u636e\u673a\u5236\u8bfb\u53d6\uff0c\u4e0d\u8981\u4e3a\u4e86\u6392\u67e5\u628a\u5b8c\u6574\u73af\u5883\u53d8\u91cf\u3001\u8bf7\u6c42\u4ee4\u724c\u548c\u6570\u636e\u5e93\u5bc6\u7801\u6253\u5370\u5230\u65e5\u5fd7\u91cc\u3002<\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">5. \u628a\u9519\u8bef\u7559\u4e0b\uff0c\u4f46\u522b\u8ba9\u65e5\u5fd7\u65e0\u9650\u589e\u957f<\/h2>\n<p>\u539f\u4efb\u52a1\u53ef\u4ee5\u628a\u6807\u51c6\u8f93\u51fa\u4e0e\u9519\u8bef\u8f93\u51fa\u91cd\u5b9a\u5411\u5230\u4e00\u4e2a\u4e13\u7528\u3001\u53ef\u5199\u7684\u65e5\u5fd7\u6587\u4ef6\u3002\u5173\u952e\u4e0d\u662f\u201c\u6709\u65e5\u5fd7\u201d\uff0c\u800c\u662f\u6bcf\u6b21\u80fd\u770b\u5230\u5f00\u59cb\u65f6\u95f4\u3001\u7ed3\u675f\u65f6\u95f4\u548c\u6b63\u786e\u7684\u9000\u51fa\u72b6\u6001\u3002\u811a\u672c\u5185\u90e8\u82e5\u541e\u6389\u9519\u8bef\u5e76\u8fd4\u56de0\uff0ccron\u4e5f\u65e0\u6cd5\u66ff\u4f60\u5224\u65ad\u4e1a\u52a1\u5931\u8d25\u3002\u65e5\u5fd7\u9700\u8981\u8f6e\u8f6c\u548c\u6743\u9650\u63a7\u5236\u3002<\/p>\n<p>\u8fd8\u6709\u4e00\u4e2a\u9690\u853d\u7684\u8bed\u6cd5\u5751\uff1a\u76f4\u63a5\u5728cron\u547d\u4ee4\u91cc\u5199\u65e5\u671f\u683c\u5f0f\u65f6\uff0c\u672a\u8f6c\u4e49\u7684<code>%<\/code>\u6709\u7279\u6b8a\u542b\u4e49\uff0c\u5e76\u4e0d\u662f\u666e\u901a\u5b57\u7b26\u3002\u590d\u6742\u65e5\u671f\u5904\u7406\u653e\u8fdb\u811a\u672c\u66f4\u5bb9\u6613\u68c0\u67e5\u3002\u82e5\u540c\u65f6\u9650\u5b9a\u201c\u6bcf\u6708\u67d0\u65e5\u201d\u548c\u201c\u661f\u671f\u51e0\u201d\uff0cDebian\u8fd9\u4efd\u624b\u518c\u7684\u89c4\u5219\u662f\u4efb\u4e00\u6761\u4ef6\u5339\u914d\u5c31\u53ef\u6267\u884c\uff0c\u5e76\u4e0d\u662f\u5fc5\u987b\u540c\u65f6\u6ee1\u8db3\u3002<\/p>\n<p>\u8fd8\u8981\u68c0\u67e5\u8fd0\u884c\u65f6\u957f\uff1a\u4efb\u52a1\u6bcf\u4e94\u5206\u949f\u542f\u52a8\u4e00\u6b21\uff0c\u4e0a\u6b21\u5374\u8981\u8dd1\u5341\u5206\u949f\uff0c\u5c31\u53ef\u80fd\u51fa\u73b0\u91cd\u53e0\u6267\u884c\u3002\u5148\u786e\u8ba4\u4e1a\u52a1\u80fd\u5426\u5e76\u53d1\uff0c\u518d\u91c7\u7528\u9501\u6216\u8c03\u6574\u9891\u7387\uff1b\u4e0d\u8981\u5355\u51edCPU\u5347\u9ad8\u5c31\u7ee7\u7eed\u589e\u52a0\u4efb\u52a1\u5b9e\u4f8b\u3002<\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">6. \u9519\u8fc7\u6267\u884c\u65f6\u95f4\uff0c\u662f\u5426\u9700\u8981\u8865\u8dd1\uff1f<\/h2>\n<p>\u666e\u901acron\u8981\u6c42\u8ba1\u5212\u65f6\u95f4\u673a\u5668\u6b63\u5728\u8fd0\u884c\uff0c\u4e0d\u80fd\u9ed8\u8ba4\u5173\u673a\u671f\u95f4\u7684\u4efb\u52a1\u90fd\u4f1a\u8865\u505a\u3002\u5148\u6838\u5bf9\u65f6\u533a\u548c\u7cfb\u7edf\u65f6\u95f4\uff0c\u522b\u901a\u8fc7\u6539\u65f6\u95f4\u6765\u201c\u8bd5\u89e6\u53d1\u201d\u3002\u5982\u679c\u4efb\u52a1\u9700\u8981\u8865\u8dd1\u3001\u7edf\u4e00\u67e5\u770b\u72b6\u6001\u548c\u65e5\u5fd7\uff0c\u53ef\u4ee5\u8bc4\u4f30systemd timer\uff0c\u5e76\u5148\u7528\u53ea\u8bfb\u547d\u4ee4\u68c0\u67e5\u73b0\u6709\u914d\u7f6e\uff1a<\/p>\n<pre style=\"padding:18px;background:#f4f7fb;border:1px solid #e0e7f0;border-radius:8px;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere\"><code>systemctl list-timers --all\r\nsystemctl status example.timer example.service --no-pager<\/code><\/pre>\n<p><code>example<\/code>\u662f\u793a\u4f8b\u5355\u5143\u540d\u3002systemd\u7684<code>Persistent=true<\/code>\u53ea\u5bf9<code>OnCalendar=<\/code>\u65e5\u5386\u5b9a\u65f6\u5668\u751f\u6548\uff0c\u7528\u4e8e\u5728\u91cd\u65b0\u6fc0\u6d3b\u65f6\u8865\u89e6\u53d1\u9519\u8fc7\u7684\u6267\u884c\uff1b\u5b83\u4e0d\u4f1a\u4fdd\u8bc1\u6bcf\u4e2a\u9519\u8fc7\u7684\u5468\u671f\u90fd\u9010\u4e00\u8865\u8dd1\u3002\u66f4\u6362\u8c03\u5ea6\u5668\u540e\u4e5f\u8981\u505c\u7528\u91cd\u590d\u7684\u65e7\u4efb\u52a1\uff0c\u786e\u8ba4\u4e0b\u4e00\u6b21\u89e6\u53d1\u65f6\u95f4\u4e0e\u5b9e\u9645\u4e1a\u52a1\u7ed3\u679c\u3002<\/p>\n<p>\u6392\u67e5\u5b8c\u6210\u81f3\u5c11\u7559\u4e0b\u56db\u9879\u7ed3\u679c\uff1a\u8fd0\u884c\u7528\u6237\u3001\u8c03\u5ea6\u662f\u5426\u89e6\u53d1\u3001\u811a\u672c\u9000\u51fa\u72b6\u6001\u3001\u4e1a\u52a1\u8f93\u51fa\u662f\u5426\u6b63\u786e\u3002\u53ea\u786e\u8ba4\u670d\u52a1\u662f\u201cactive\u201d\uff0c\u8fd8\u6ca1\u5b8c\u6210\u9a8c\u6536\u3002<\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">\u6765\u6e90<\/h2>\n<p><a href=\"https:\/\/manpages.debian.org\/bookworm\/cron\/crontab.5.en.html\" target=\"_blank\" rel=\"noopener\">Debian crontab\u624b\u518c<\/a>\uff1b<a href=\"https:\/\/docs.redhat.com\/en\/documentation\/red_hat_enterprise_linux\/7\/html\/system_administrators_guide\/ch-automating_system_tasks\" target=\"_blank\" rel=\"noopener\">Red Hat\u5b9a\u65f6\u4efb\u52a1\u8bf4\u660e<\/a>\uff1b<a href=\"https:\/\/docs.redhat.com\/en\/documentation\/red_hat_enterprise_linux\/10\/html\/risk_reduction_and_recovery_operations\/troubleshooting-problems-by-using-log-files\" target=\"_blank\" rel=\"noopener\">Red Hat\u65e5\u5fd7\u6392\u67e5\u8bf4\u660e<\/a>\uff1b<a href=\"https:\/\/www.freedesktop.org\/software\/systemd\/man\/latest\/systemd.timer.html\" target=\"_blank\" rel=\"noopener\">systemd.timer\u5b98\u65b9\u624b\u518c<\/a>\u3002<\/p>\n<h2 style=\"font-size:21px;line-height:1.5;margin:32px 0 14px;font-weight:600\">\u7ee7\u7eed\u6392\u67e5<\/h2>\n<ul>\n<li><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.asaeo.com\/?p=1332\">Docker\u65e5\u5fd7\u4e0e\u78c1\u76d8\u5360\u7528<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u811a\u672c\u624b\u52a8\u80fd\u8dd1\uff0ccron\u91cc\u5374\u6ca1\u7ed3\u679c\uff0c\u5148\u5206\u6e05\u6ca1\u89e6\u53d1\u8fd8\u662f\u811a\u672c\u5931\u8d25\u3002\u6309\u8fd0\u884c\u7528\u6237\u3001\u4efb\u52a1\u683c\u5f0f\u3001\u65e5\u5fd7\u3001\u73af\u5883\u4e0e\u8865\u8dd1\u9700\u6c42\u9010\u9879\u5b9a\u4f4d\uff0c\u9644\u5b89\u5168\u7684\u8c03\u5ea6\u6d4b\u8bd5\u793a\u4f8b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[235],"tags":[239,242],"class_list":["post-1360","post","type-post","status-publish","format-standard","hentry","category-235","tag-linux","tag-242"],"_links":{"self":[{"href":"https:\/\/www.asaeo.com\/index.php?rest_route=\/wp\/v2\/posts\/1360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asaeo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asaeo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asaeo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asaeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1360"}],"version-history":[{"count":1,"href":"https:\/\/www.asaeo.com\/index.php?rest_route=\/wp\/v2\/posts\/1360\/revisions"}],"predecessor-version":[{"id":1361,"href":"https:\/\/www.asaeo.com\/index.php?rest_route=\/wp\/v2\/posts\/1360\/revisions\/1361"}],"wp:attachment":[{"href":"https:\/\/www.asaeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asaeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asaeo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}