{"id":292986,"date":"2024-09-15T12:06:11","date_gmt":"2024-09-15T04:06:11","guid":{"rendered":"https:\/\/lrxjmw.cn\/tsldsjbzdhkj.html"},"modified":"2024-09-15T12:06:11","modified_gmt":"2024-09-15T04:06:11","slug":"tsldsjbzdhkj","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/tsldsjbzdhkj.html","title":{"rendered":"\u63a2\u7d22 Linux \u5b9a\u65f6\u811a\u672c\uff1a\u81ea\u52a8\u5316\u79d1\u6280\u751f\u6d3b\u4e2d\u7684\u795e\u79d8\u9b45\u529b\u4e0e\u6311\u6218"},"content":{"rendered":"
\u81ea\u52a8\u5316\u5728\u79d1\u6280\u751f\u6d3b\u4e2d\u7684\u5730\u4f4d\u65e5\u76ca\u663e\u8457\uff0c\u5bf9\u4e8e\u50cf\u6211\u8fd9\u822c\u7684Linux<\/a>\u7cfb\u7edf\u7231\u597d\u8005\u6765\u8bf4\uff0c\u5b9a\u65f6\u811a\u672c\u7684\u4f7f\u7528\u66f4\u663e\u5176\u4fbf\u5229\u548c\u6548\u7387\u4e4b\u9ad8\u3002\u591c\u91cc\u72ec\u81ea\u4e00\u4eba\uff0c\u886c\u6258\u51fa\u8367\u5e55\u4e0a\u95ea\u70c1\u7684\u5149\u6807\u4e0blinux \u5b9a\u65f6\u6267\u884c\u811a\u672c<\/strong>\uff0c\u52e4\u52b3\u7684\u64cd\u4f5c\u5728\u9759\u9759\u5730\u8fdb\u884c\uff1a\u8fd9\u4fbf\u662fLinux<\/a>\u5b9a\u65f6\u811a\u672c\u6240\u6563\u53d1\u51fa\u7684\u72ec\u7279\u9b45\u529b\u3002\u7136\u800c\uff0c\u5b83\u540c\u6837\u4f34\u968f\u7740\u4e00\u4e9b\u6311\u6218\u548c\u559c\u4e50\u3002\u5728\u6b64\uff0c\u6211\u5c06\u5f15\u9886\u60a8\u6df1\u5165\u63a2\u7a76\u8fd9\u7247\u5145\u6ee1\u795e\u79d8\u8272\u5f69\u7684\u5929\u5730\u3002<\/p>\n \u5b9a\u65f6\u4efb\u52a1\u7684\u57fa\u672c\u6982\u5ff5<\/b><\/p>\n \u5b9a\u65f6\u4efb\u52a1\uff0c\u5373\u662f\u6307\u5728\u8bbe\u5b9a\u7684\u65f6\u523b\u6216\u5468\u671f\u5185\u6267\u884c\u6240\u9700\u52a8\u4f5c\uff0c\u5728Linux\u64cd\u4f5c\u7cfb\u7edf\u73af\u5883\u4e0b\uff0c\u6211\u4eec\u901a\u5e38\u4f9d\u8d56\u4e8e`cron`\u8fd9\u6b3e\u5b9e\u7528\u5de5\u5177\u3002\u8bd5\u60f3\u6e05\u6668\u9192\u6765\uff0c\u53d1\u73b0\u6570\u636e\u5907\u4efd\u65e9\u5df2\u6084\u7136\u5b8c\u6210\uff0c\u90a3\u79cd\u653e\u5fc3\u6ee1\u6ee1\u7684\u611f\u89c9\u5b9e\u5728\u662f\u7f8e\u5999\u65e0\u6bd4\uff01\u4e0d\u8bba\u662f\u5b9a\u65f6\u5907\u4efd\u6570\u636e\u3001\u6e05\u7406\u78c1\u76d8\u65e5\u5fd7\uff0c\u6291\u6216\u662f\u6309\u65f6\u53d1\u51fa\u7535\u5b50\u90ae\u4ef6\uff0c`cron`\u7686\u53ef\u52a9\u60a8\u8f7b\u677e\u5904\u7406\u5404\u9879\u4e8b\u52a1\u3002<\/p>\n \u7136\u800c\uff0c\u8fd0\u7528CRON\u5e76\u975e\u6613\u4e8b\u3002\u719f\u7ec3\u638c\u63e1\u5176\u65f6\u95f4\u8868\u8fbe\u5f0f\u7684\u683c\u5f0f\u5982\u5206\u3001\u65f6\u3001\u65e5\u7b49\u81f3\u5173\u91cd\u8981\uff0c\u8fd9\u9700\u6211\u4eec\u6295\u5165\u8db3\u591f\u7684\u8010\u5fc3\u548c\u7cbe\u529b\u3002\u521d\u5b66\u8005\u5e38\u56e0\u5fae\u5c0f\u5931\u8bef\u6298\u621f\u6c89\u6c99\uff0c\u5185\u5fc3\u7684\u632b\u8d25\u611f\u4e0d\u8a00\u800c\u55bb\u3002\u7136\u800c\u6df1\u5ea6linux\u7cfb\u7edf\uff0c\u6b63\u662f\u8fd9\u4e9b\u6311\u6218\u4f7f\u6211\u4eec\u5728\u5b9e\u8df5\u4e2d\u9010\u6b65\u63d0\u5347\uff0c\u6700\u7ec8\u638c\u63e1\u4e86\u8fd9\u4e00\u5f3a\u5927\u5de5\u5177\u3002<\/p>\n <\/p>\n \u5982\u4f55\u8bbe\u7f6e\u5b9a\u65f6\u4efb\u52a1<\/b><\/p>\n \u9996\u5148\uff0c\u8bf7\u5f00\u542f\u7ec8\u7aef\u5e76\u8f93\u5165\u6307\u4ee4`crontab-e`\u4ee5\u542f\u52a8\u7f16\u8f91\u6a21\u5f0f\u3002\u5728\u8fd9\u4e2a\u7b80\u6d01\u660e\u4e86\u7684\u754c\u9762\u4e2d\uff0c\u60a8\u5c06\u80fd\u591f\u6839\u636e\u7279\u5b9a\u683c\u5f0f\u6dfb\u52a0\u6240\u9700\u7684\u5b9a\u65f6\u4efb\u52a1\uff0c\u4f8b\u5982\"02***\/path\/to\/script.sh\"\uff0c\u8868\u793a\u6bcf\u665a\u51cc\u66682\u70b9\u8fd0\u884c\u6307\u5b9a\u811a\u672c\u3002\u6bcf\u6b21\u770b\u5230\u8fd9\u6837\u7684\u683c\u5f0f\uff0c\u90fd\u8ba9\u4eba\u611f\u5230\u5174\u594b\uff0c\u4eff\u4f5b\u5728\u7b56\u5212\u4e00\u573a\u672a\u77e5\u7684\u63a2\u9669\u4e4b\u65c5\u3002<\/p>\n \u5728\u8bbe\u5b9a\u5b9a\u65f6\u4efb\u52a1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u65e0\u7591\u4f1a\u51fa\u73b0\u8bf8\u591a\u6311\u6218\uff0c\u4f8b\u5982\u8def\u5f84\u9519\u8bef\u6216\u6743\u9650\u9650\u5236\u7b49\u56f0\u5883\u3002\u6b64\u65f6\uff0c\u6211\u4f1a\u611f\u53d7\u5230\u4e00\u5b9a\u7684\u65e0\u52a9\uff0c\u4f46\u53e6\u4e00\u65b9\u9762\uff0c\u8fd9\u4e9b\u56f0\u96be\u4e5f\u662f\u8d85\u8d8a\u81ea\u6211\u7684\u673a\u4f1a\u3002\u7ecf\u8fc7\u9605\u8bfb\u76f8\u5173\u6750\u6599\u548c\u8bf7\u6559\u4e13\u5bb6\uff0c\u6211\u9010\u6b65\u638c\u63e1\u4e86\u5982\u4f55\u8bbe\u5b9a\u6b63\u786e\u7684\u73af\u5883\u53d8\u91cf\u4ee5\u53ca\u66f4\u6539\u6587\u4ef6\u6743\u9650\u4ee5\u589e\u5f3a\u5de5\u4f5c\u6548\u7387\u3002\u6bcf\u6b21\u6309\u9884\u671f\u5b8c\u6210\u5b9a\u65f6\u4efb\u52a1\uff0c\u5fc3\u91cc\u90fd\u4f1a\u6d8c\u73b0\u6ee1\u6ee1\u7684\u6210\u5c31\u611f\uff0c\u4eff\u4f5b\u6218\u80dc\u4e86\u65f6\u95f4\u7684\u675f\u7f1a\uff0c\u5b9e\u73b0\u4e86\u81ea\u6211\u63d0\u5347\u3002<\/p>\n <\/p>\n \u5b9a\u65f6\u4efb\u52a1\u7684\u5b9e\u7528\u573a\u666f<\/b><\/p>\n \u5b9a\u65f6\u4efb\u52a1\u5728\u8bf8\u591a\u9886\u57df\u90fd\u6709\u663e\u8457\u7684\u7528\u9014\uff0c\u5176\u9ad8\u5ea6\u7075\u6d3b\u6027\u4f7f\u6211\u4eec\u80fd\u591f\u7b80\u5316\u7e41\u6742\u7684\u65e5\u5e38\u4f5c\u4e1a\u3002\u4f8b\u5982\uff0c\u6211\u66fe\u501f\u52a9\u5b9a\u65f6\u4efb\u52a1\u4e3a\u6211\u7ba1\u7406\u7684\u535a\u5ba2\u5b9a\u671f\u5907\u4efd\u6570\u636e\u5e93\u548c\u6587\u4ef6\uff0c\u786e\u4fdd\u5728\u4efb\u4f55\u7d27\u6025\u60c5\u51b5\u4e0b\u90fd\u80fd\u8fc5\u901f\u6062\u590d\u6570\u636e\u3002\u6b64\u5916\uff0c\u6211\u8fd8\u4f1a\u5b9a\u671f\u6e05\u9664\u8fc7\u671f\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u4ee5\u7ef4\u62a4\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u6548\u7387\u3002<\/p>\n \u6b64\u5916\uff0c\u5b9a\u671f\u53d1\u9001\u90ae\u4ef6\u662f\u672c\u4eba\u5de5\u4f5c\u4e2d\u5e38\u91c7\u7528\u7684\u624b\u6bb5\u4e4b\u4e00\u3002\u4f8b\u5982\uff0c\u6bcf\u65e5\u65e9\u6668\u4e5d\u65f6\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5411\u6211\u53d1\u9001\u4e00\u4efd\u6628\u65e5\u5de5\u4f5c\u603b\u7ed3\u7684\u90ae\u4ef6\uff0c\u8fd9\u6709\u52a9\u4e8e\u6211\u5bf9\u5de5\u4f5c\u8fdb\u884c\u56de\u987e\u548c\u53cd\u601d\uff0c\u540c\u65f6\u4e5f\u6fc0\u53d1\u4e86\u6211\u65b0\u4e00\u65e5\u7684\u5de5\u4f5c\u70ed\u60c5\u3002\u6bcf\u6b21\u67e5\u9605\u90ae\u7bb1\u65f6\uff0c\u90a3\u4efd\u6765\u81ea\u7cfb\u7edf\u7684\u90ae\u4ef6\u603b\u80fd\u5e26\u7ed9\u6211\u4e00\u79cd\u6e29\u99a8\u7684\u4eea\u5f0f\u611f\uff0c\u8ba9\u6211\u5fc3\u751f\u6ee1\u8db3\u4e0e\u6109\u60a6\u3002<\/p>\n <\/p>\n \u8c03\u8bd5\u4e0e\u76d1\u63a7<\/b><\/p>\n \u5c3d\u7ba1\u5b9a\u65f6\u4efb\u52a1\u53ef\u81ea\u52a8\u6267\u884c\uff0c\u4f46\u662f\u4ecd\u9700\u5bf9\u5176\u8fdb\u884c\u5fc5\u8981\u7684\u76d1\u63a7\u4e0e\u8c03\u8bd5\u4ee5\u786e\u4fdd\u987a\u5229\u8fd0\u884c\u3002\u67e5\u9605`\/var\/log\/cron`\u65e5\u5fd7\u6587\u4ef6\uff0c\u4fbf\u53ef\u6d1e\u6089\u6bcf\u9879\u4efb\u52a1\u7684\u6267\u884c\u72b6\u51b5linux apache \u865a\u62df\u4e3b\u673a\uff0c\u5373\u4f7f\u5fae\u5c0f\u7684\u9519\u8bef\u63d0\u793a\u4e5f\u8db3\u4ee5\u5f15\u8d77\u8b66\u89c9\u3002\u82e5\u4efb\u52a1\u672a\u6309\u9884\u671f\u6267\u884c\uff0c\u5185\u5fc3\u7684\u7126\u8651\u4e0e\u4e0d\u5b89\u4fbf\u4f1a\u6cb9\u7136\u800c\u751f\u3002<\/p>\n \u4e3a\u4fbf\u4e8e\u76d1\u6d4b\u4efb\u52a1\uff0c\u811a\u672c\u589e\u8bbe\u4e86\u8be6\u5b9e\u7684\u65e5\u5fd7\u8bb0\u5f55\u673a\u5236\uff0c\u5c06\u6267\u884c\u7ed3\u679c\u53ca\u9519\u8bef\u8baf\u606f\u51c6\u786e\u65e0\u8bef\u5730\u8f7d\u5165\u6307\u5b9a\u65e5\u5fd7\u6587\u4ef6\u3002\u5982\u6b64\u4e00\u6765\uff0c\u5373\u4fbf\u4efb\u52a1\u5931\u5229\uff0c\u4ecd\u65e7\u53ef\u5373\u65f6\u5bdf\u89c9\u5e76\u4fee\u590d\u6f0f\u6d1e\u3002\u6bcf\u6b21\u77a5\u89c1\u65e5\u5fd7\u4e2d\u63ed\u793a\u7684\u80dc\u5229\u8ff9\u8c61\u65f6\uff0c\u90a3\u4efd\u7531\u8877\u7684\u559c\u60a6\u4e0e\u6210\u5c31\u611f\uff0c\u8db3\u4ee5\u8ba9\u4eba\u4e3a\u4e4b\u81ea\u8c6a\u3002<\/p>\n <\/p>\n \u5b89\u5168\u6027\u4e0e\u6743\u9650\u7ba1\u7406<\/b><\/p>\n \u5728\u5b9e\u65bd\u5b9a\u65f6\u4efb\u52a1\u8fc7\u7a0b\u4e2d\uff0c\u5b89\u5168\u548c\u6743\u9650\u7ba1\u7406\u81f3\u5173\u91cd\u8981\u3002\u9274\u4e8e\u5b9a\u65f6\u4efb\u52a1\u5e38\u4ee5\u7279\u5b9a\u7528\u6237\u8eab\u4efd\u6267\u884c\uff0c\u6545\u9700\u786e\u4fdd\u811a\u672c\u5b89\u5168\u6027\uff0c\u9632\u8303\u6f5c\u5728\u5b89\u5168\u5a01\u80c1\u3002\u66fe\u56e0\u811a\u672c\u6743\u9650\u914d\u7f6e\u5931\u8bef\uff0c\u81f4\u4f7f\u7cfb\u7edf\u906d\u53d7\u653b\u51fb\uff0c\u6b64\u6559\u8bad\u4f7f\u6211\u6df1\u611f\u5b89\u5168\u4e4b\u91cd\u3002<\/p>\n \u4e3a\u4e86\u4fdd\u969c\u5b89\u5168\u6027\uff0c\u6211\u5c06\u5b9a\u671f\u68c0\u67e5\u548c\u8c03\u6574\u5b9a\u65f6\u4efb\u52a1\u7684\u8bbe\u5b9alinux \u5b9a\u65f6\u6267\u884c\u811a\u672c<\/strong>\uff0c\u786e\u4fdd\u4ec5\u6709\u5fc5\u9700\u7684\u7a0b\u5e8f\u88ab\u542f\u52a8\uff1b\u540c\u65f6\uff0c\u6211\u4e5f\u4f1a\u5b9a\u671f\u5347\u7ea7\u548c\u7ef4\u62a4\u811a\u672c\uff0c\u4ee5\u4fee\u8865\u6f5c\u5728\u7684\u5b89\u5168\u9690\u60a3\u3002\u5f53\u7cfb\u7edf\u6301\u7eed\u7a33\u5b9a\u8fd0\u884c\u65f6\uff0c\u6211\u6df1\u611f\u6ee1\u8db3\u4e0e\u81ea\u8c6a\uff0c\u4eff\u4f5b\u662f\u5728\u4e3a\u81ea\u5df1\u7b51\u8d77\u7684\u5b89\u5168\u5c4f\u969c\u800c\u9a84\u50b2\u3002<\/p>\n <\/p>\n \u5b9a\u65f6\u4efb\u52a1\u7684\u672a\u6765\u5c55\u671b<\/b><\/p>\n \u4f34\u968f\u7740\u79d1\u6280\u8fdb\u6b65\u7684\u6b65\u4f10\uff0c\u5b9a\u65f6\u4efb\u52a1\u529f\u80fd\u65e5\u76ca\u591a\u5143\u4e14\u5f3a\u5927\u3002\u76ee\u524d\uff0c\u4f17\u591a\u9ad8\u6548\u5b9e\u7528\u7684\u5de5\u5177\u53ca\u5176\u6846\u67b6\u7eb7\u7eb7\u6d8c\u73b0\uff0c\u4f7f\u5b9a\u65f6\u4efb\u52a1\u7684\u7ba1\u7406\u65e5\u76ca\u7075\u6d3b\u6709\u6548\u3002\u4f8b\u5982\uff0c\u5229\u7528`systemd`\u8fdb\u884c\u8ba1\u65f6\u670d\u52a1\u6216\u91c7\u7528\u5bb9\u5668\u5316\u6280\u672f\u7ba1\u7406\u5b9a\u65f6\u4efb\u52a1\u7b49\u521b\u65b0\u624b\u6bb5\uff0c\u65e0\u7591\u4f7f\u6211\u4eec\u5bf9\u672a\u6765\u7684\u524d\u666f\u6ee1\u6000\u61a7\u61ac\u4e0e\u671f\u5f85\u3002<\/p>\n \u5c55\u671b\u672a\u6765\uff0c\u5b9a\u65f6\u4efb\u52a1\u5fc5\u5c06\u4e0d\u518d\u6b62\u6b65\u4e8e\u5355\u4e00\u667a\u80fd\u5316\u811a\u672c\u6267\u884c\uff0c\u800c\u5c06\u8fdb\u4e00\u6b65\u878d\u5165\u66f4\u591a\u590d\u6742\u7684\u81ea\u52a8\u5316\u6d41\u7a0b\u4e2d\u3002\u6bcf\u6bcf\u601d\u53ca\u6b64\uff0c\u5fc3\u4e2d\u4fbf\u5145\u6ee1\u5e0c\u5180\uff0c\u4eff\u4f5b\u5df2\u7aa5\u89c1\u4e00\u5e45\u58ee\u4e3d\u7684\u672a\u6765\u56fe\u666f\u3002<\/p>\n \u6982\u62ec\u6765\u8bf4\uff0cLinux\u5b9a\u65f6\u8fd0\u884c\u811a\u672c\u662f\u4e2a\u5bcc\u6709\u6311\u6218\u6027\uff0c\u4e14\u4ee4\u4eba\u6109\u60a6\u7684\u9886\u57df\u3002\u5b83\u4e0d\u4ec5\u63d0\u9ad8\u4e86\u6211\u4eec\u7684\u751f\u6d3b\u8d28\u91cf\uff0c\u540c\u65f6\u4e5f\u6fc0\u52b1\u6211\u4eec\u5728\u9010\u5c42\u6df1\u5165\u63a2\u7a76\u8fc7\u7a0b\u4e2d\u4e0d\u65ad\u63d0\u5347\u81ea\u8eab\u7d20\u8d28\u3002\u8bf7\u95ee\u60a8\u6709\u6ca1\u6709\u4f53\u9a8c\u8fc7\u5b9a\u65f6\u4efb\u52a1\u7ed9\u60a8\u5e26\u6765\u7684\u4fbf\u6377\u5462\uff1f\u671f\u5f85\u5728\u8bc4\u8bba\u533a\u503e\u542c\u60a8\u7684\u6545\u4e8b\uff0c\u522b\u5fd8\u8bb0\u4e3a\u6211\u4eec\u70b9\u8d5e\u5e76\u5206\u4eab\u54e6\uff01<\/p>\n","protected":false},"excerpt":{"rendered":" \u5728\u8bbe\u5b9a\u5b9a\u65f6\u4efb\u52a1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u65e0\u7591\u4f1a\u51fa\u73b0\u8bf8\u591a\u6311\u6218\uff0c\u4f8b\u5982\u8def\u5f84\u9519\u8bef\u6216\u6743\u9650\u9650\u5236\u7b49\u56f0\u5883\u3002\u4f34\u968f\u7740\u79d1\u6280\u8fdb\u6b65\u7684\u6b65\u4f10\uff0c\u5b9a\u65f6\u4efb\u52a1\u529f\u80fd\u65e5\u76ca\u591a\u5143\u4e14\u5f3a\u5927\u3002\u5c55\u671b\u672a\u6765\uff0c\u5b9a\u65f6\u4efb\u52a1\u5fc5\u5c06\u4e0d\u518d\u6b62\u6b65\u4e8e\u5355\u4e00\u667a\u80fd\u5316\u811a\u672c\u6267\u884c\uff0c\u800c\u5c06\u8fdb\u4e00\u6b65\u878d\u5165\u66f4\u591a\u590d\u6742\u7684\u81ea\u52a8\u5316\u6d41\u7a0b\u4e2d\u3002\u6982\u62ec\u6765\u8bf4\uff0cLinux\u5b9a\u65f6\u8fd0\u884c\u811a\u672c\u662f\u4e2a\u5bcc\u6709\u6311\u6218\u6027\uff0c\u4e14\u4ee4\u4eba\u6109\u60a6\u7684\u9886\u57df\u3002<\/p>\n","protected":false},"author":1,"featured_media":292987,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[1466,109,3008,2769,3007],"class_list":["post-292986","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-c-10","tag-linux","tag-dsjb","tag-tz","tag-zdh"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/292986","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=292986"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/292986\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/292987"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=292986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=292986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=292986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}