{"id":274845,"date":"2023-06-13T04:02:23","date_gmt":"2023-06-12T20:02:23","guid":{"rendered":"https:\/\/lrxjmw.cn\/ldysjycpfqgs.html"},"modified":"2023-06-13T04:02:23","modified_gmt":"2023-06-12T20:02:23","slug":"ldysjycpfqgs","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ldysjycpfqgs.html","title":{"rendered":"Linux\u7684\u538b\u7f29\u89e3\u538b\u3001\u78c1\u76d8\u5206\u533a\u3001\u683c\u5f0f\u5316\u3001\u8fdb\u7a0b\u7ba1\u7406\u547d\u4ee4"},"content":{"rendered":"

\u76ee\u5f55<\/p>\n

\u5b66\u4e60Linux<\/a>\u7684\u538b\u7f29\u89e3\u538b\u3001\u78c1\u76d8\u5206\u533a\u3001\u683c\u5f0f\u5316\u3001\u6302\u8f7d\u3001\u8fdb\u7a0b\u7ba1\u7406\u547d\u4ee4<\/a>\u3001\u670d\u52a1\u7ba1\u7406\u3001RPM\u8f6f\u4ef6\u5305\u7ba1\u7406\u3001YUM\u8f6f\u4ef6\u5305\u7ba1\u7406\u3001\u6587\u672c\u7f16\u8f91\u5668<\/p>\n

\u4e00\u3001\u538b\u7f29\u3001\u89e3\u538b\u3001\u6253\u5305tar<\/p>\n

tar\u547d\u4ee4\u672c\u662f\u7528\u4e8e\u5907\u4efd\u6587\u4ef6\u7684\u547d\u4ee4\uff0c\u8be5\u547d\u4ee4\u53ef\u4ee5\u6253\u5305\u591a\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\uff0c\u4ea6\u53ef\u5c06\u6253\u5305\u7684\u6587\u4ef6\u4e0e\u76ee\u5f55\u4ece\u5305\u4e2d\u8fd8\u539f<\/p>\n

\u547d\u4ee4\u7684\u53e5\u578b\u683c\u5f0f\uff1atar\u9009\u9879\u5305\u540d[\u53c2\u6570]<\/p>\n

\u8be5\u547d\u4ee4\u5e38\u7528\u7684\u9009\u9879\uff1a<\/p>\n

tar\u547d\u4ee4\u7684\u5e38\u7528\u9009\u9879\u9009\u9879\u8bf4\u660e<\/p>\n

-c<\/p>\n

\u521b\u5efa\u65b0\u7684\u5907\u4efd\u6587\u4ef6<\/p>\n

-x<\/p>\n

\u4ece\u5907\u4efd\u6587\u4ef6\u4e2d\u8fd8\u539f\u6587\u4ef6<\/p>\n

-v<\/p>\n

\u663e\u793a\u547d\u4ee4\u6267\u884c\u8fc7\u7a0b<\/p>\n

-f<\/p>\n

\u6307\u5b9a\u5907\u4efd\u6587\u4ef6<\/p>\n

-z<\/p>\n

\u901a\u6253\u5305\u5b8c\u6210\u540e\u4f7f\u7528gzip\u547d\u4ee4\u5c06\u6253\u5305\u538b\u7f29<\/p>\n

-j<\/p>\n

\u6253\u5305\u5b8c\u6210\u540e\u4f7f\u7528bzip2\u547d\u4ee4\u5c06\u5305\u538b\u7f29<\/p>\n

-p<\/p>\n

\u4fdd\u7559\u5305\u4e2d\u6587\u4ef6\u539f\u5148\u7684\u5c5e\u6027<\/p>\n

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

\u5c06\u76ee\u5f55test\u4e0b\u7684\u6587\u4ef6\u6253\u5305-cvf<\/p>\n

\u5c06\u76ee\u5f55test\u4e0b\u7684\u6587\u4ef6\u6253\u5305\uff0c\u5e76\u4ee5gzip\u547d\u4ee4\u5c06\u5305\u538b\u7f29-zcvf<\/p>\n

\u538b\u7f29-zcvf<\/p>\n

\u89e3\u538b-zxvf<\/p>\n

\u4e8c\u3001\u78c1\u76d8\u5206\u533a1\u3001MBR\u5206\u533a<\/p>\n

\u521d\u671fc\u76d8\u91c7\u7528MBR\u5f62\u5f0f\u8fdb\u884c\u5206\u533a\u3002MBR\u5168\u79f0MasterBootRecord\uff0c\u5373\u4e3b\u5f15\u5bfc\u8bb0\u5f55\u3002c\u76d8\u4e2d\u7684\u7a7a\u95f4\u4ee5\u78c1\u9053\u4e3a\u5355\u4f4d\u91c7\u7528MBR\u5f62\u5f0f\u5206\u533a\u7684c\u76d8\u7b2c\u4e00\u4e2a\u78c1\u9053\u4e2d\u5305\u542b\u4e00\u4e2a64B\u7684c\u76d8\u5206\u533a\u8868\uff0c\u6bcf\u4f4d\u5206\u533a\u4fe1\u606f\u5360\u752816B\uff0c\u56e0\u800c\u5206\u533a\u8868\u6700\u591a\u53ef\u50a8\u5b584\u9879\u5206\u533a\u4fe1\u606f\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0cc\u76d8\u53ea\u80fd\u754c\u5b9a\u51fa4\u4e2a\u4e3b\u5206\u533a\u3002\u867d\u71364\u4e2a\u5206\u533a\u5bb9\u91cf\u603b\u548c\u5927\u4e8ec\u76d8\u603b\u5bb9\u91cf\uff0c\u4e5f\u96be\u4ee5\u518d\u4e3a\u5269\u4f59\u7a7a\u95f4\u5206\u533a\u3002\u793a\u4f8bMBR\u5206\u533a<\/p>\n

c\u76d8sda<\/p>\n

MBR\u5206\u533a<\/p>\n

sda1<\/p>\n

sda2<\/p>\n

sda3<\/p>\n

sda4<\/p>\n

\u5269\u4f59\u7a7a\u95f4<\/p>\n

\u4f46\u4e8b\u5b9e\u4e0a\uff0cWindows\u4e2d\u53ef\u4ee5\u6709\u4e0d\u6b624\u4e2a\u5206\u533a\uff0c\u8fd9\u662f\u7531\u4e8e\uff0cMBR\u5bb9\u8bb8\u5728\u57fa\u7840\u5206\u533a\u4e2d\u8bbe\u7f6e\u4e00\u4e2a\u6269\u5145\u5206\u533a\uff0c\u800c\u6269\u5145\u5206\u533a\u53c8\u53ef\u4ee5\u754c\u5b9a\u4e3a\u591a\u4e2a\u903b\u8f91\u5206\u533a\u3002<\/p>\n

\u4e00\u4e2a\u5305\u542b\u903b\u8f91\u5206\u533a\u7684c\u76d8\u7ed3\u6784\uff0c\u793a\u4f8b\u903b\u8f91\u5206\u533a<\/p>\n

\u903b\u8f91\u5206\u533a<\/p>\n

sda1<\/p>\n

sda2<\/p>\n

\u6269\u5145\u5206\u533asda3<\/p>\n

\u903b\u8f91\u5206\u533asda5<\/p>\n

\u903b\u8f91\u5206\u533asda6<\/p>\n

...<\/p>\n

\u5728MBR\u5206\u533a\u4e2d\uff0c\u7f16\u53f71\uff5e4\u88ab\u9884\u7559\u7ed9\u57fa\u7840\u5206\u533a\uff0c\u6240\u4ee5\u903b\u8f91\u5206\u533a\u7684\u7f16\u53f7\u4e00\u5b9a\u4ece5\u5f00\u59cb(\u867d\u7136\u57fa\u7840\u5206\u533a\u6570\u76ee\u4e0d\u8db34\u4e2a)\u3002\u6269\u5145\u5206\u533a\u4e5f\u6709\u81ea\u5df1\u7684c\u76d8\u5206\u533a\u8868\uff0c\u6269\u5145\u5206\u533a\u7684c\u76d8\u5206\u533a\u8868\u50a8\u5b58\u4e0e\u6269\u5145\u5206\u533a\u7684\u7b2c\u4e00\u78c1\u9053\u4e2d\u3002<\/p>\n

\u4f7f\u7528MBR\u5f62\u5f0f\u521b\u5efa\u7684\u5206\u533a\uff0c\u53ef\u901a\u8fc7fdisk\u547d\u4ee4\u8fdb\u884c\u7ba1\u7406\u3002<\/p>\n

fdisk\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u7cfb\u7edf<\/a>\u4e2dc\u76d8\u7684\u5206\u533a\u60c5\u51b5<\/p>\n

\u547d\u4ee4\u683c\u5f0f\uff1afdisk[\u9009\u9879][c\u76d8]<\/p>\n

\u8be5\u547d\u4ee4\u5e38\u7528\u7684\u9009\u9879\uff1a<\/p>\n

fdisk\u547d\u4ee4\u7684\u5e38\u7528\u9009\u9879\u9009\u9879\u8bf4\u660e<\/p>\n

-l<\/p>\n

\u8be6\u5c3d\u663e\u793ac\u76d8\u53ca\u5176\u5206\u533a\u4fe1\u606f<\/p>\n

-s<\/p>\n

\u663e\u793ac\u76d8\u5206\u533a\u5bb9\u91cf\uff08\u5355\u4f4d\u4e3ablock\uff09<\/p>\n

-b<\/p>\n

\u8bbe\u7f6e\u78c1\u9053\u5927\u5c0f\uff08\u78c1\u9053\u5927\u5c0f\u53d6\u503c512\u30011024\u30012048\u62164096\uff0c\u5355\u4f4d\u4e3aMB\uff09<\/p>\n

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

\u5148\u5728\u865a\u62df\u673a\u91cc\u6dfb\u52a0\u4e00\u4e2a\u65b0c\u76d8\uff0c\u91cd\u542f\u4e4b\u540e\u8054\u63a5<\/p>\n

\u590d\u5370c\u76d8\/dev\/sdb\u7684\u8be6\u5c3d\u4fe1\u606f<\/p>\n

\u4ee5\u4e0a\u64cd\u4f5c\u53ea\u80fd\u5b9e\u73b0c\u76d8\u5206\u533a\u7684\u7b80\u5355\u7ba1\u7406\uff0c\u82e5\u8981\u4f7f\u7528fdisk\u547d\u4ee4\u521b\u5efac\u76d8\u5206\u533a\uff0c\u987b\u8981\u5728\u7ec8\u7aef\u8f93\u5165\u201cfdiskc\u76d8\u201d\u547d\u4ee4\u6b65\u5165fdisk\u7684\u4ea4\u4e92\u754c\u9762\u3002\u5728\u7ec8\u7aef\u8f93\u5165\u201cfdiskc\u76d8\u201d\uff0c\u5c06\u4f1a\u6b65\u5165\u5982\u4e0b\u6240\u793a\u7684\u754c\u9762<\/p>\n

\u5728\u4ee5\u4e0a\u754c\u9762\u8f93\u5165m\u53ef\u83b7\u53d6\u5e2e\u52a9\u4fe1\u606f\uff0c\u5e2e\u52a9\u4fe1\u606f\u4e2d\u5305\u542b\u6b64\u754c\u9762\u53ef\u6267\u884c\u7684\u547d\u4ee4\u64cd\u4f5c\uff0c\u5177\u4f53\u5982\u4e0b<\/p>\n

\u4e0b\u8fb9\u4ee5\/dev\/sdac\u76d8\u4e3a\u4f8b\u5c55\u793afdisk\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u5f0f<\/p>\n

\uff081\uff09\u67e5\u770bc\u76d8\u4f7f\u7528\u60c5\u51b5<\/p>\n

\u9996\u5148\u4f7f\u7528fdisk\u547d\u4ee4\u67e5\u770b\/dev\/sda\u76ee\u524d\u7684\u5206\u533a\u60c5\u51b5\uff0c\u5982\u4e0b<\/p>\n

\u7531\u4ee5\u4e0a\u7ed3\u679c\u5f97\u6089\u6709\u4e24\u4e2a\u4e3b\u5206\u533a<\/p>\n

\uff082\uff09\u521b\u5efa\u65b0\u5206\u533a<\/p>\n

\u53c2\u8003\u4e0a\u56fe\u7684\u5206\u533a\u7ed3\u6784\u7ee7\u7eed\u4e3a\/dev\/sda\u5206\u533a\u3002\u5bf9\u6bd4\u4e0a\u56fe\u5f53\u524d\/dev\/sda\u7684\u5206\u533a\u60c5\u51b5\u53ef\u77e5\uff0c\u6211\u4eec\u987b\u8981\u521b\u5efa\u4e00\u4e2a\u6269\u5145\u5206\u533a\uff0c\u5e76\u5c06\u6b64\u6269\u5145\u5206\u533a\u754c\u5b9a\u6210\u4e24\u4e2a\u903b\u8f91\u5206\u533a\u3002<\/p>\n

rar linux \u89e3\u538b\u547d\u4ee4_linux\u7cfb\u7edfrar\u89e3\u538b\u547d\u4ee4_linux\u89e3\u538brar\u6587\u4ef6\u547d\u4ee4<\/p>\n

\u521b\u5efa\u4e00\u4e2a\u6269\u5145\u5206\u533a\uff0c\u5e76\u5c06\u6b64\u6269\u5145\u5206\u533a\u754c\u5b9a\u6210\u4e24\u4e2a\u903b\u8f91\u5206\u533a\uff0c\u7ee7\u7eed\u4f7f\u7528fdisk\u547d\u4ee4\uff0c\u6269\u5145\u5206\u533a\u7684\u521b\u5efa\u65b9\u6cd5<\/p>\n

\u521b\u5efa\u4e24\u4e2a\u903b\u8f91\u5206\u533a<\/p>\n

\uff083\uff09\u67e5\u770b\u5206\u533a\u8868<\/p>\n

\u6b64\u65f6\u5206\u533a\u5df2\u5b8c\u6210\uff0c\u53ef\u4ee5\u901a\u8fc7\u952e\u76d8p\u67e5\u770b\u5f53\u524d\u7684\u5206\u533a\u60c5\u51b5\uff0c\u590d\u5370\u7ed3\u679c<\/p>\n

\uff084\uff09\u9000\u51fa<\/p>\n

\u5206\u533a\u5b8c\u6210\u540e\uff0c\u53ef\u4f7f\u7528\u952e\u76d8w\u4fdd\u5b58\u5206\u533a\u800c\u4e14\u9000\u51fa\uff0c\u6216\u4f7f\u7528\u952e\u76d8q\u76f4\u63a5\u9000\u51fa\u4ea4\u4e92\u754c\u9762\uff0c\u4e0d\u4fdd\u5b58\u672c\u6b21\u8bbe\u7f6e\u3002\u4ee5\u4e0a\u64cd\u4f5c\u4ec5\u7528\u4e8e\u5c55\u793afdisk\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u6b64\u5904\u9009\u62e9q\u76f4\u63a5\u9000\u51fa\u3002<\/p>\n

\uff085\uff09\u542f\u7528\u5206\u533a<\/p>\n

\u5728fdisk\u7684\u4ea4\u4e92\u754c\u9762\u66f4\u6539\u5e76\u4fdd\u5b58\u5206\u533a\u4fe1\u606f\u540e\uff0c\u5206\u533a\u4fe1\u606f\u4ecd\u672a\u542f\u7528\u3002\u542f\u7528\u5206\u533a\u4fe1\u606f\u7684\u65b9\u6cd5\u6709\u4e24\u79cd\uff1a\u4e00\u79cd\u662f\u901a\u8fc7\u91cd\u542f\u7cfb\u7edf\u542f\u7528\u5206\u533a\uff0c\u53e6\u4e00\u79cd\u662f\u901a\u8fc7partprobe\u547d\u4ee4\u542f\u7528\u5206\u533a\u3002<\/p>\n

\u8be5\u547d\u4ee4\u542f\u7528\u5206\u533a\u7684\u65b9\u5f0f\uff1apartprobe\/dev\/sda<\/p>\n

\u6ce8\u610f\uff1a<\/p>\n

MBR\u662f\u5e38\u7528\u7684\u5206\u533a\u65b9\u6cd5\uff0c\u4f46\u5b83\u672a\u80fd\u652f\u6301\u8d85\u8fc72TB\u7684c\u76d8\uff0c\u4f7f\u7528\u6b64\u79cd\u65b9\u6cd5\u4e3a\u8d85\u8fc72TB\u5bb9\u91cf\u7684\u786c\u789f\u5206\u533a\u65f6\uff0c\u53ea\u80fd\u4f7f\u75282TB\u7684\u7a7a\u95f4\u3002<\/p>\n

2\u3001GPT\u5206\u533a<\/p>\n

GPT(GUIDPartitionTable\uff0c\u5168\u5c40\u60df\u4e00\u6807\u793a\u5206\u533a\u8868)\u662f\u4e00\u79cd\u8f83\u65b0\u7684\u5206\u533a\u65b9\u6cd5\uff0c\u8fd9\u4e9b\u5206\u533a\u65b9\u6cd5\u514b\u670d\u4e86MBR\u7684\u597d\u591a\u7f3a\u70b9\uff0c\u5b83\u652f\u6301\u8d85\u8fc72TB\u7684c\u76d8\uff0c\u5411\u540e\u517c\u5bb9MBR\u3002\u5728Windows7\u3001Windows8\u7cfb\u7edf\u4e0b\u5018\u82e5\u4f7f\u7528GPT\u5f62\u5f0f\u4e3a\u6570\u636e\u76d8\u5206\u533a\uff0c\u53ef\u76f4\u63a5\u8fdb\u884c\u8f6c\u6362\uff0c\u4f46\u82e5\u679c\u4f7f\u7528GPT\u5f62\u5f0f\u4e3a\u7cfb\u7edf\u76d8\u5206\u533a\uff0c\u5219\u5fc5\u987b\u91c7\u7528\u652f\u6301UEFI\u7684\u663e\u5361\u3002\u636e\u6089\uff0cGPT\u53ea\u652f\u630164\u4f4d\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2d\u53ef\u7528parted\u521b\u5efaGPT\u683c\u5f0f\u7684\u5206\u533a\u3002parted\u662fGNU\u7ec4\u7ec7\u5f00\u53d1\u7684\u4e00\u6b3e\u5f3a\u608d\u7684c\u76d8\u7ba1\u7406\u5de5\u5177\uff0c\u4e0efdisk\u4e0d\u540c\uff0c\u5b83\u65e2\u80fd\u4e3ac\u76d8\u5206\u533alinux\u89e3\u538brar\u6587\u4ef6\u547d\u4ee4<\/strong>\uff0c\u4e5f\u80fd\u8c03\u6574\u5206\u533a\u5927\u5c0f\u3002<\/p>\n

parted\u4e5f\u6709\u547d\u4ee4\u884c\u548c\u4ea4\u4e92\u8fd9\u4e24\u79cd\u6a21\u5f0f\uff0c<\/p>\n

\u547d\u4ee4\u884c\u6a21\u5f0f\u4e0b\u5176\u683c\u5f0f\uff1aparted[\u9009\u9879]\u8bbe\u5907[\u547d\u4ee4]<\/p>\n

\uff081\uff09\u66f4\u6539\u5206\u533a\u8868\u7c7b\u578b<\/p>\n

\u4f7f\u7528parted\u5de5\u5177\u7684mklabel\u547d\u4ee4\u53ef\u4ee5\u66f4\u6539c\u76d8\u5206\u533a\u8868\u683c\u5f0f\uff0c<\/p>\n

\u53e5\u578b\u683c\u5f0f\uff1apartedc\u76d8mklabelgpt<\/p>\n

\u56e0\u4e3a\u6267\u884c\u64cd\u4f5c\u540e\uff0cc\u76d8\u7684\u6570\u636e\u5c06\u4f1a\u9057\u5931\uff0c\u7cfb\u7edf\u4f1a\u7ed9\u8b66\u544a\uff0c\u7528\u6237\u5728\u8f93\u5165\u786e\u8ba4\u4fe1\u606f\u540e\u624d\u80fd\u5b8c\u6210\u4fee\u6539\u3002<\/p>\n

\uff082\uff09\u67e5\u770b\u5206\u533a\u8868\u4fe1\u606f<\/p>\n

\u4f7f\u7528parted\u5de5\u5177\u7684print\u547d\u4ee4\u53ef\u4ee5\u67e5\u770bc\u76d8\u5206\u533a\u8868\u4fe1\u606f\uff0c<\/p>\n

\u53e5\u578b\u683c\u5f0f\uff1apartedc\u76d8print<\/p>\n

\uff083\uff09\u521b\u5efa\u5206\u533a<\/p>\n

\u4f7f\u7528parted\u5de5\u5177\u7684mklabel\u547d\u4ee4\u53ef\u4ee5\u521b\u5efa\u5206\u533a\uff0c<\/p>\n

\u53e5\u578b\u683c\u5f0f\uff1apartedc\u76d8mkpart\u5206\u533a\u7c7b\u578b\u6587\u4ef6\u7cfb\u7edf\u8d77\u59cb\u7ed3\u675f<\/p>\n

\u4ee5\u4e0a\u683c\u5f0f\u4e2d\u7684\u5206\u533a\u7c7b\u578b\u53ef\u4ee5\u662fprimary\u3001logical\u6216\u5219extended\uff1b\u6587\u4ef6\u7c7b\u578b\u53ef\u4ee5\u662ffat16\u3001fat32\u3001ext2\u3001linux-swap\u3001reiserfs\u7b49\u3002\u547d\u4ee4\u4e2d\u7684\u201c\u8d77\u59cb\u201d\u548c\u201c\u7ed3\u675f\u201d\u4e24\u4e2a\u53c2\u6570\u7528\u4e8e\u8bbe\u7f6e\u5206\u533a\u7684\u5927\u5c0f\uff0c\u9ed8\u8ba4\u5355\u4f4d\u4e3aMB\u3002<\/p>\n

\uff084\uff09\u5220\u6389\u5206\u533a<\/p>\n

\u4f7f\u7528parted\u5de5\u5177\u7684rm\u547d\u4ee4\u53ef\u4ee5\u5220\u6389\u5206\u533a\uff0c<\/p>\n

\u53e5\u578b\u683c\u5f0f\uff1apartedc\u76d8rm\u5206\u533a\u7f16\u53f7<\/p>\n

\uff085\uff09\u5206\u533a\u590d\u5236<\/p>\n

\u4f7f\u7528parted\u5de5\u5177\u7684cp\u547d\u4ee4\u53ef\u5c06\u4e00\u4e2a\u8bbe\u5907\u4e0a\u7684\u6307\u5b9a\u5206\u533a\u590d\u5236\u5f53\u524d\u8bbe\u5907\u7684\u6307\u5b9a\u5206\u533a\uff0c<\/p>\n

linux\u7cfb\u7edfrar\u89e3\u538b\u547d\u4ee4_rar linux \u89e3\u538b\u547d\u4ee4_linux\u89e3\u538brar\u6587\u4ef6\u547d\u4ee4<\/p>\n

\u53e5\u578b\u683c\u5f0f\uff1apartedc\u76d8cp\u6e90\u8bbe\u5907\u6e90\u5206\u533a\u76ee\u6807\u5206\u533a<\/p>\n

\u4e09\u3001\u683c\u5f0f\u5316<\/p>\n

c\u76d8\u7ed9\u5f85\u50a8\u5b58\u7684\u6570\u636e\u4ee5\u786c\u4ef6\u652f\u6301\uff0c\u4f46c\u76d8\u672c\u8eab\u5e76\u4e0d\u89c4\u8303\u6587\u4ef6\u7684\u50a8\u5b58\u5f62\u5f0f\uff0c\u56e0\u800c\u5728\u4f7f\u7528c\u76d8\u4e4b\u524d\uff0c\u8fd8\u987b\u8981\u89c4\u5b9a\u6587\u4ef6\u5728c\u76d8\u4e2d\u7684\u7ec4\u7ec7\u5f62\u5f0f\uff0c\u5373\u4f4e\u683cc\u76d8\uff0c\u4e3ac\u76d8\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n

\u4f7f\u7528mkfs\u547d\u4ee4\u5b9e\u73b0\u4f4e\u683c\u5206\u533a\u7684\u529f\u80fd<\/p>\n

\u547d\u4ee4\u683c\u5f0f\uff1amkfs[\u9009\u9879][\u53c2\u6570]\u5206\u533a<\/p>\n

mkfs\u547d\u4ee4\u5e38\u7528\u7684\u9009\u9879\u4e3a-t\uff0c\u8be5\u9009\u9879\u7528\u4e8e\u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\uff0c\u82e5\u4e0d\u6307\u5b9a\u6587\u4ef6\u7cfb\u7edf\uff0c\u5219\u5206\u533a\u9ed8\u8ba4\u88ab\u4f4e\u683c\u4e3aext4\u3002<\/p>\n

\u56db\u3001\u6302\u8f7d<\/p>\n

\u5728Windows\u7cfb\u7edf\u4e2d\uff0cc\u76d8\u5206\u533a\u540e\u4fbf\u53ef\u76f4\u63a5\u4f7f\u7528\uff0c\u4f46Linux\u7cfb\u7edf\u7684c\u76d8\u4e0d\u4f46\u987b\u8981\u8fdb\u884c\u5206\u533a\u3001\u683c\u5f0f\u5316\u64cd\u4f5c\uff0c\u8fd8\u987b\u8981\u7ecf\u8fc7\u6302\u8f7d\uff0c\u5c31\u80fd\u88ab\u4f7f\u7528\u3002<\/p>\n

\u6240\u8c13\u6302\u8f7d\uff0c\u662f\u6307\u5c06\u4e00\u4e2a\u76ee\u5f55\u4f5c\u4e3a\u5165\u53e3\uff0c\u628ac\u76d8\u5206\u533a\u4e2d\u7684\u6570\u636e\u653e\u7f6e\u5728\u4ee5\u8be5\u76ee\u5f55\u4e3a\u6839\u8282\u70b9\u7684\u76ee\u5f55\u5173\u7cfb\u6811\u4e2dlinux\u6587\u672c\u7f16\u8f91\u5668\uff0c\u8fd9\u76f8\u5f53\u4e8e\u5c06\u6587\u4ef6\u7cfb\u7edf\u4e0ec\u76d8\u8fdb\u884c\u4e86\u94fe\u63a5\uff0c\u6307\u5b9a\u4e86\u67d0\u4e2a\u5206\u533a\u4e2d\u6587\u4ef6\u7cfb\u7edf\u8bbf\u95ee\u7684\u4f4d\u7f6e\u3002Linux\u7cfb\u7edf\u4e2d\u6839\u76ee\u5f55\u662f\u6574\u4e2ac\u76d8\u8bbf\u95ee\u7684\u57fa\u70b9\uff0c\u56e0\u800c\u6839\u76ee\u5f55\u5fc5\u9700\u8981\u6302\u8f7d\u5230\u67d0\u4e2a\u5206\u533a\u3002Linux\u7cfb\u7edf\u4e2d\u901a\u8fc7mount\u547d\u4ee4\u548cunmount\u547d\u4ee4\u5b9e\u73b0\u5206\u533a\u7684\u6302\u8f7d\u548c\u5378\u8f7d\u3002<\/p>\n

1\u3001\u6302\u8f7d<\/p>\n

Linux\u7cfb\u7edf\u4e2d\u53ef\u4ee5\u4f7f\u7528mount\u547d\u4ee4\u5c06\u67d0\u4e2a\u5206\u533a\u6302\u8f7d\u5230\u76ee\u5f55\uff0c<\/p>\n

mount\u547d\u4ee4\u5e38\u7528\u7684\u683c\u5f0f\uff1amount[\u9009\u9879][\u53c2\u6570]\u8bbe\u5907\u6302\u8f7d\u70b9<\/p>\n

mount\u547d\u4ee4\u5e38\u7528\u7684\u9009\u9879\u6709\u4e24\u4e2a\uff0c\u5206\u522b\u4e3a-t\u548c-o\u3002\u4e0b\u8fb9\u5206\u522b\u4ecb\u7ecd\u8fd9\u4e24\u4e2a\u9009\u9879\u7684\u529f\u80fd\u3002<\/p>\n

\u9009\u9879-t\u7528\u4e8e\u6307\u5b9a\u5f85\u6302\u8f7d\u8bbe\u5907\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\uff0c\u5e38\u89c1\u7684\u7c7b\u578b\u5982\u4e0b\u3002<\/p>\n

Linux\u80fd\u652f\u6301\u5f85\u6302\u8f7d\u8bbe\u5907\u4e2d\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u65f6\uff0c\u8be5\u8bbe\u5907\u80fd\u591f\u88ab\u6210\u529f\u6302\u8f7d\u5230Linux\u7cfb\u7edf\u4e2d\u5e76\u88ab\u8fa8\u8bc6\u3002<\/p>\n

\u9009\u9879-o\u4e3b\u8981\u62ff\u6765\u63cf\u8ff0\u8bbe\u5907\u7684\u6302\u8f7d\u5f62\u5f0f\uff0c\u5e38\u7528\u7684\u6302\u8f7d\u5f62\u5f0f\u5982\u4e0b\u3002<\/p>\n

\u5e38\u7528\u7684\u6302\u8f7d\u5f62\u5f0f\u65b9\u6cd5\u8bf4\u660e<\/p>\n

loop<\/p>\n

\u5c06\u4e00\u4e2a\u6587\u4ef6\u89c6\u4e3a\u786c\u789f\u5206\u533a\u6302\u8f7d\u5230\u7cfb\u7edf<\/p>\n

ro<\/p>\n

read-only\uff0c\u91c7\u7528\u53ea\u8bfb\u7684\u5f62\u5f0f\u6302\u8f7d\u8bbe\u5907\uff08\u5373\u7cfb\u7edf\u53ea\u80fd\u5bf9\u8bbe\u5907\u8fdb\u884c\u8bfb\u64cd\u4f5c<\/p>\n

rw<\/p>\n

\u91c7\u7528\u8bfb\u5199\u7684\u65b9\u6cd5\u6302\u8f7d\u8bbe\u5907<\/p>\n

iocharset<\/p>\n

\u6307\u5b9a\u8bbf\u95ee\u6587\u4ef6\u7cfb\u7edf\u6240\u6709\u7684\u5b57\u7b26\u96c6<\/p>\n

remount<\/p>\n

\u91cd\u65b0\u6302\u8f7d<\/p>\n

mount\u7684\u53c2\u6570\u4e00\u822c\u4e3a\u8bbe\u5907\u6587\u4ef6\u540d\u4e0e\u6302\u8f7d\u70b9\u3002\u8bbe\u5907\u6587\u4ef6\u540d\u5373\u4e3a\u8981\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u5bf9\u5e94\u7684\u8bbe\u5907\u540d\uff1b\u6302\u8f7d\u70b9\u6307\u6302\u8f7d\u70b9\u76ee\u5f55\uff0c\u8bbe\u5907\u5fc5\u987b\u88ab\u6302\u8f7d\u5230\u4e00\u4e2a\u65e9\u5df2\u5b58\u5728\u7684\u76ee\u5f55\u4e0a\uff0c\u5176\u4e2d\u7684\u5185\u5bb9\u80fd\u901a\u8fc7\u76ee\u5f55\u8bbf\u95ee\uff0c\u6302\u8f7d\u7684\u76ee\u5f55\u53ef\u4ee5\u4e0d\u4e3a\u7a7a\uff0c\u4f46\u5c06\u67d0\u4e2a\u8bbe\u5907\u6302\u8f7d\u5230\u8be5\u76ee\u5f55\u540e\uff0c\u76ee\u5f55\u4e2d\u4e4b\u524d\u50a8\u5b58\u7684\u5185\u5bb9\u4e0d\u53ef\u518d\u7528\u3002<\/p>\n

2\u3001\u5378\u8f7d<\/p>\n

\u5f53\u987b\u8981\u6302\u8f7d\u7684\u5206\u533a\u53ea\u662f\u4e00\u4e2a\u8054\u901a\u50a8\u5b58\u8bbe\u5907(\u5982\u8054\u901a\u786c\u789f)\u65f6\uff0c\u8981\u8fdb\u884c\u7684\u5de5\u4f5c\u662f\u5728\u8be5\u8bbe\u5907\u4e0e\u4e3b\u673a\u4e4b\u95f4\u8fdb\u884c\u6587\u4ef6\u4f20\u8f93\uff0c\u8fd9\u4e48\u5728\u6587\u4ef6\u4f20\u8f93\u5b8c\u6bd5\u4ee5\u540e\uff0c\u987b\u8981\u5378\u8f7d\u8be5\u5206\u533a\u3002Linux\u7cfb\u7edf\u4e2d\u5378\u8f7d\u5206\u533a\u7684\u547d\u4ee4\u662fumount\uff0c<\/p>\n

\u8be5\u547d\u4ee4\u7684\u683c\u5f0f\uff1aumount[\u9009\u9879]\u53c2\u6570<\/p>\n

umount\u547d\u4ee4\u7684\u53c2\u6570\u4e00\u822c\u4e3a\u8bbe\u5907\u540d\u4e0e\u6302\u8f7d\u70b9\uff0c\u5373\u5b83\u53ef\u4ee5\u901a\u8fc7\u8bbe\u5907\u540d\u6216\u6302\u8f7d\u70b9\u6765\u5378\u8f7d\u5206<\/p>\n

\u533a\u3002\u82e5\u4ee5\u6302\u8f7d\u70b9\u4e3a\u53c2\u6570\uff0c\u5047\u5b9a\u6302\u8f7d\u70b9\u76ee\u5f55\u4e3a\/mnt\uff0c<\/p>\n

\u5219\u4f7f\u7528\u7684\u547d\u4ee4\uff1aumount\/mnt<\/p>\n

\u4e00\u822c\u4ee5\u6302\u8f7d\u70b9\u4e3a\u53c2\u6570\u5378\u8f7d\u5206\u533a\uff0c\u7531\u4e8e\u4ee5\u8bbe\u5907\u4e3a\u53c2\u6570\u65f6\uff0c\u53ef\u80fd\u4f1a\u56e0\u8bbe\u5907\u6b63\u5fd9\u6216\u96be\u4ee5\u54cd\u5e94\uff0c\u81f4\u4f7f\u5378\u8f7d\u5931\u8d25\u3002\u4e5f\u53ef\u4ee5\u4e3a\u547d\u4ee4\u6dfb\u52a0\u9009\u9879-l\uff0c\u8be5\u9009\u9879\u4ee3\u8868lazymount\u3002\u4f7f\u7528\u8be5\u9009\u9879\u65f6\uff0c\u7cfb\u7edf\u4f1a\u7acb\u5373\u4ece\u6587\u4ef6\u5c42\u6b21\u7ed3\u6784\u4e2d\u5378\u8f7d\u6307\u5b9a\u7684\u8bbe\u5907\uff0c\u4f46\u5728\u7a7a\u95f2\u65f6\u624d\u6d88\u9664\u6587\u4ef6\u7cfb\u7edf\u7684\u6240\u6709\u5f15\u7528\u3002<\/p>\n

\u4e94\u3001\u8fdb\u7a0b\u7ba1\u7406\u547d\u4ee41\u3001ps<\/p>\n

ps\u662fProcessStatus\u7684\u7b80\u5199\u3002\u5728\u547d\u4ee4\u884c\u8f93\u5165ps\u540e\u518d\u56de\u8f66\u952e\u624d\u80fd\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u4e2d\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u3002<\/p>\n

ps\u7684\u547d\u4ee4\u683c\u5f0f\uff1aps[\u9009\u9879][\u53c2\u6570]<\/p>\n

\u6267\u884cps\u547d\u4ee4\u540e\u7ec8\u7aef\u590d\u5370\u7684\u4fe1\u606f\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

\u8f93\u51fa\u4fe1\u606f\u4e2d\u5305\u542b4\u9879\uff1aPID\u8bfb\u8005\u65e9\u5df2\u5f88\u719f\u6089\uff0c\u5c31\u662f\u8fdb\u7a0b\u7684ID\uff1bTTY\u8868\u660e\u542f\u52a8\u8fdb\u7a0b\u7684\u7ec8\u7aef\u673a\uff1bTIME\u8868\u793a\u8fdb\u7a0b\u5230\u76ee\u524d\u4e3a\u6b62\u771f\u6b63\u5360\u7528CPU\u7684\u65f6\u95f4\uff1bCMD\u8868\u793a\u542f\u52a8\u8be5\u8fdb\u7a0b\u7684\u547d\u4ee4\u3002<\/p>\n

\u5b83\u7684\u9009\u9879\u6709\u4e24\u79cd\u98ce\u683c\uff1aSysV\u548cBSD<\/p>\n

BSD\u98ce\u683c\u7684\u5e38\u7528\u9009\u9879\u9009\u9879\u8bf4\u660e<\/p>\n

a<\/p>\n

\u663e\u793a\u5f53\u524d\u7ec8\u7aef\u673a\u4e0b\u7684\u6240\u6709\u8fdb\u7a0b\uff0c\u5305\u62ec\u5176\u4ed6\u7528\u6237\u542f\u52a8\u7684\u8fdb\u7a0b<\/p>\n

u<\/p>\n

\u4ee5\u7528\u6237\u7684\u65b9\u5f0f\uff0c\u663e\u793a\u7cfb\u7edf\u4e2d\u7684\u8fdb\u7a0b<\/p>\n

x<\/p>\n

\u5ffd\u7565\u7ec8\u7aef\u673a\uff0c\u663e\u793a\u6240\u6709\u8fdb\u7a0b<\/p>\n

e<\/p>\n

\u663e\u793a\u6bcf\u4f4d\u8fdb\u7a0b\u4f7f\u7528\u7684\u73af\u5883\u53d8\u91cf<\/p>\n

r<\/p>\n

\u53ea\u5217\u4e3e\u5f53\u524d\u7ec8\u7aef\u673a\u6b63\u5728\u6267\u884c\u7684\u8fdb\u7a0b<\/p>\n

SysV\u98ce\u683c\u7684\u5e38\u7528\u9009\u9879\u9009\u9879\u8bf4\u660e<\/p>\n

-a<\/p>\n

\u663e\u793a\u6240\u6709\u7ec8\u7aef\u673a\u4e2d\u9664\u9636\u6bb5<\/p>\n

-e<\/p>\n

\u663e\u793a\u6240\u6709\u8fdb\u7a0b<\/p>\n

-f<\/p>\n

\u9664\u9ed8\u8ba4\u663e\u793a\u5916\uff0c\u663e\u793aUID\u3001PPID\u3001C\u3001STIME\u9879<\/p>\n

-o<\/p>\n

\u6307\u5b9a\u663e\u793a\u4ec0\u4e48\u6570\u7ec4\uff0c\u6570\u7ec4\u540d\u53ef\u4ee5\u4f7f\u7528\u957f\u683c\u5f0f\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u201c%\u5b57\u7b26\u201d\u7684\u77ed\u683c\u5f0f\u6307\u5b9a\uff0c\u591a\u4e2a\u6570\u7ec4\u540d\u4f7f\u7528\u5192\u53f7\u5206\u9694<\/p>\n

-l<\/p>\n

\u4f7f\u7528\u8be6\u5c3d\u7684\u683c\u5f0f\u663e\u793a\u8fdb\u7a0b\u4fe1\u606f<\/p>\n

2\u3001top<\/p>\n

ps\u547d\u4ee4\u6267\u884c\u540e\uff0c\u4f1a\u663e\u793a\u6267\u884c\u547d\u4ee4\u90a3\u4e00\u523b\u7cfb\u7edf\u4e2d\u8fdb\u7a0b\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u5018\u82e5\u4f7f\u4fe1\u606f\u52a8\u6001\u663e\u793a\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4top\u3002<\/p>\n

top\u7684\u547d\u4ee4\u683c\u5f0f\uff1atop[\u9009\u9879]<\/p>\n

top\u547d\u4ee4\u53ef\u4ee5\u5b9e\u65f6\u89c2\u5bdf\u7cfb\u7edf\u7684\u6574\u4f53\u8fd0\u884c\u60c5\u51b5\uff0c\u9ed8\u8ba4\u65f6\u95f4\u95f4\u9694\u4e3a3slinux \u5220\u9664\u6587\u4ef6\u5939\uff0c\u5373\u6bcf3s\u66f4\u65b0\u4e00\u6b21\u754c\u9762\uff0c\u7c7b\u4f3cWindows\u7cfb\u7edf\u4e2d\u7684\u4efb\u52a1\u7ba1\u7406\u5668\uff0c\u662f\u4e00\u4e2a\u5f88\u5b9e\u7528\u7684\u7cfb\u7edf\u6027\u80fd\u68c0\u6d4b\u5de5\u5177\u3002\u5728\u7ec8\u7aef\u6267\u884ctop\u547d\u4ee4\u540e\u7684\u754c\u9762<\/p>\n

\u56fe\u4e2d\u7b2c\u4e00\u884c\u4e2d\u663e\u793a\u7684\u662ftop\u547d\u4ee4\u7684\u76f8\u5173\u4fe1\u606f\u3002\u7b2c\u4e8c\u884c\u663e\u793a\u4e0e\u8fdb\u7a0b\u76f8\u5173\u7684\u4fe1\u606f\u3002\u7b2c\u4e09\u884c\u663e\u793a\u4e0eCPU\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u82e5\u7cfb\u7edf\u662f\u5355\u6838\u7684\uff0c\u5219\u8fd9\u6761\u4fe1\u606f\u53ea\u6709\u4e00\u884c\uff1b\u82e5\u7cfb\u7edf\u662f\u56db\u6838\u6216\u591a\u6838\u7684\uff0c\u5219\u6bcf\u4f4dCPU\u5c31\u4f1a\u6709\u5bf9\u5e94\u7684\u4fe1\u606f\u3002\u7b2c\u56db\u884c\u663e\u793a\u4e0e\u663e\u5b58\u72b6\u6001\u76f8\u5173\u7684\u4fe1\u606f\u3002\u7b2c\u4e94\u884c\u663e\u793aswap\u4ea4\u6362\u5206\u533a\u7684\u4fe1\u606f\u3002<\/p>\n

\u4ee5\u4e0a\u51e0\u884c\u4fe1\u606f\u7684\u663e\u793a\u6216\u9690\u85cf\u53ef\u4ee5\u901a\u8fc7\u952e\u4f4dl\u3001t\u3001m\u5206\u522b\u63a7\u5236\u3002<\/p>\n

\u56fe\u4e2d\u7b2c\u516d\u884c\u4e3a\u4e00\u4e2a\u7a7a\u884c\uff0c\u7136\u540e\u7ea2\u8272\u80cc\u666f\u884c\u4e3atop\u547d\u4ee4\u9ed8\u8ba4\u663e\u793a\u7684\u8f93\u51fa\u9879\u3002\u952e\u4f4dM\u3001P\u3001T\u5206\u522b\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0a\u67d0\u4e2a\u9009\u9879\u5bf9top\u663e\u793a\u7684\u4fe1\u606f\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n

top\u547d\u4ee4\u4e2d\u7684\u952e\u4f4d\u529f\u80fd\u952e\u4f4d\u8bf4\u660e<\/p>\n

l<\/p>\n

\u63a7\u5236\u662f\u5426\u663e\u793a\u5e73\u5747\u8d1f\u8f7d\u548c\u542f\u52a8\u65f6\u95f4\uff08\u7b2c\u4e00\u884c\uff09<\/p>\n

t<\/p>\n

\u63a7\u5236\u662f\u5426\u663e\u793a\u8fdb\u7a0b\u7edf\u8ba1\u4fe1\u606f\u548cCPU\u72b6\u6001\u4fe1\u606f\uff08\u7b2c\u4e8c\u3001\u4e09\u884c\uff09<\/p>\n

m<\/p>\n

\u63a7\u5236\u662f\u5426\u663e\u793a\u663e\u5b58\u4fe1\u606f\uff08\u7b2c\u56db\u3001\u4e94\u884c\uff09<\/p>\n

M<\/p>\n

\u6309\u7167\u5e38\u9a7b\u663e\u5b58\u96c6RES\u5927\u5c0f\u4e3a\u4e3a\u8fdb\u7a0b\u6392\u5e8f<\/p>\n

P<\/p>\n

\u6309\u7167%CPU\u4e3a\u8fdb\u7a0b\u6392\u5e8f<\/p>\n

T<\/p>\n

\u6309\u7167TIME+\u4e3a\u8fdb\u7a0b\u6392\u5e8f<\/p>\n

r<\/p>\n

\u91cd\u7f6e\u4e00\u4e2a\u8fdb\u7a0b\u7684\u4f18\u5148\u7ea7<\/p>\n

i<\/p>\n

\u5ffd\u89c6\u95f2\u7f6e\u548c\u50f5\u6b7b\u7684\u8fdb\u7a0b<\/p>\n

k<\/p>\n

\u4e2d\u6b62\u4e00\u4e2a\u8fdb\u7a0b<\/p>\n

\u8868\u4e2d\u7684\u952e\u4f4d\u5206\u8fa8\u5927\u5c0f\u5199\u3002\u5f53\u4f7f\u7528\u952e\u4f4dr\u3001k\u65f6\uff0c\u7b2c\u516d\u884c\u4f1a\u7ed9\u51fa\u76f8\u5e94\u7684\u63d0\u793a\uff0c\u5e76\u7b49\u5f85\u8f93\u5165\u3002top\u7684\u68c0\u6d4b\u754c\u9762\u9ed8\u8ba4\u6bcf\u96943s\u5237\u65b0\u4e00\u6b21\uff0c\u8bfb\u8005\u53ef\u4ee5\u4f7f\u7528\u9009\u9879-d\u81ea\u5b9a\u4e49\u5237\u65b0\u95f4\u9694\uff1btop\u663e\u793a\u7684\u5185\u5bb9\u53ea\u6709\u4e00\u5c4f\uff0c\u8d85\u51fa\u4e00\u5c4f\u7684\u8fdb\u7a0b\u672a\u80fd\u67e5\u770b\uff0c\u5018\u82e5\u67e5\u770b\u66f4\u591a\u8fdb\u7a0b\u7684\u72b6\u6001\uff0c\u53ef\u4ee5\u4f7f\u7528\u9009\u9879-b\uff0c\u8be5\u9009\u9879\u4f7f\u7528\u6279\u5904\u7406\u7684\u6a21\u5f0f\u8fdb\u884c\u64cd\u4f5c\uff0c\u4e00\u6b21\u663e\u793a\u4e00\u5c4f\uff0c3s\u6eda\u52a8\u4e00\u6b21\uff1b\u82e5\u53ea\u60f3\u89c2\u5bdf\u67d0\u6bb5\u65f6\u95f4\u5185\u7684\u53d8\u5316\u60c5\u51b5\uff0c\u53ef\u4ee5\u4f7f\u7528\u9009\u9879-n\u6765\u6307\u5b9a\u5faa\u73af\u663e\u793a\u7684\u6b21\u6570\u3002<\/p>\n

3\u3001kill<\/p>\n

kill\u547d\u4ee4\u901a\u5e38\u7528\u4e8e\u7ba1\u7406\u8fdb\u7a0b\uff0c\u5b83\u7684\u5de5\u4f5c\u539f\u7406\u662f\u53d1\u9001\u67d0\u4e2a\u8baf\u53f7\u7ed9\u6307\u5b9a\u8fdb\u7a0b\uff0c\u4ee5\u6539\u53d8\u8fdb\u7a0b\u7684\u72b6\u6001\u3002<\/p>\n

kill\u547d\u4ee4\u683c\u5f0f\uff1akill\u9009\u9879[\u53c2\u6570]<\/p>\n

kill\u547d\u4ee4\u7684\u9009\u9879\u901a\u5e38\u662f\u201c-\u8baf\u53f7\u7f16\u53f7\u201dlinux\u89e3\u538brar\u6587\u4ef6\u547d\u4ee4<\/strong>\uff0c\u53c2\u6570\u901a\u5e38\u662fPID\u3002\u9664\u7ba1\u7406\u8fdb\u7a0b\u5916\uff0ckill\u547d\u4ee4\u4e5f\u53ef\u7528\u4e8e\u67e5\u770b\u7cfb\u7edf\u4e2d\u7684\u8baf\u53f7\u3002\u4f7f\u7528kill\u547d\u4ee4\u7684-l\u9009\u9879\u53ef\u4ee5\u590d\u5370\u7cfb\u7edf\u4e2d\u9884\u8bbe\u7684\u6240\u6709\u8baf\u53f7\uff0c\u56fe\u4e3aCentOS7\u4e2d\u7684\u8baf\u53f7\u5217\u8868\u3002<\/p>\n

\u6700\u5e38\u7528\u7684\u8baf\u53f7\u4e3a9\u53f7\u8baf\u53f7SIGKILL\uff0c\u8be5\u8baf\u53f7\u4e0d\u80fd\u88ab\u5ffd\u89c6\uff0c\u53ef\u4ee5\u65e0\u6761\u4ef6\u4e2d\u6b62\u6307\u5b9a\u8fdb\u7a0b\u3002\u9664SIGKILL\u5916\uff0cLinux\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u8baf\u53f7\u53ca\u5176\u529f\u80fd\u5206\u522b\u5982\u4e0b\u3002<\/p>\n

kill\u547d\u4ee4\u9ed8\u8ba4\u53d1\u900115\u53f7\u8baf\u53f7(SIGTERM)\u4e2d\u6b62\u6307\u5b9a\u8fdb\u7a0b\u6216\u4f5c\u4e1a<\/p>\n

kill\u547d\u4ee4\u7684\u7528\u6cd5\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n

\u4f7f\u7528kill-9\u547d\u4ee4\u5e94\u5f53\u8c28\u614e\uff0c\u4ec5\u5728\u5fc5\u8981\u60c5\u51b5\u4e0b\u4f7f\u7528\u3002\u5728\u4f7f\u7528kill-9\u547d\u4ee4\u65f6\uff0c\u987b\u8981\u786e\u4fdd\u7ed3\u675f\u8fdb\u7a0b\u7684\u8fdb\u7a0b\u53f7\u548c\u6743\u9650\u662f\u6b63\u786e\u7684\uff0c\u4f46\u662f\u5728\u7ed3\u675f\u8fdb\u7a0b\u4e4b\u524d\u6700\u597d\u5148\u5c1d\u8bd5\u53d1\u9001SIGTERM\u8baf\u53f7\uff0c\u8ba9\u8fdb\u7a0b\u81ea\u884c\u7ed3\u675f\u3002\u53ea\u6709\u5728SIGTERM\u8baf\u53f7\u672a\u80fd\u7ed3\u675f\u8fdb\u7a0b\u65f6\uff0c\u624d\u5e94\u5f53\u4f7f\u7528kill-9\u547d\u4ee4\u3002\u53e6\u5916\uff0c\u5bf9\u4e8e\u4e2a\u522b\u8fdb\u7a0b\uff0c\u5982\u6570\u636e\u5e93\u670d\u52a1\u7b49\uff0c\u4f7f\u7528kill-9\u547d\u4ee4\u53ef\u80fd\u4f1a\u9020\u6210\u6570\u636e\u53d7\u635f\u6216\u5176\u4ed6\u95ee\u9898\uff0c\u56e0\u800c\u5728\u4f7f\u7528\u65f6\u987b\u8981\u975e\u5e38\u5f53\u5fc3\u3002<\/p>\n

\u516d\u3001\u670d\u52a1\u7ba1\u7406<\/p>\n

systemctl\u547d\u4ee4\u5b9e\u9645\u4e0a\u662fservice\u548cchkconfig\u547d\u4ee4\u7684\u7ec4\u5408\uff0c<\/p>\n

\u547d\u4ee4\u7684\u683c\u5f0f\uff1asystemctl\u529f\u80fd\u670d\u52a1\u540d\u79f0<\/p>\n

systemctl\u547d\u4ee4\u529f\u80fd\u7684\u57fa\u7840\u53d6\u503c\u4e0e\u542b\u610f\u5982\u4e0b<\/p>\n

Linux\u7cfb\u7edf\u4e2d\u5e38\u4f7f\u7528systemctl\u547d\u4ee4\u7ba1\u7406\u7684\u670d\u52a1\u5982\u4e0b<\/p>\n

\u670d\u52a1\u540d\u79f0\u8bf4\u660e<\/p>\n

dovecot<\/p>\n

\u7535\u90ae\u670d\u52a1\u5668\u4e2dPOP3\/IMAP\u670d\u52a1\u7684\u5b88\u62a4\u8fdb\u7a0b\uff0c\u4e3b\u8981\u7528\u4e8e\u7f34\u7eb3\u7535\u90ae<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5b66\u4e60Linux\u7684\u538b\u7f29\u89e3\u538b\u3001\u78c1\u76d8\u5206\u533a\u3001\u683c\u5f0f\u5316\u3001\u6302\u8f7d\u3001\u8fdb\u7a0b\u7ba1\u7406\u547d\u4ee4\u3001\u670d\u52a1\u7ba1\u7406\u3001RPM\u8f6f\u4ef6\u5305\u7ba1\u7406\u3001YUM\u8f6f\u4ef6\u5305\u7ba1\u7406\u3001\u6587\u672c\u7f16\u8f91\u5668fdisk\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u4e2d\u78c1\u76d8\u7684\u5206\u533a\u60c5\u51b5\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u78c1\u76d8\u5206\u533a\u540e\u4fbf\u53ef\u76f4\u63a5\u4f7f\u7528\uff0c\u4f46Linux\u7cfb\u7edf\u7684\u78c1\u76d8\u4e0d\u4f46\u9700\u8981\u8fdb\u884c\u5206\u533a\u3001\u683c\u5f0f\u5316\u64cd\u4f5c\uff0c\u8fd8\u9700\u8981\u7ecf\u8fc7\u6302\u8f7d\uff0c\u624d\u80fd\u88ab\u4f7f\u7528\u3002<\/p>\n","protected":false},"author":1,"featured_media":274846,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-274845","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\/274845","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=274845"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/274845\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/274846"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=274845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=274845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=274845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}