{"id":293807,"date":"2024-10-23T04:02:36","date_gmt":"2024-10-22T20:02:36","guid":{"rendered":"https:\/\/lrxjmw.cn\/zwljbzxfftsg.html"},"modified":"2024-10-23T04:02:36","modified_gmt":"2024-10-22T20:02:36","slug":"zwljbzxfftsg","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/zwljbzxfftsg.html","title":{"rendered":"\u638c\u63e1 Linux \u811a\u672c\u6267\u884c\u65b9\u6cd5\uff0c\u63d0\u5347\u5de5\u4f5c\u6548\u7387\uff0c\u89e3\u51b3\u6743\u9650\u95ee\u9898"},"content":{"rendered":"

\u5728Linux<\/a>\u64cd\u4f5c\u7cfb\u7edf\u4e2dlinux makefile\uff0c\u6267\u884c\u811a\u672c\u663e\u5f97\u5c24\u4e3a\u5173\u952e\u3002\u8fd9\u79cd\u64cd\u4f5c\u80fd\u591f\u5e2e\u52a9\u6211\u4eec\u5b9e\u73b0\u4efb\u52a1\u7684\u81ea\u52a8\u5316\uff0c\u4ece\u800c\u63d0\u5347\u5de5\u4f5c\u6548\u7387\u3002\u65e0\u8bba\u662f\u7cfb\u7edf\u7ba1\u7406\u5458\u8fd8\u662f\u666e\u901a\u7528\u6237\uff0c\u638c\u63e1\u811a\u672c\u6267\u884c\u7684\u65b9\u6cd5\u90fd\u662f\u5341\u5206\u5fc5\u8981\u7684\u3002<\/p>\n

\u811a\u672c\u7c7b\u578b<\/b><\/p>\n

Linux<\/a>\u652f\u6301\u591a\u79cd\u811a\u672c\u683c\u5f0f\uff0c\u5176\u4e2dbash\u811a\u672c\u5c24\u4e3a\u666e\u904d\u3002bash\u811a\u672c\u80fd\u591f\u6267\u884c\u7cfb\u7edf\u547d\u4ee4<\/a>\uff0c\u5b9e\u73b0\u591a\u6837\u5316\u7684\u64cd\u4f5c\u3002\u6bd4\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684\u811a\u672c\uff0c\u7528\u4e8e\u6e05\u9664\u7cfb\u7edf\u4e2d\u7684\u4e34\u65f6\u6587\u4ef6\u3002\u811a\u672c\u4e2d\u5305\u542b\u4e00\u6761\u547d\u4ee4\uff0c\u7528\u4e8e\u641c\u7d22\u6240\u6709\u4ee5tmp\u7ed3\u5c3e\u7684\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u5220\u9664\u3002\u6b64\u5916\uff0cLinux\u4e0b\u540c\u6837\u53ef\u4ee5\u8fd0\u884cPython\u811a\u672c\u3002Python\u811a\u672c\u529f\u80fd\u66f4\u4e3a\u4e30\u5bcc\uff0c\u7279\u522b\u9002\u5408\u5904\u7406\u590d\u6742\u7684\u903b\u8f91\u95ee\u9898\u3002<\/p>\n

\u811a\u672c\u6267\u884c\u5668_\u811a\u672c\u6267\u884c\u547d\u4ee4_linux \u6267\u884c\u811a\u672c<\/p>\n

\u811a\u672c\u6743\u9650\u95ee\u9898\u4e5f\u662f\u5173\u952e\u4e00\u70b9\u3002\u5728Linux\u7cfb\u7edf\u91cc\uff0c\u82e5\u811a\u672c\u7f3a\u4e4f\u6267\u884c\u6743\u9650\uff0c\u5c1d\u8bd5\u8fd0\u884c\u65f6\u4fbf\u4f1a\u663e\u793a\u9519\u8bef\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5f97\u7ed9\u811a\u672c\u8d4b\u4e88\u6267\u884c\u6743\u9650\uff0c\u8fd9\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528chmod\u547d\u4ee4\u6765\u8c03\u6574linux \u6267\u884c\u811a\u672c<\/strong>\uff0c\u786e\u4fdd\u811a\u672c\u80fd\u591f\u987a\u5229\u8fd0\u884c\u3002<\/p>\n

\u6267\u884c\u65b9\u6cd5<\/b><\/p>\n

\u76f4\u63a5\u6267\u884c\u662f\u4e00\u79cd\u7b80\u4fbf\u7684\u505a\u6cd5\u3002\u53ea\u8981\u811a\u672c\u5b58\u653e\u5728\u6211\u4eec\u5f53\u524d\u7684\u6587\u4ef6\u5939\u91cc\uff0c\u5e76\u4e14\u8d4b\u4e88\u4e86\u6267\u884c\u6743\u9650\uff0c\u6211\u4eec\u53ea\u9700\u8f93\u5165\u811a\u672c\u7684\u540d\u5b57\u5c31\u80fd\u542f\u52a8\u5b83\u3002\u8fd9\u5c31\u50cf\u5728\u547d\u4ee4\u884c\u4e2d\u6309\u4e0b\u4e00\u4e2a\u5feb\u6377\u952e\uff0c\u8fc5\u901f\u5b8c\u6210\u4e00\u7cfb\u5217\u9884\u8bbe\u7684\u64cd\u4f5c\u3002\u4f46\u8981\u6ce8\u610f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u7684\u524d\u63d0\u662f\u6211\u4eec\u5fc5\u987b\u786e\u5207\u77e5\u9053\u811a\u672c\u5b58\u653e\u7684\u5177\u4f53\u4f4d\u7f6e\u3002<\/p>\n

\u811a\u672c\u6267\u884c\u547d\u4ee4_\u811a\u672c\u6267\u884c\u5668_linux \u6267\u884c\u811a\u672c<\/p>\n

\u89e3\u91ca\u5668\u80fd\u591f\u5e2e\u52a9\u8fd0\u884c\u811a\u672c\u3002\u6bd4\u5982\uff0c\u5bf9\u4e8ebash\u811a\u672c\uff0c\u4f60\u53ea\u9700\u5728\u547d\u4ee4\u884c\u8f93\u5165\u201cbash\u201d\uff0c\u63a5\u7740\u662f\u811a\u672c\u540d\u79f0\u3002\u8fd9\u6837\u7684\u505a\u6cd5\u65e0\u9700\u811a\u672c\u5177\u5907\u6267\u884c\u6743\u9650\u3002\u6b64\u65b9\u6cd5\u66f4\u4e3a\u4fbf\u6377\uff0c\u5373\u4fbf\u811a\u672c\u6743\u9650\u51fa\u73b0\u5f02\u5e38\uff0c\u4e5f\u80fd\u501f\u52a9\u89e3\u91ca\u5668\u987a\u5229\u6267\u884c\u3002<\/p>\n

\u811a\u672c\u7684\u8def\u5f84\u95ee\u9898<\/b><\/p>\n

\u91c7\u7528\u7edd\u5bf9\u8def\u5f84\u6267\u884c\u811a\u672c\u66f4\u4e3a\u7cbe\u786e\u3002\u6bd4\u5982\uff0c\u82e5\u811a\u672c\u5b58\u653e\u5728\/home\/user\/scripts\u8fd9\u4e2a\u6587\u4ef6\u5939\u4e2d\uff0c\u6211\u4eec\u53ea\u9700\u5b8c\u6574\u5730\u5199\u51fa\u8be5\u8def\u5f84\uff0c\u518d\u8ddf\u4e0a\u811a\u672c\u540d\u79f0\uff0c\u5373\u53ef\u786e\u4fdd\u5176\u6b63\u786e\u6267\u884c\u3002\u5c24\u5176\u5728\u811a\u672c\u9700\u8981\u5f15\u7528\u5176\u4ed6\u6587\u4ef6\u6216\u5e93\u65f6\uff0c\u8fd9\u4e00\u70b9\u5c24\u4e3a\u91cd\u8981\uff0c\u56e0\u4e3a\u5b83\u80fd\u4fdd\u8bc1\u811a\u672c\u5728\u7a33\u5b9a\u7684\u73af\u5883\u4e2d\u8fd0\u884c\u3002<\/p>\n

\u76f8\u5bf9\u8def\u5f84\u7684\u4f7f\u7528\u76f8\u5bf9\u7e41\u7410\u3002\u5f53\u5de5\u4f5c\u76ee\u5f55\u6b63\u5904\u4e8e\u5f53\u524d\u72b6\u6001\u65f6\uff0c\u6211\u4eec\u4f1a\u91c7\u7528\u76f8\u5bf9\u8def\u5f84\u6765\u5b9a\u4f4d\u811a\u672c\u6267\u884c\u3002\u7136\u800clinux \u6267\u884c\u811a\u672c<\/strong>\uff0c\u82e5\u4e0d\u5c0f\u5fc3\u53d8\u52a8\u4e86\u5de5\u4f5c\u76ee\u5f55\uff0c\u5c31\u53ef\u80fd\u53d1\u751f\u811a\u672c\u65e0\u6cd5\u627e\u5230\u7684\u95ee\u9898\u3002\u56e0\u6b64\uff0c\u5728\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u6267\u884c\u811a\u672c\u65f6\uff0c\u52a1\u5fc5\u7559\u610f\u5de5\u4f5c\u76ee\u5f55\u7684\u53d8\u52a8\u60c5\u51b5\u3002<\/p>\n

\u73af\u5883\u53d8\u91cf\u4e0e\u811a\u672c\u6267\u884c<\/b><\/p>\n

\u73af\u5883\u53d8\u91cf\u5bf9\u811a\u672c\u7684\u8fd0\u884c\u6709\u5f71\u54cd\u3002\u6709\u4e9b\u811a\u672c\u8fd0\u884c\u9700\u8981\u4f9d\u8d56\u7279\u5b9a\u7684\u73af\u5883\u53d8\u91cf\uff0c\u6bd4\u5982PATH\u53d8\u91cf\u3002\u82e5\u8981\u6267\u884c\u7684\u811a\u672c\u4e2d\u8c03\u7528\u4e86\u4e00\u4e2a\u547d\u4ee4\uff0c\u800c\u8fd9\u4e2a\u547d\u4ee4\u4e0d\u5728\u5f53\u524d\u7684PATH\u8def\u5f84\u4e2d\uff0c\u811a\u672c\u53ef\u80fd\u4f1a\u51fa\u73b0\u9519\u8bef\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u6240\u9700\u7684\u8def\u5f84\u6dfb\u52a0\u5230PATH\u53d8\u91cf\u91cc\uff0c\u6216\u8005\u76f4\u63a5\u5728\u811a\u672c\u4e2d\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\u6765\u6307\u5b9a\u8fd9\u4e9b\u547d\u4ee4\u3002<\/p>\n

\u540c\u65f6\uff0c\u7528\u6237\u81ea\u884c\u914d\u7f6e\u7684\u73af\u5883\u53d8\u91cf\uff0c\u4e5f\u53ef\u80fd\u5bf9\u811a\u672c\u7684\u6267\u884c\u9020\u6210\u5f71\u54cd\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u80fd\u4f1a\u8bbe\u5b9a\u4e00\u4e2a\u81ea\u5b9a\u4e49\u53d8\u91cf\u6765\u8c03\u63a7\u811a\u672c\u7684\u90e8\u5206\u529f\u80fd\u3002\u6b64\u65f6\uff0c\u6211\u4eec\u5fc5\u987b\u4fdd\u8bc1\u8be5\u53d8\u91cf\u5728\u811a\u672c\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u88ab\u6b63\u786e\u5730\u8bbe\u5b9a\u3002<\/p>\n

\u811a\u672c\u7684\u8c03\u8bd5<\/b><\/p>\n

\u8c03\u8bd5\u8f93\u51fa\u662f\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u5728\u811a\u672c\u4e2d\u52a0\u5165echo\u547d\u4ee4\uff0c\u53ef\u4ee5\u6253\u5370\u51fa\u53d8\u91cf\u7684\u6570\u503c\u6216\u6267\u884c\u8fc7\u7a0b\u4e2d\u7684\u91cd\u8981\u4fe1\u606f\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u5728\u811a\u672c\u8fd0\u884c\u65f6\uff0c\u6211\u4eec\u5c31\u80fd\u76f4\u89c2\u5730\u53d1\u73b0\u54ea\u91cc\u51fa\u73b0\u4e86\u95ee\u9898\u3002\u6bd4\u5982\uff0c\u82e5\u60f3\u4e86\u89e3\u4e00\u4e2a\u5faa\u73af\u662f\u5426\u6309\u9884\u671f\u8fdb\u884c\uff0c\u53ea\u9700\u5728\u5faa\u73af\u4f53\u5185\u52a0\u5165echo\u547d\u4ee4\uff0c\u5c31\u80fd\u5b9e\u65f6\u67e5\u770b\u6bcf\u6b21\u5faa\u73af\u7684\u5177\u4f53\u60c5\u51b5\u3002<\/p>\n

linux \u6267\u884c\u811a\u672c_\u811a\u672c\u6267\u884c\u5668_\u811a\u672c\u6267\u884c\u547d\u4ee4<\/p>\n

\u4f7f\u7528\u8c03\u8bd5\u5de5\u5177\u662f\u4e00\u79cd\u66f4\u4e3a\u4e13\u4e1a\u7684\u624b\u6bb5\u3002\u4ee5bash\u4e3a\u4f8b\uff0c\u5b83\u62e5\u6709DEBUG\u6a21\u5f0f\u8fd9\u4e00\u529f\u80fd\u3002\u4e00\u65e6\u542f\u7528\u6b64\u6a21\u5f0f\uff0cbash\u4fbf\u4f1a\u63d0\u4f9b\u5927\u91cf\u8be6\u7ec6\u7684\u6267\u884c\u4fe1\u606f\u3002\u8fd9\u4e9b\u4fe1\u606f\u5bf9\u4e8e\u67e5\u627e\u590d\u6742\u7684\u811a\u672c\u9519\u8bef\u975e\u5e38\u6709\u5e2e\u52a9\u3002\u6bd4\u5982\uff0c\u5728\u590d\u6742\u7684\u811a\u672c\u903b\u8f91\u4e2dpuppy linux\uff0c\u82e5\u6d89\u53ca\u591a\u4e2a\u51fd\u6570\u8c03\u7528\uff0c\u501f\u52a9DEBUG\u6a21\u5f0f\uff0c\u6211\u4eec\u5c31\u80fd\u89c2\u5bdf\u5230\u6bcf\u4e2a\u51fd\u6570\u7684\u8c03\u7528\u8fdb\u5165\u548c\u8fd4\u56de\u7684\u5177\u4f53\u60c5\u51b5\u3002<\/p>\n

\u5404\u4f4d\u8bfb\u8005\uff0c\u5728\u4f60\u4eec\u8fd0\u884cLinux\u811a\u672c\u65f6\uff0c\u662f\u5426\u9047\u5230\u8fc7\u8ba9\u4eba\u56f0\u60d1\u7684\u95ee\u9898\uff1f\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u7559\u8a00\u5206\u4eab\u4f60\u4eec\u7684\u7ecf\u5386\u3002\u540c\u65f6\uff0c\u4e5f\u5e0c\u671b\u5404\u4f4d\u80fd\u70b9\u8d5e\u5e76\u8f6c\u53d1\u8fd9\u7bc7\u6587\u7ae0\uff0c\u8ba9\u66f4\u591a\u7684\u4eba\u4e86\u89e3Linux\u811a\u672c\u7684\u6267\u884c\u8fc7\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u8fd9\u79cd\u64cd\u4f5c\u80fd\u591f\u5e2e\u52a9\u6211\u4eec\u5b9e\u73b0\u4efb\u52a1\u7684\u81ea\u52a8\u5316\uff0c\u4ece\u800c\u63d0\u5347\u5de5\u4f5c\u6548\u7387\u3002\u65e0\u8bba\u662f\u7cfb\u7edf\u7ba1\u7406\u5458\u8fd8\u662f\u666e\u901a\u7528\u6237\uff0c\u638c\u63e1\u811a\u672c\u6267\u884c\u7684\u65b9\u6cd5\u90fd\u662f\u5341\u5206\u5fc5\u8981\u7684\u3002bash\u811a\u672c\u80fd\u591f\u6267\u884c\u7cfb\u7edf\u547d\u4ee4\uff0c\u5b9e\u73b0\u591a\u6837\u5316\u7684\u64cd\u4f5c\u3002\u5728Linux\u7cfb\u7edf\u91cc\uff0c\u82e5\u811a\u672c\u7f3a\u4e4f\u6267\u884c\u6743\u9650\uff0c\u5c1d\u8bd5\u8fd0\u884c\u65f6\u4fbf\u4f1a\u663e\u793a\u9519\u8bef\u3002\u6b64\u65b9\u6cd5\u66f4\u4e3a\u4fbf\u6377\uff0c\u5373\u4fbf\u811a\u672c\u6743\u9650\u51fa\u73b0\u5f02\u5e38\uff0c\u4e5f\u80fd\u501f\u52a9\u89e3\u91ca\u5668\u987a\u5229\u6267\u884c\u3002<\/p>\n","protected":false},"author":1,"featured_media":293808,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[109,3240,1006,3763,3764],"class_list":["post-293807","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-linux","tag-qxwt","tag-hjbl","tag-jbzx","tag-ljwt"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293807","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=293807"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293807\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/293808"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=293807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=293807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=293807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}