{"id":294010,"date":"2024-10-28T20:04:56","date_gmt":"2024-10-28T12:04:56","guid":{"rendered":"https:\/\/lrxjmw.cn\/zwlxtnjcmlgx.html"},"modified":"2024-10-28T20:04:56","modified_gmt":"2024-10-28T12:04:56","slug":"zwlxtnjcmlgx","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/zwlxtnjcmlgx.html","title":{"rendered":"\u638c\u63e1 Linux \u7cfb\u7edf\u5185\u57fa\u7840\u547d\u4ee4\uff0c\u9ad8\u6548\u6267\u884c\u6587\u4ef6\u7ba1\u7406\u7b49\u4efb\u52a1"},"content":{"rendered":"

Linux<\/a>\u7cfb\u7edf\u5185\u5305\u542b\u4e86\u4f17\u591a\u57fa\u7840\u547d\u4ee4<\/a>\uff0c\u8fd9\u4e9b\u547d\u4ee4\u72b9\u5982\u5404\u5f0f\u5de5\u5177\uff0c\u8f85\u52a9\u6211\u4eec\u5728Linux\u73af\u5883\u4e2d\u9ad8\u6548\u5730\u6267\u884c\u5404\u7c7b\u4efb\u52a1\uff0c\u6db5\u76d6\u6587\u4ef6\u7ba1\u7406\u3001\u7cfb\u7edf\u76d1\u63a7\u7b49\u591a\u4e2a\u65b9\u9762\u3002\u719f\u7ec3\u638c\u63e1\u8fd9\u4e9b\u547d\u4ee4\uff0c\u662f\u6df1\u5165\u5b66\u4e60Linux\u4e0d\u53ef\u6216\u7f3a\u7684\u57fa\u77f3\u3002<\/p>\n

\u6587\u4ef6\u64cd\u4f5c\u547d\u4ee4<\/b><\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6587\u4ef6\u64cd\u4f5c\u662f\u4e00\u9879\u57fa\u672c\u4efb\u52a1\u3002\u5176\u4e2d\uff0cls\u547d\u4ee4\u662f\u6700\u5e38\u7528\u7684\uff0c\u5b83\u80fd\u5c55\u793a\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u548c\u5b50\u76ee\u5f55\u3002\u4f7f\u7528ls-l\u53c2\u6570\uff0c\u53ef\u4ee5\u8be6\u7ec6\u67e5\u770b\u6587\u4ef6\u7684\u6743\u9650\u548c\u6240\u6709\u8005\u7b49\u4fe1\u606f\u3002\u6b64\u5916\uff0ccp\u547d\u4ee4\u7528\u4e8e\u6587\u4ef6\u590d\u5236\uff0c\u4f46\u9700\u6ce8\u610f\u76ee\u6807\u8def\u5f84\u7684\u8bfb\u5199\u6743\u9650\uff0c\u4ee5\u514d\u590d\u5236\u5931\u8d25\u3002<\/p>\n

\u719f\u7ec3\u638c\u63e1Linux\u4e2d\u7684\u6587\u4ef6\u64cd\u4f5c\u547d\u4ee4\u81f3\u5173\u91cd\u8981\u3002\u5176\u4e2d\uff0cmv\u547d\u4ee4\u529f\u80fd\u5f3a\u5927\uff0c\u65e2\u80fd\u79fb\u52a8\u6587\u4ef6\uff0c\u4e5f\u80fd\u8fdb\u884c\u91cd\u547d\u540d\u3002\u82e5\u9700\u5c06\u6587\u4ef6\u79fb\u81f3\u5176\u4ed6\u8def\u5f84\uff0c\u4f7f\u7528mv\u547d\u4ee4\u518d\u5408\u9002\u4e0d\u8fc7\uff0c\u5b83\u8fd8\u80fd\u9ad8\u6548\u5b8c\u6210\u91cd\u547d\u540d\u4efb\u52a1\u3002\u7136\u800c\uff0c\u8fd9\u4e00\u5207\u64cd\u4f5c\u7684\u524d\u63d0\u662f\u7528\u6237\u5fc5\u987b\u5bf9\u76ee\u6807\u76ee\u5f55\u62e5\u6709\u76f8\u5e94\u7684\u6743\u9650\uff0c\u5426\u5219\u7cfb\u7edf\u5c06\u4f1a\u62d2\u7edd\u6267\u884c\u3002<\/p>\n

\u6743\u9650\u7ba1\u7406\u547d\u4ee4<\/b><\/p>\n

Linux\u7cfb\u7edf\u91cd\u89c6\u6743\u9650\u7ba1\u7406\uff0c\u5176\u4e2dchmod\u547d\u4ee4\u662f\u8c03\u6574\u6587\u4ef6\u6216\u76ee\u5f55\u6743\u9650\u7684\u5173\u952e\u5de5\u5177\u3002\u5b83\u5141\u8bb8\u6240\u6709\u8005\u3001\u7fa4\u7ec4\u6210\u5458\u53ca\u5176\u4ed6\u7528\u6237\u5206\u522b\u62e5\u6709\u8bfb\u53d6\u3001\u5199\u5165\u548c\u6267\u884c\u7684\u4e09\u79cd\u6743\u9650\u3002\u8bbe\u5b9a\u6743\u9650\u65e2\u53ef\u901a\u8fc7\u6570\u5b57\u65b9\u5f0f\uff0c\u4e5f\u53ef\u7528\u7b26\u53f7\u65b9\u5f0f\uff0c\u64cd\u4f5c\u7b80\u4fbf\u4e14\u51c6\u786e\u65e0\u8bef\uff0c\u5982\u8bbe\u7f6e\u6587\u4ef6\u6743\u9650\u4e3a755\u7b49\u3002\u6b64\u5916\uff0cchown\u547d\u4ee4\u8fd8\u80fd\u8c03\u6574\u6587\u4ef6\u7684\u6240\u6709\u6743\uff0c\u8fd9\u5728\u591a\u7528\u6237\u5171\u4eab\u7cfb\u7edf\u548c\u7cfb\u7edf\u7ba1\u7406\u4e2d\u5c24\u4e3a\u5b9e\u7528\u3002<\/p>\n

\u6743\u9650\u7ba1\u7406\u82e5\u6709\u758f\u6f0f\uff0c\u5b89\u5168\u98ce\u9669\u4fbf\u968f\u4e4b\u800c\u6765\u3002\u6743\u9650\u914d\u7f6e\u4e0d\u5f53\uff0c\u6587\u4ef6\u53ef\u80fd\u906d\u53d7\u975e\u6cd5\u7be1\u6539\u6216\u88ab\u975e\u6cd5\u67e5\u9605\u3002\u82e5\u5173\u952e\u7cfb\u7edf\u542f\u52a8\u6587\u4ef6\u7684\u6743\u9650\u8bbe\u7f6e\u5931\u8beflinux\u57fa\u7840\u547d\u4ee4<\/strong>\uff0c\u7cfb\u7edf\u542f\u52a8\u53ef\u80fd\u4f1a\u5931\u8d25\u3002\u56e0\u6b64\uff0c\u6b63\u786e\u8fd0\u7528\u6743\u9650\u7ba1\u7406\u6307\u4ee4\uff0c\u662f\u786e\u4fdd\u7cfb\u7edf\u5b89\u5168\u7a33\u5b9a\u8fd0\u884c\u7684\u5173\u952e\u3002<\/p>\n

linux\u57fa\u7840\u547d\u4ee4_linux\u57fa\u7840\u547d\u4ee4\u5927\u5168_linux\u57fa\u7840\u547d\u4ee4100\u4e2a<\/p>\n

\u8fdb\u7a0b\u7ba1\u7406\u547d\u4ee4<\/b><\/p>\n

ps\u547d\u4ee4\u7528\u4e8e\u67e5\u770b\u7cfb\u7edf\u5f53\u524d\u7684\u8fdb\u7a0b\u60c5\u51b5\u3002\u5b83\u80fd\u663e\u793a\u51fa\u8fdb\u7a0b\u7684\u72b6\u6001\u3001\u8fdb\u7a0b\u6807\u8bc6\u7b26\uff08pid\uff09\u7b49\u5173\u952e\u4fe1\u606f\u3002\u4f7f\u7528ps-ef\u7b49\u53c2\u6570\u7ec4\u5408\uff0c\u53ef\u4ee5\u83b7\u53d6\u66f4\u8be6\u5c3d\u7684\u8fdb\u7a0b\u4fe1\u606f\u3002\u53e6\u5916\uff0ckill\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7ed3\u675f\u8fdb\u7a0b\u3002\u5f53\u67d0\u4e2a\u8fdb\u7a0b\u51fa\u73b0\u6b7b\u5faa\u73af\u6216\u8d44\u6e90\u5360\u7528\u8fc7\u591a\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7kill\u547d\u4ee4\uff0c\u6839\u636e\u5176pid\u6765\u7ec8\u6b62\u8be5\u8fdb\u7a0b\u3002<\/p>\n

\u4f7f\u7528kill\u547d\u4ee4\u9700\u683c\u5916\u5c0f\u5fc3\u3002\u4e00\u65e6\u4e0d\u5c0f\u5fc3\u6740\u6b7b\u4e86\u5173\u952e\u8fdb\u7a0blinux\u57fa\u7840\u547d\u4ee4<\/strong>\uff0c\u7cfb\u7edf\u53ef\u80fd\u4f1a\u51fa\u73b0\u4e0d\u7a33\u5b9a\uff0c\u751a\u81f3\u67d0\u4e9b\u8f6f\u4ef6\u53ef\u80fd\u65e0\u6cd5\u6b63\u5e38\u8fd0\u4f5c\u3002\u56e0\u6b64\uff0c\u5728\u7ec8\u6b62\u4efb\u4f55\u8fdb\u7a0b\u4e4b\u524d\uff0c\u52a1\u5fc5\u786e\u8ba4\u8be5\u8fdb\u7a0b\u5bf9\u7cfb\u7edf\u7684\u91cd\u8981\u6027\uff0c\u5e76\u786e\u4fdd\u8be5\u8fdb\u7a0b\u786e\u5b9e\u5b58\u5728\u9700\u8981\u5f3a\u5236\u7ec8\u6b62\u7684\u95ee\u9898\u3002<\/p>\n

linux\u57fa\u7840\u547d\u4ee4\u5927\u5168_linux\u57fa\u7840\u547d\u4ee4100\u4e2a_linux\u57fa\u7840\u547d\u4ee4<\/p>\n

\u4f7f\u7528useradd\u547d\u4ee4\u53ef\u4ee5\u65b0\u589e\u7528\u6237\u8d26\u6237\u3002\u521b\u5efa\u7528\u6237\u65f6\uff0c\u53ef\u4ee5\u4e00\u5e76\u8bbe\u5b9a\u7528\u6237\u7684\u4e3b\u6587\u4ef6\u5939\u4ee5\u53ca\u6240\u5c5e\u7684\u7fa4\u7ec4\u7b49\u7ec6\u8282\u3002\u5728\u591a\u7528\u6237\u7cfb\u7edf\u4e2d\uff0c\u65b0\u589e\u7528\u6237\u80fd\u6709\u6548\u5730\u8fdb\u884c\u8d44\u6e90\u4e0e\u6743\u9650\u7684\u5408\u7406\u5206\u914d\u3002\u800cpasswd\u547d\u4ee4\uff0c\u5219\u662f\u7528\u6765\u8bbe\u5b9a\u7528\u6237\u5bc6\u7801\u7684\u5173\u952e\u5de5\u5177\u3002\u8bbe\u7f6e\u5bc6\u7801\u65f6\uff0c\u52a1\u5fc5\u4fdd\u8bc1\u5176\u5b89\u5168\u6027\u3002<\/p>\n

\u7ba1\u7406\u7528\u6237\u65f6\uff0c\u9700\u7559\u610f\u7528\u6237\u7fa4\u7ec4\u95f4\u7684\u5173\u8054\u3002\u4f8b\u5982\uff0c\u4f7f\u7528groupadd\u547d\u4ee4\u53ef\u65b0\u5efa\u7fa4\u7ec4linux \u865a\u62df\u4e3b\u673a\uff0c\u800cusermod\u547d\u4ee4\u5219\u53ef\u8c03\u6574\u7528\u6237\u7684\u7fa4\u7ec4\u5f52\u5c5e\u3002\u6070\u5f53\u5b89\u6392\u7528\u6237\u4e0e\u7fa4\u7ec4\u7684\u5173\u7cfb\uff0c\u80fd\u663e\u8457\u63d0\u9ad8\u7cfb\u7edf\u8d44\u6e90\u7684\u7ba1\u7406\u6548\u7387\u3002<\/p>\n

\u7cfb\u7edf\u76d1\u89c6\u547d\u4ee4<\/b><\/p>\n

top\u547d\u4ee4\u662f\u7cfb\u7edf\u76d1\u63a7\u4e2d\u7684\u5e38\u7528\u5de5\u5177\u3002\u5b83\u80fd\u5b9e\u65f6\u5c55\u793aCPU\u4f7f\u7528\u7387\u3001\u5185\u5b58\u5360\u7528\u7b49\u5173\u952e\u4fe1\u606f\u3002\u8fd9\u4e9b\u4fe1\u606f\u80fd\u5e2e\u52a9\u6211\u4eec\u8fc5\u901f\u53d1\u73b0\u7cfb\u7edf\u8d44\u6e90\u74f6\u9888\u3002\u53e6\u5916\uff0cdf\u547d\u4ee4\u53ef\u7528\u6765\u67e5\u770b\u78c1\u76d8\u4f7f\u7528\u72b6\u51b5\uff0c\u4e86\u89e3\u54ea\u4e9b\u5206\u533a\u7a7a\u95f4\u4e0d\u8db3redhat linux \u4e0b\u8f7d\uff0c\u9700\u8fdb\u884c\u6e05\u7406\u6216\u6269\u5bb9\u3002<\/p>\n

\u7cfb\u7edf\u76d1\u89c6\u5bf9\u4e8e\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u8fd0\u884c\u81f3\u5173\u91cd\u8981\u3002\u82e5\u7cfb\u7edf\u6301\u7eed\u8fd0\u4f5c\uff0c\u4e0d\u5b9e\u65bd\u76d1\u89c6\u4fbf\u96be\u4ee5\u5bdf\u89c9\u8d44\u6e90\u662f\u5426\u8017\u5c3d\u6216\u88ab\u5f02\u5e38\u5360\u7528\u3002\u5b9a\u671f\u8fd0\u7528\u8fd9\u4e9b\u76d1\u89c6\u6307\u4ee4\uff0c\u53ef\u4ee5\u9884\u5148\u9632\u8303\u6f5c\u5728\u95ee\u9898\u3002<\/p>\n

\u7f51\u7edc\u914d\u7f6e\u547d\u4ee4<\/b><\/p>\n

linux\u57fa\u7840\u547d\u4ee4_linux\u57fa\u7840\u547d\u4ee4100\u4e2a_linux\u57fa\u7840\u547d\u4ee4\u5927\u5168<\/p>\n

ifconfig\u547d\u4ee4\uff0c\u8fd9\u662f\u7528\u6765\u67e5\u770b\u548c\u8c03\u6574\u7f51\u7edc\u63a5\u53e3\u7684\u5e38\u7528\u5de5\u5177\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u67e5\u770b\u7f51\u5361\u7684IP\u5730\u5740\u3001MAC\u5730\u5740\u7b49\u8be6\u7ec6\u4fe1\u606f\uff0c\u8fd8\u80fd\u8fdb\u884c\u4e34\u65f6\u7684\u7f51\u7edc\u914d\u7f6e\u8c03\u6574\u3002\u81f3\u4e8eping\u547d\u4ee4\uff0c\u5b83\u7684\u4f5c\u7528\u5219\u662f\u6d4b\u8bd5\u7f51\u7edc\u8fde\u63a5\u3002<\/p>\n

\u9047\u5230\u7f51\u7edc\u6545\u969c\uff0c\u8fd9\u4e9b\u6307\u4ee4\u582a\u79f0\u89e3\u51b3\u95ee\u9898\u7684\u6cd5\u5b9d\u3002\u4ee5\u7f51\u7edc\u65e0\u6cd5\u8fde\u63a5\u4e3a\u4f8b\uff0c\u6211\u4eec\u9996\u5148\u53ef\u4ee5\u501f\u52a9ping\u547d\u4ee4\u6765\u68c0\u6d4b\u76ee\u6807\u5730\u5740\u662f\u5426\u80fd\u591f\u6210\u529f\u8fde\u63a5\u3002\u968f\u540e\uff0c\u4ece\u8fd9\u4e9b\u57fa\u7840\u547d\u4ee4\u5165\u624b\uff0c\u9010\u6b65\u6df1\u5165\u6316\u6398\u5e76\u89e3\u51b3\u7f51\u7edc\u914d\u7f6e\u7684\u590d\u6742\u95ee\u9898\u3002<\/p>\n

\u4f60\u89c9\u5f97\u5728Linux\u7684\u57fa\u672c\u6307\u4ee4\u91cc\uff0c\u54ea\u4e00\u6761\u6700\u4e3a\u5b9e\u7528\uff1f\u4e0d\u59a8\u5728\u8bc4\u8bba\u533a\u544a\u8bc9\u6211\u4eec\u4f60\u7684\u770b\u6cd5\u3002\u540c\u65f6\uff0c\u4e5f\u6b22\u8fce\u4f60\u4e3a\u8fd9\u7bc7\u6587\u7ae0\u70b9\u8d5e\u548c\u8f6c\u53d1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6587\u4ef6\u64cd\u4f5c\u662f\u4e00\u9879\u57fa\u672c\u4efb\u52a1\u3002Linux\u7cfb\u7edf\u91cd\u89c6\u6743\u9650\u7ba1\u7406\uff0c\u5176\u4e2dchmod\u547d\u4ee4\u662f\u8c03\u6574\u6587\u4ef6\u6216\u76ee\u5f55\u6743\u9650\u7684\u5173\u952e\u5de5\u5177\u3002\u6b64\u5916\uff0cchown\u547d\u4ee4\u8fd8\u80fd\u8c03\u6574\u6587\u4ef6\u7684\u6240\u6709\u6743\uff0c\u8fd9\u5728\u591a\u7528\u6237\u5171\u4eab\u7cfb\u7edf\u548c\u7cfb\u7edf\u7ba1\u7406\u4e2d\u5c24\u4e3a\u5b9e\u7528\u3002\u56e0\u6b64\uff0c\u6b63\u786e\u8fd0\u7528\u6743\u9650\u7ba1\u7406\u6307\u4ee4\uff0c\u662f\u786e\u4fdd\u7cfb\u7edf\u5b89\u5168\u7a33\u5b9a\u8fd0\u884c\u7684\u5173\u952e\u3002<\/p>\n","protected":false},"author":1,"featured_media":294011,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[1001,3913,1677,3473,1397],"class_list":["post-294010","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-lxt","tag-jcml","tag-wjgl","tag-qxgl","tag-jcgl"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294010","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=294010"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294010\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/294011"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=294010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=294010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=294010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}