{"id":165355,"date":"2019-12-18T12:44:13","date_gmt":"2019-12-18T04:44:13","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=165355"},"modified":"2019-11-27T09:45:10","modified_gmt":"2019-11-27T01:45:10","slug":"cron-linux-debian","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/cron-linux-debian.html","title":{"rendered":"\u6559\u4f60\u5982\u4f55\u4f7f\u7528 cron \u6765\u5b89\u6392\u4efb\u52a1"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u6709\u65f6\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u5b9a\u671f\u6216\u4ee5\u9884\u5b9a\u7684\u65f6\u95f4\u95f4\u9694\u6267\u884c\u4efb\u52a1\u3002\u8fd9\u4e9b\u4efb\u52a1\u5305\u62ec\u5907\u4efd\u6570\u636e\u5e93\u3001\u66f4\u65b0\u7cfb\u7edf\u3001\u6267\u884c\u5b9a\u671f\u91cd\u65b0\u5f15\u5bfc\u7b49\u3002\u8fd9\u4e9b\u4efb\u52a1\u79f0\u4e3a \u201ccron \u4efb\u52a1\u201d\u3002cron \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\u3002cron \u662f\u4e00\u4e2a\u5b88\u62a4\u8fdb\u7a0b\uff0c\u53ef\u8ba9\u4f60\u5b89\u6392\u8fd9\u4e9b\u4efb\u52a1\uff0c\u7136\u540e\u6309\u6307\u5b9a\u7684\u65f6\u95f4\u95f4\u9694\u6267\u884c\u8fd9\u4e9b\u4efb\u52a1\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u4f60\u5c06\u5b66\u4e60\u5982\u4f55\u4f7f\u7528 cron \u6765\u5b89\u6392\u4efb\u52a1\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
crontab \u6587\u4ef6<\/strong><\/div>\n

crontab \u5373 \u201ccron table\u201d\uff0c\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u672c\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u6307\u5b9a\u4efb\u52a1\u6267\u884c\u65f6\u95f4\u95f4\u9694\u7684\u89c4\u5219\u548c\u547d\u4ee4\u3002 crontab \u6587\u4ef6\u5206\u4e3a\u4e24\u7c7b\uff1a<\/p>\n

1\uff09\u7cfb\u7edf\u8303\u56f4\u7684 crontab \u6587\u4ef6<\/p>\n

\u8fd9\u4e9b\u901a\u5e38\u7531\u9700\u8981 root \u7279\u6743\u7684 Linux \u670d\u52a1\u53ca\u5173\u952e\u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528\u3002\u7cfb\u7edf crontab \u6587\u4ef6\u4f4d\u4e8e \/etc\/crontab \u4e2d\uff0c\u5e76\u4e14\u53ea\u80fd\u7531 root \u7528\u6237\u8bbf\u95ee\u548c\u7f16\u8f91\u3002\u901a\u5e38\u7528\u4e8e\u914d\u7f6e\u7cfb\u7edf\u8303\u56f4\u7684\u5b88\u62a4\u8fdb\u7a0b\u3002crontab \u6587\u4ef6\u7684\u770b\u8d77\u6765\u7c7b\u4f3c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

\"\"<\/p>\n

etc-crontab-linux\r\n\r\netc-crontab-linux<\/pre>\n

2\uff09\u7528\u6237\u521b\u5efa\u7684 crontab \u6587\u4ef6<\/p>\n

Linux \u7528\u6237\u8fd8\u53ef\u4ee5\u5728 crontab \u547d\u4ee4\u7684\u5e2e\u52a9\u4e0b\u521b\u5efa\u81ea\u5df1\u7684 cron \u4efb\u52a1\u3002\u521b\u5efa\u7684 cron \u4efb\u52a1\u5c06\u4ee5\u521b\u5efa\u5b83\u4eec\u7684\u7528\u6237\u8eab\u4efd\u8fd0\u884c\u3002<\/p>\n

\u6240\u6709 cron \u4efb\u52a1\u90fd\u5b58\u50a8\u5728 \/var\/spool\/cron\uff08\u5bf9\u4e8e RHEL \u548c CentOS \u53d1\u884c\u7248\uff09\u548c \/var\/spool\/cron\/crontabs\uff08\u5bf9\u4e8e Debian \u548c Ubuntu \u53d1\u884c\u7248\uff09\u4e2d\uff0ccron \u4efb\u52a1\u4f7f\u7528\u521b\u5efa\u8be5\u6587\u4ef6\u7684\u7528\u6237\u7684\u7528\u6237\u540d\u5217\u51fa\u3002<\/p>\n

cron \u5b88\u62a4\u8fdb\u7a0b\u5728\u540e\u53f0\u9759\u9ed8\u5730\u68c0\u67e5 \/etc\/crontab \u6587\u4ef6\u548c \/var\/spool\/cron \u53ca \/etc\/cron.d*\/ \u76ee\u5f55\u3002<\/p>\n

crontab \u547d\u4ee4\u7528\u4e8e\u7f16\u8f91 cron \u6587\u4ef6\u3002\u8ba9\u6211\u4eec\u770b\u4e00\u4e0b crontab \u6587\u4ef6\u7684\u7ed3\u6784\u3002<\/p>\n

crontab \u6587\u4ef6\u5256\u6790<\/strong><\/div>\n

\u5728\u7ee7\u7eed\u4e4b\u524d\uff0c\u6211\u4eec\u8981\u9996\u5148\u63a2\u7d22 crontab \u6587\u4ef6\u7684\u683c\u5f0f\u3002crontab \u6587\u4ef6\u7684\u57fa\u672c\u8bed\u6cd5\u5305\u62ec 5 \u5217\uff0c\u7531\u661f\u53f7\u8868\u793a\uff0c\u540e\u8ddf\u8981\u6267\u884c\u7684\u547d\u4ee4\u3002<\/p>\n

*    *    *    *    *    command<\/pre>\n

\u6b64\u683c\u5f0f\u4e5f\u53ef\u4ee5\u8868\u793a\u5982\u4e0b\uff1a<\/p>\n

m h d moy dow command<\/pre>\n

\u6216<\/p>\n

m h d moy dow \/path\/to\/script<\/pre>\n

\u8ba9\u6211\u4eec\u6765\u89e3\u91ca\u4e00\u4e0b\u6bcf\u4e2a\u6761\u76ee<\/p>\n

m\uff1a\u4ee3\u8868\u5206\u949f\u3002\u8303\u56f4\u662f 0 \u5230 59<\/p>\n

h\uff1a\u8868\u793a\u5c0f\u65f6\uff0c\u8303\u56f4\u662f 0 \u5230 23<\/p>\n

d\uff1a\u4ee3\u8868\u4e00\u4e2a\u6708\u4e2d\u7684\u67d0\u5929\uff0c\u8303\u56f4\u662f 1 \u5230 31<\/p>\n

moy\uff1a\u8fd9\u662f\u4e00\u5e74\u4e2d\u7684\u6708\u4efd\u3002\u8303\u56f4\u662f 1 \u5230 12<\/p>\n

dow\uff1a\u8fd9\u662f\u661f\u671f\u51e0\u3002\u8303\u56f4\u662f 0 \u5230 6\uff0c\u5176\u4e2d 0 \u4ee3\u8868\u661f\u671f\u65e5<\/p>\n

command\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

\u7ba1\u7406 cron \u4efb\u52a1<\/strong><\/div>\n

\u770b\u5b8c crontab \u6587\u4ef6\u7684\u7ed3\u6784\u4e4b\u540e\uff0c\u8ba9\u6211\u4eec\u770b\u770b\u5982\u4f55\u521b\u5efa\u3001\u7f16\u8f91\u548c\u5220\u9664 cron \u4efb\u52a1\u3002<\/p>\n

\u521b\u5efa cron \u4efb\u52a1<\/strong><\/span><\/div>\n

\u8981\u4ee5 root \u7528\u6237\u8eab\u4efd\u521b\u5efa\u6216\u7f16\u8f91 cron \u4efb\u52a1\uff0c\u8bf7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

# crontab -e<\/pre>\n

\u8981\u4e3a\u53e6\u4e00\u4e2a\u7528\u6237\u521b\u5efa\u6216\u5b89\u6392 cron \u4efb\u52a1\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u8bed\u6cd5\uff1a<\/p>\n

# crontab -u username -e<\/pre>\n

\u4f8b\u5982\uff0c\u8981\u4ee5 Pradeep \u7528\u6237\u8eab\u4efd\u8fd0\u884c cron \u4efb\u52a1\uff0c\u8bf7\u53d1\u51fa\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

# crontab -u Pradeep -e<\/pre>\n

\u5982\u679c\u8be5 crontab \u6587\u4ef6\u5c1a\u4e0d\u5b58\u5728\uff0c\u90a3\u4e48\u4f60\u5c06\u6253\u5f00\u4e00\u4e2a\u7a7a\u767d\u6587\u672c\u6587\u4ef6\u3002\u5982\u679c\u8be5 crontab \u6587\u4ef6\u5df2\u7ecf\u5b58\u5728\uff0c\u5219 -e \u9009\u9879\u4f1a\u8ba9\u4f60\u7f16\u8f91\u8be5\u6587\u4ef6\uff0c<\/p>\n

\u5217\u51fa crontab \u6587\u4ef6<\/strong><\/span><\/div>\n

\u8981\u67e5\u770b\u5df2\u521b\u5efa\u7684 cron \u4efb\u52a1\uff0c\u53ea\u9700\u4f20\u9012 -l \u9009\u9879\uff1a<\/p>\n

# crontab -l<\/pre>\n
\u5220\u9664 crontab \u6587\u4ef6<\/strong><\/span><\/div>\n

\u8981\u5220\u9664 cron \u4efb\u52a1\uff0c\u53ea\u9700\u8fd0\u884c crontab -e \u5e76\u5220\u9664\u6240\u9700\u7684 cron \u4efb\u52a1\u884c\uff0c\u7136\u540e\u4fdd\u5b58\u8be5\u6587\u4ef6\u3002<\/p>\n

\u8981\u5220\u9664\u6240\u6709\u7684 cron \u4efb\u52a1\uff0c\u8bf7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

# crontab -r<\/pre>\n

\u7136\u540e\uff0c\u8ba9\u6211\u4eec\u770b\u4e00\u4e0b\u5b89\u6392\u4efb\u52a1\u7684\u4e0d\u540c\u65b9\u5f0f\u3002<\/p>\n

\u4f7f\u7528 crontab \u5b89\u6392\u4efb\u52a1\u793a\u4f8b<\/strong><\/div>\n

\u5982\u56fe\u6240\u793a\uff0c\u6240\u6709 cron \u4efb\u52a1\u6587\u4ef6\u90fd\u5e26\u6709\u91ca\u4f34shebang\u6807\u5934\u3002<\/p>\n

#!\/bin\/bash<\/pre>\n

\u8fd9\u8868\u793a\u4f60\u6b63\u5728\u4f7f\u7528\u7684 shell\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5373 bash shell\u3002<\/p>\n

\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528\u6211\u4eec\u4e4b\u524d\u6307\u5b9a\u7684 cron \u4efb\u52a1\u6761\u76ee\u6307\u5b9a\u8981\u5b89\u6392\u4efb\u52a1\u7684\u65f6\u95f4\u95f4\u9694\u3002<\/p>\n

\u8981\u6bcf\u5929\u4e0b\u5348 12:30 \u91cd\u542f\u7cfb\u7edf\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u8bed\u6cd5\uff1a<\/p>\n

30  12 *  *  * \/sbin\/reboot<\/pre>\n

\u8981\u5b89\u6392\u5728\u51cc\u6668 4:00 \u91cd\u542f\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u8bed\u6cd5\uff1a<\/p>\n

0  4  *  *  *  \/sbin\/reboot<\/pre>\n

\u6ce8\uff1a\u661f\u53f7 * \u7528\u4e8e\u5339\u914d\u6240\u6709\u8bb0\u5f55\u3002<\/p>\n

\u8981\u6bcf\u5929\u4e24\u6b21\u8fd0\u884c\u811a\u672c\uff08\u4f8b\u5982\uff0c\u51cc\u6668 4:00 \u548c\u4e0b\u5348 4:00\uff09\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u8bed\u6cd5\uff1a<\/p>\n

0  4,16  *  *  *  \/path\/to\/script<\/pre>\n

\u8981\u5b89\u6392 cron \u4efb\u52a1\u5728\u6bcf\u4e2a\u661f\u671f\u4e94\u4e0b\u5348 5:00 \u8fd0\u884c\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u8bed\u6cd5\uff1a<\/p>\n

0  17  *  *  Fri  \/path\/to\/script<\/pre>\n

\u6216<\/p>\n

0 17  *  *  *  5  \/path\/to\/script<\/pre>\n

\u5982\u679c\u4f60\u5e0c\u671b\u6bcf 30 \u5206\u949f\u8fd0\u884c\u4e00\u6b21 cron \u4efb\u52a1\uff0c\u8bf7\u4f7f\u7528\uff1a<\/p>\n

*\/30  *  *  *  * \/path\/to\/script<\/pre>\n

\u8981\u5b89\u6392 cron \u4efb\u52a1\u6bcf 5 \u5c0f\u65f6\u8fd0\u884c\u4e00\u6b21\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

*  *\/5  *  *  *  \/path\/to\/script<\/pre>\n

\u8981\u5728\u9009\u5b9a\u7684\u65e5\u671f\uff08\u4f8b\u5982\uff0c\u661f\u671f\u4e09\u548c\u661f\u671f\u4e94\u7684\u4e0b\u5348 6:00\uff09\u8fd0\u884c\u811a\u672c\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n

0  18  *  *  wed,fri  \/path\/to\/script<\/pre>\n

\u8981\u4f7f\u7528\u5355\u4e2a cron \u4efb\u52a1\u8fd0\u884c\u591a\u4e2a\u547d\u4ee4\uff0c\u8bf7\u4f7f\u7528\u5206\u53f7\u5206\u9694\u4efb\u52a1\uff0c\u4f8b\u5982\uff1a<\/p>\n

*  *  *  *  *  \/path\/to\/script1 ; \/path\/to\/script2<\/pre>\n

\u4f7f\u7528\u7279\u6b8a\u5b57\u7b26\u4e32\u8282\u7701\u7f16\u5199 cron \u4efb\u52a1\u7684\u65f6\u95f4
\n\u67d0\u4e9b cron \u4efb\u52a1\u53ef\u4ee5\u4f7f\u7528\u5bf9\u5e94\u4e8e\u7279\u5b9a\u65f6\u95f4\u95f4\u9694\u7684\u7279\u6b8a\u5b57\u7b26\u4e32\u8f7b\u677e\u914d\u7f6e\u3002\u4f8b\u5982\uff0c<\/p>\n

1\uff09@hourly \u65f6\u95f4\u6233\u7b49\u6548\u4e8e 0 * * * *<\/p>\n

\u5b83\u5c06\u5728\u6bcf\u5c0f\u65f6\u7684\u7b2c\u4e00\u5206\u949f\u6267\u884c\u4e00\u6b21\u4efb\u52a1\u3002<\/p>\n

@hourly \/path\/to\/script<\/pre>\n

2\uff09@daily \u65f6\u95f4\u6233\u7b49\u6548\u4e8e 0 0 * * *<\/p>\n

\u5b83\u5728\u6bcf\u5929\u7684\u7b2c\u4e00\u5206\u949f\uff08\u5348\u591c\uff09\u6267\u884c\u4efb\u52a1\u3002\u5b83\u53ef\u4ee5\u5728\u6267\u884c\u65e5\u5e38\u5de5\u4f5c\u65f6\u6d3e\u4e0a\u7528\u573a\u3002<\/p>\n

@daily \/path\/to\/script<\/pre>\n

3\uff09@weekly \u65f6\u95f4\u6233\u7b49\u6548\u4e8e 0 0 * * 0<\/p>\n

\u5b83\u5728\u6bcf\u5468\u7684\u7b2c\u4e00\u5206\u949f\u6267\u884c cron \u4efb\u52a1\uff0c\u4e00\u5468\u7b2c\u4e00\u5929\u662f\u4ece\u661f\u671f\u65e5\u5f00\u59cb\u7684\u3002<\/p>\n

@weekly \/path\/to\/script<\/pre>\n

3\uff09@monthly \u65f6\u95f4\u6233\u7b49\u6548\u4e8e 0 0 1 * *<\/p>\n

\u5b83\u5728\u6bcf\u6708\u7b2c\u4e00\u5929\u7684\u7b2c\u4e00\u5206\u949f\u6267\u884c\u4efb\u52a1\u3002<\/p>\n

@monthly \/path\/to\/script<\/pre>\n

4\uff09@yearly \u65f6\u95f4\u6233\u7b49\u6548\u4e8e 0 0 1 1 *<\/p>\n

\u5b83\u5728\u6bcf\u5e74\u7684\u7b2c\u4e00\u5206\u949f\u6267\u884c\u4efb\u52a1\uff0c\u53ef\u4ee5\u7528\u4e8e\u53d1\u9001\u65b0\u5e74\u95ee\u5019\u3002<\/p>\n

@yearly \/path\/to\/script<\/pre>\n
\u9650\u5236 crontab<\/strong><\/div>\n

\u4f5c\u4e3a Linux \u7528\u6237\uff0c\u4f60\u53ef\u4ee5\u63a7\u5236\u8c01\u6709\u6743\u4f7f\u7528 crontab \u547d\u4ee4\u3002\u53ef\u4ee5\u4f7f\u7528 \/etc\/cron.deny \u548c \/etc\/cron.allow \u6587\u4ef6\u6765\u63a7\u5236\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u53ea\u6709\u4e00\u4e2a \/etc\/cron.deny \u6587\u4ef6\uff0c\u5e76\u4e14\u4e0d\u5305\u542b\u4efb\u4f55\u6761\u76ee\u3002\u8981\u9650\u5236\u7528\u6237\u4f7f\u7528 crontab \u5b9e\u7528\u7a0b\u5e8f\uff0c\u53ea\u9700\u5c06\u7528\u6237\u7684\u7528\u6237\u540d\u6dfb\u52a0\u5230\u8be5\u6587\u4ef6\u4e2d\u5373\u53ef\u3002\u5f53\u7528\u6237\u6dfb\u52a0\u5230\u8be5\u6587\u4ef6\u4e2d\uff0c\u5e76\u4e14\u8be5\u7528\u6237\u5c1d\u8bd5\u8fd0\u884c crontab \u547d\u4ee4\u65f6\uff0c\u4ed6\/\u5979\u5c06\u9047\u5230\u4ee5\u4e0b\u9519\u8bef\u3002<\/p>\n

restricted-cron-user\r\n\r\nrestricted-cron-user<\/pre>\n

\u8981\u5141\u8bb8\u7528\u6237\u7ee7\u7eed\u4f7f\u7528 crontab \u5b9e\u7528\u7a0b\u5e8f\uff0c\u53ea\u9700\u4ece \/etc\/cron.deny \u6587\u4ef6\u4e2d\u5220\u9664\u7528\u6237\u540d\u5373\u53ef\u3002<\/p>\n

\u5982\u679c\u5b58\u5728 \/etc\/cron.allow \u6587\u4ef6\uff0c\u5219\u4ec5\u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u7528\u6237\u53ef\u4ee5\u8bbf\u95ee\u548c\u4f7f\u7528 crontab \u5b9e\u7528\u7a0b\u5e8f\u3002<\/p>\n

\u5982\u679c\u4e24\u4e2a\u6587\u4ef6\u90fd\u4e0d\u5b58\u5728\uff0c\u5219\u53ea\u6709 root \u7528\u6237\u5177\u6709\u4f7f\u7528 crontab \u547d\u4ee4\u7684\u7279\u6743\u3002<\/p>\n

\u5907\u4efd crontab \u6761\u76ee<\/strong><\/div>\n

\u59cb\u7ec8\u5efa\u8bae\u4f60\u5907\u4efd crontab \u6761\u76ee\u3002\u4e3a\u6b64\uff0c\u8bf7\u4f7f\u7528\u8bed\u6cd5\uff1a<\/p>\n

# crontab -l > \/path\/to\/file.txt<\/pre>\n

\u4f8b\u5982\uff1a<\/p>\n

# crontab -l > \/home\/james\/backup.txt<\/pre>\n
\u68c0\u67e5 cron \u65e5\u5fd7<\/strong><\/div>\n

cron \u65e5\u5fd7\u5b58\u50a8\u5728 \/var\/log\/cron \u6587\u4ef6\u4e2d\u3002\u8981\u67e5\u770b cron \u65e5\u5fd7\uff0c\u8bf7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

# cat \/var\/log\/cron\r\nview-cron-log-files-linux\r\n\r\nview-cron-log-files-linux<\/pre>\n

\u8981\u5b9e\u65f6\u67e5\u770b\u65e5\u5fd7\uff0c\u8bf7\u4f7f\u7528 tail \u547d\u4ee4\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

# tail -f \/var\/log\/cron\r\nview-live-cron-logs\r\n\r\nview-live-cron-logs<\/pre>\n
\u603b\u7ed3<\/strong><\/div>\n

\u5728\u672c\u6307\u5357\u4e2d\uff0c\u4f60\u5b66\u4e60\u4e86\u5982\u4f55\u521b\u5efa cron \u4efb\u52a1\u4ee5\u81ea\u52a8\u6267\u884c\u91cd\u590d\u6027\u4efb\u52a1\uff0c\u5982\u4f55\u5907\u4efd\u548c\u67e5\u770b cron \u65e5\u5fd7\u3002\u6211\u4eec\u5e0c\u671b\u672c\u6587\u63d0\u4f9b\u6709\u5173 cron \u4f5c\u4e1a\u7684\u6709\u7528\u89c1\u89e3\u3002\u8bf7\u968f\u65f6\u5206\u4eab\u4f60\u7684\u53cd\u9988\u548c\u610f\u89c1\u3002<\/p>\n

via: https:\/\/www.linuxtechi.com\/schedule-automate-tasks-linux-cron-jobs\/<\/p>\n

\u4f5c\u8005\uff1aPradeep Kumar \u9009\u9898\uff1alujun9972 \u8bd1\u8005\uff1awxy \u6821\u5bf9\uff1awxy<\/p>\n

\u672c\u6587\u7531 LCTT \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd \u8363\u8a89\u63a8\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":"

crontab \u5373 \u201ccron table\u201d\uff0c\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u672c\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u6307\u5b9a\u4efb\u52a1\u6267\u884c\u65f6\u95f4\u95f4\u9694\u7684\u89c4\u5219\u548c\u547d\u4ee4\u3002 […]<\/p>\n","protected":false},"author":1482,"featured_media":33406,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-165355","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/165355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1482"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=165355"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/165355\/revisions"}],"predecessor-version":[{"id":165373,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/165355\/revisions\/165373"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/33406"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=165355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=165355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=165355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}