{"id":290278,"date":"2024-03-08T05:14:11","date_gmt":"2024-03-07T21:14:11","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxsrhzqyxbwj.html"},"modified":"2024-03-08T05:14:11","modified_gmt":"2024-03-07T21:14:11","slug":"lxsrhzqyxbwj","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxsrhzqyxbwj.html","title":{"rendered":"Linux\u65b0\u624b\u5982\u4f55\u6b63\u786e\u8fd0\u884cbin\u6587\u4ef6\uff0c\u4e00\u6b21\u641e\u5b9a"},"content":{"rendered":"

\u5728\u719f\u6089Linux<\/a>\u73af\u5883\u7684\u7528\u6237\u770b\u6765\uff0c\u542f\u52a8bin\u6587\u4ef6\u6216\u8bb8\u5e76\u975e\u96be\u4e8b\uff1b\u4f46\u662f\uff0c\u5bf9\u4e8e\u65b0\u624b\u800c\u8a00\uff0c\u53ef\u80fd\u5c31\u9700\u8981\u6b63\u786e\u6307\u5bfc\u624d\u80fd\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528\u4e86\u3002\u4f5c\u4e3a\u5177\u5907\u4e30\u5bcc\u7ecf\u9a8c\u7684Linux\u4e13\u5bb6linux\u6267\u884cbin\u6587\u4ef6\u547d\u4ee4<\/a><\/strong>\uff0c\u672c\u4eba\u613f\u610f\u5206\u4eab\u4e2a\u4eba\u5fc3\u5f97\uff0c\u671f\u5f85\u80fd\u4e3a\u5404\u4f4d\u7528\u6237\u63d0\u4f9b\u501f\u9274\u548c\u542f\u793a\u3002<\/p>\n

1.\u786e\u8ba4\u6587\u4ef6\u6743\u9650<\/b><\/p>\n

\u5728\u8fd0\u884c\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u6587\u4ef6\u524d\uff0c\u52a1\u5fc5\u786e\u8ba4\u5176\u5177\u5907\u6267\u884c\u8bb8\u53ef\uff0c\u60a8\u53ef\u8fd0\u7528\u5982\u4e0b\u7684\u6307\u4ee4\u68c0\u67e5\u53ca\u8c03\u6574\u6587\u4ef6\u6743\u9650\uff1a<\/p>\n

ls -l filename<\/p>\n

chmod +x filename<\/p>\n

2.\u8fd0\u884cbin\u6587\u4ef6<\/b><\/p>\n

\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u5b8c\u6574\u8f93\u5165bin\u6587\u4ef6\u7684\u8def\u5f84\u53ca\u540d\u79f0\uff0c\u4fbf\u53ef\u542f\u52a8\u3002\u4f8b\u5982\uff1a<\/p>\n

3.\u5904\u7406\u4f9d\u8d56\u5173\u7cfb<\/b><\/p>\n

\u5b9e\u8df5\u4e2d\uff0c\u9700\u6ce8\u610f\u5728\u8fd0\u884cbin\u6587\u4ef6\u524d\uff0c\u6709\u5fc5\u8981\u9884\u5148\u5b89\u88c5\u6240\u9700\u7684\u4f9d\u8d56\u5e93\u6216\u8f6f\u4ef6\u5305\u3002\u5305\u7ba1\u7406\u5de5\u5177\u80fd\u591f\u6709\u6548\u5b8c\u6210\u6b64\u4efb\u52a1\u3002\u8b6c\u5982\u5728Debian\u6216Ubuntu\u64cd\u4f5c\u7cfb\u7edf<\/a>\u73af\u5883\u4e0b\uff0c\u5229\u7528apt-get\u6307\u4ee4\u8fdb\u884c\u5b89\u88c5\u5373\u662f\u6709\u6548\u9014\u5f84\u3002<\/p>\n

\u901a\u8fc7\u547d\u4ee4 sudo apt-get install package_name \u8fdb\u884c\u8be5\u8f6f\u4ef6\u5305\u7684\u5b89\u88c5\u3002<\/p>\n

4.\u9047\u5230\u95ee\u9898\u65f6\u7684\u89e3\u51b3\u65b9\u6848<\/b><\/p>\n

linux\u6267\u884cbin\u6587\u4ef6\u547d\u4ee4_linux\u547d\u4ee4\u884c\u6267\u884c\u6587\u4ef6_linux\u6587\u4ef6\u6267\u884c<\/p>\n

\u5982\u679c\u5728\u6267\u884cbin\u6587\u4ef6\u65f6\u9047\u5230\u95ee\u9898\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n

-\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b8c\u6574linux \u53d1\u90ae\u4ef6\uff0c\u53ef\u80fd\u51fa\u73b0\u4e0b\u8f7d\u6216\u4f20\u8f93\u9519\u8bef\uff1b<\/p>\n

-\u786e\u8ba4\u7cfb\u7edf\u662f\u5426\u7f3a\u5c11\u5fc5\u8981\u7684\u4f9d\u8d56\u9879\uff1b<\/p>\n

-\u67e5\u770b\u65e5\u5fd7\u6587\u4ef6\u4ee5\u83b7\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n

5.\u4f7f\u7528\u811a\u672c\u6765\u7b80\u5316\u64cd\u4f5c<\/b><\/p>\n

\u82e5\u9891\u7e41\u64cd\u4f5c\u540c\u4e00 bin \u6587\u4ef6\uff0c\u5f97\u4ee5\u501f\u52a9\u811a\u672c\u5b9e\u73b0\u81ea\u52a8\u5316\uff0c\u8282\u7701\u5b9d\u8d35\u65f6\u95f4\u4e0e\u7cbe\u529b\u3002\u4e3e\u4f8b\u5982\u7f16\u7e82\u4e00\u4efd\u540d\u4e3a run.sh \u7684\u811a\u672c\uff0c\u5185\u542b\u5982\u4e0b\u5185\u5bb9:<\/p>\n

cd \/path\/to\/file<\/p>\n

\u7136\u540e\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c\u811a\u672c\uff1a<\/p>\n

chmod +x run.sh<\/p>\n

6.\u6ce8\u610f\u5b89\u5168\u6027<\/b><\/p>\n

linux\u547d\u4ee4\u884c\u6267\u884c\u6587\u4ef6_linux\u6267\u884cbin\u6587\u4ef6\u547d\u4ee4_linux\u6587\u4ef6\u6267\u884c<\/p>\n

\u52a1\u5fc5\u7559\u610f\u6267\u884cbin\u6587\u4ef6\u7684\u5b89\u5168\u6027\u95ee\u9898\u3002\u4ec5\u6267\u884c\u53ef\u4fe1\u53ef\u9760\u7684\u6587\u4ef6\uff0c\u907f\u514d\u8d38\u7136\u4e0b\u8f7d\u5e76\u8fd0\u884c\u4e0d\u77e5\u540d\u6765\u6e90\u7684bin\u6587\u4ef6\u3002<\/p>\n

7.\u66f4\u65b0\u7cfb\u7edf<\/b><\/p>\n

\u5b9a\u671f\u5347\u7ea7\u7cfb\u7edf\u4ee5\u4fdd\u969c\u5176\u5b89\u5168\u6027\u4e0e\u7a33\u5b9a\u6027\uff0c\u8fd9\u662f\u91cd\u8981\u6b65\u9aa4\u4e4b\u4e00\u3002\u52a1\u5fc5\u786e\u4fdd\u60a8\u7684\u8bbe\u5907\u4fdd\u6301\u6700\u65b0\u7248\u672c\uff0c\u4ee5\u83b7\u53d6\u6700\u65b0\u529f\u80fd\u53ca\u4fee\u590d\u5df2\u77e5\u95ee\u9898\u3002<\/p>\n

8.\u5b66\u4e60\u5e76\u638c\u63e1\u66f4\u591a\u547d\u4ee4<\/b><\/p>\n

\u5728\u4ec5\u4f7f\u7528bin\u6587\u4ef6\u8fdb\u884c\u64cd\u4f5cLinux\u7cfb\u7edf\u4ee5\u5916\uff0c\u66f4\u4e3a\u6df1\u5165\u5730\u638c\u63e1\u76f8\u5173\u547d\u4ee4\u4e5f\u9887\u5177\u4ef7\u503c\u3002\u5982\u5b66\u4e60\u5bdf\u770b\u8fd0\u884c\u4e2d\u7684\u8fdb\u7a0b\u3001\u5bf9\u7528\u6237\u8eab\u4efd\u7684\u7ba1\u7406\u3001\u5408\u7406\u5206\u914d\u6743\u9650\u7b49\uff0c\u7686\u6709\u52a9\u4e8e\u66f4\u7cbe\u51c6\u5730\u89e3\u8bfb\u5e76\u9a7e\u9a6dLinux\u7cfb\u7edf\u3002<\/p>\n

9.\u53c2\u8003\u6587\u6863\u548c\u793e\u533a\u652f\u6301<\/b><\/p>\n

\u82e5\u9700\u8981\u5728\u6267\u884c\u4e8c\u8fdb\u5236\u6587\u4ef6\u8fc7\u7a0b\u4e2d\u9047\u5230\u7591\u95eelinux\u6267\u884cbin\u6587\u4ef6\u547d\u4ee4<\/strong>\uff0c\u53ef\u67e5\u9605\u5b98\u65b9\u6587\u732e\u6216\u54a8\u8be2Linux\u793e\u7fa4\uff0c\u6d89\u53ca\u5230\u4e30\u5bcc\u4e14\u5b9e\u7528\u7684\u53c2\u8003\u8d44\u6599\u53ca\u53ef\u884c\u63aa\u65bd\u3002<\/p>\n

10.\u7ec3\u4e60\u548c\u5b9e\u8df5<\/b><\/p>\n

\u552f\u6709\u901a\u8fc7\u53cd\u590d\u5b9e\u8df5\uff0c\u65b9\u80fd\u878d\u6c47\u8d2f\u901a\uff0c\u7cbe\u901aLinux\u8fd0\u884cBIN\u6587\u4ef6\u7684\u64cd\u4f5c\u6280\u5de7\u3002\u901a\u8fc7\u5b9e\u8df5\u4e0e\u6478\u7d22\uff0c\u7ecf\u9a8c\u9010\u6e10\u589e\u957f\uff0c\u6280\u5de7\u65e5\u76ca\u719f\u7ec3\u3002<\/p>\n

\u613f\u8fd9\u4e9b\u5b9d\u8d35\u5fc3\u5f97\u52a9\u60a8\u4e00\u81c2\u4e4b\u529b\u3002\u8bf7\u7262\u8bb0\uff0c\u638c\u63e1Linux\u7cfb\u7edf\u5e76\u975e\u96be\u4e8blinux windows\uff0c\u8981\u8bc0\u5728\u4e8e\u59cb\u7ec8\u4fdd\u6301\u597d\u5b66\u5411\u4e0a\u7684\u7cbe\u795e\u72b6\u6001\u4e0e\u4e50\u89c2\u79ef\u6781\u4e4b\u5fc3\u6001\u3002\u795d\u5404\u4f4d\u987a\u5229\u6210\u4e3a\u5353\u8d8a\u7684Linux\u7528\u6237\u3002\u5171\u52c9\u4e4b\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u8fd0\u884cbin\u6587\u4ef6\u5b9e\u8df5\u4e2d\uff0c\u9700\u6ce8\u610f\u5728\u8fd0\u884cbin\u6587\u4ef6\u524d\uff0c\u6709\u5fc5\u8981\u9884\u5148\u5b89\u88c5\u6240\u9700\u7684\u4f9d\u8d56\u5e93\u6216\u8f6f\u4ef6\u5305\u3002\u7136\u540e\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c\u811a\u672c\uff1a\u52a1\u5fc5\u7559\u610f\u6267\u884cbin\u6587\u4ef6\u7684\u5b89\u5168\u6027\u95ee\u9898\u3002\u4ec5\u6267\u884c\u53ef\u4fe1\u53ef\u9760\u7684\u6587\u4ef6\uff0c\u907f\u514d\u8d38\u7136\u4e0b\u8f7d\u5e76\u8fd0\u884c\u4e0d\u77e5\u540d\u6765\u6e90\u7684bin\u6587\u4ef6\u3002<\/p>\n","protected":false},"author":1,"featured_media":290279,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-290278","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/290278","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=290278"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/290278\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/290279"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=290278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=290278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=290278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}