{"id":932,"date":"2020-08-22T19:01:53","date_gmt":"2020-08-22T11:01:53","guid":{"rendered":"https:\/\/blog.kingsbestone.com\/?p=932"},"modified":"2021-02-06T17:56:34","modified_gmt":"2021-02-06T09:56:34","slug":"centos7-%e6%8c%82%e8%bd%bd%e6%96%b0%e7%a9%ba%e9%97%b4","status":"publish","type":"post","link":"https:\/\/blog.kingsbestone.com\/?p=932","title":{"rendered":"Centos7 \u6302\u8f7d\u65b0\u78c1\u76d8\u7a7a\u95f4"},"content":{"rendered":"<h1><span style=\"font-family: 'comic sans ms', sans-serif;\">\u524d\u8a00\uff1a<\/span><\/h1>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u65b0\u7a7a\u95f4\u6302\u8f7d\u5230\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u9700\u8981\u4e09\u6b65\uff1a<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u5206\u533a\uff08\u628a\u78c1\u76d8\u5206\u6210\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u533a\u5757\uff09<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u683c\u5f0f\u5316\uff08\u628a\u5206\u597d\u7684\u533a\u5757\uff0c\u5236\u4f5c\u6210\u53ef\u4ee5\u4f7f\u7528\u7684\u8868\u683c\uff09<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u6302\u8f7d\uff08\u628a\u53ef\u7528\u7a7a\u95f4\u6302\u8f7d\u5230\u9700\u8981\u7684\u5730\u65b9\uff09<\/span><\/li>\n<\/ul>\n<h1><span style=\"font-family: 'comic sans ms', sans-serif;\">\u6b63\u6587\uff1a<\/span><\/h1>\n<h2><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4e00\u3001\u5206\u533a<\/span><\/h2>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-1\u3001\u67e5\u770b\u5206\u533a\u5217\u8868\uff1a<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">fdisk -l<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-2\u3001\u5236\u4f5c\u5206\u533a<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">fdisk -u \/dev\/sdb<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">Tip\uff1a\/dev\/sdb\u662f\u78c1\u76d8\u76ee\u5f55\uff0c\u6ce8\u610f\u9009\u62e9\u6b63\u786e\u3002<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u8f93\u5165\u4ee5\u4e0a\u547d\u4ee4\u540e\u4f1a\u8fdb\u5165\u4e00\u4e2a\u4eba\u673a\u4ea4\u4e92\u754c\u9762\uff0c\u8f93\u5165m\u53ef\u4ee5\u67e5\u770b\u5e2e\u52a9<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u65b0\u5efa\u7acb\u5206\u533a\u9009\u62e9\uff1an<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u7136\u540e\u9009\u62e9\u5efa\u7acb\u4e3b\u5206\u533a\uff1ap<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u5206\u533a\u7f16\u53f7\uff1a\u9ed8\u8ba4\u56de\u8f66\u5373\u53ef<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u5206\u533a\u8d77\u59cb\u4f4d\u7f6e\uff1a\u9ed8\u8ba4\u56de\u8f66\u5373\u53ef<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u5206\u533a\u7ed3\u675f\u4f4d\u7f6e\uff1a\u9ed8\u8ba4\u56de\u8f66\u5373\u53ef<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u5199\u5165\u5206\u533a\u8868\u4fdd\u5b58\u5e76\u9000\u51fa\uff1aw<\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">1-3\u3001\u5236\u4f5c\u5b8c\u6bd5\u4fdd\u5b58\u5e76\u9000\u51fa<\/span><\/p>\n<h2><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4e8c\u3001\u683c\u5f0f\u5316<\/span><\/h2>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">2-1\u3001\u5c06\u5206\u533a\u683c\u5f0f\u5316\u4e3aEXT4\uff1a<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">mkfs.ext4 \/dev\/sdb1<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">Tip\uff1a\/dev\/sdb1\u4e3a\u4e0a\u9762\u5206\u533a\u5b8c\u6bd5\u540e\u7684\u76ee\u5f55\uff0c\u6ce8\u610f\u9009\u62e9\u6b63\u786e\u3002<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">ext4\uff1a\u4e3a\u4e00\u79cd\u6587\u4ef6\u7cfb\u7edf\u683c\u5f0f<\/span><\/li>\n<\/ul>\n<h2><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4e09\u3001\u6302\u8f7d<\/span><\/h2>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">3-1\u3001\u65b0\u5efa\u7acb\u4e00\u4e2a\u76ee\u5f55\uff0c\u5e76\u6302\u8f7d\u5230\u6b64\u76ee\u5f55\uff1a<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">mkdir \/new\r\nmount \/dev\/sdb1 \/new<\/pre>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u65b0\u5efa\u7acb\u76ee\u5f55\u4e3a\uff1a\/new<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u5c06\/dev\/sdb1\u7a7a\u95f4\u6302\u8f7d\u5230\/new\u76ee\u5f55\u4e0b<\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">3-2\u3001\u6b64\u65f6\u5df2\u7ecf\u5b8c\u6210\u6302\u8f7d\uff0c\u53ef\u4ee5\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u6302\u8f7d\u60c5\u51b5\uff1a<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">df -h<\/pre>\n<h1><span style=\"font-family: 'comic sans ms', sans-serif;\">\u56db\u3001\u5f00\u673a\u81ea\u52a8\u6302\u8f7d<\/span><\/h1>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">4-1\u3001\u7f16\u8f91\u6587\u4ef6\u7cfb\u7edf\u4fe1\u606f\u6587\u4ef6\uff1a<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">vi \/etc\/fstab<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">4-2\u3001\u5728\u6700\u540e\u4e00\u884c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">\/dev\/sdb1                               \/new                    ext4    defaults        0 0<\/pre>\n<h1><span style=\"font-family: 'comic sans ms', sans-serif;\">\u7ed3\u5c3e\uff1a<\/span><\/h1>\n<h1 style=\"text-align: center;\"><span style=\"font-family: 'comic sans ms', sans-serif;\">\u539f\u521b\u6587\u7ae0<\/span><\/h1>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00\uff1a \u65b0\u7a7a\u95f4\u6302\u8f7d\u5230\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u9700\u8981\u4e09\u6b65\uff1a \u5206\u533a\uff08\u628a\u78c1\u76d8\u5206\u6210\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u533a\u5757\uff09 \u683c\u5f0f\u5316\uff08\u628a\u5206\u597d\u7684\u533a\u5757\uff0c\u5236\u4f5c\u6210\u53ef\u4ee5\u4f7f\u7528\u7684\u8868\u683c\uff09 \u6302\u8f7d\uff08\u628a\u53ef\u7528\u7a7a\u95f4\u6302\u8f7d\u5230\u9700\u8981\u7684\u5730\u65b9\uff09 \u6b63\u6587\uff1a \u4e00\u3001\u5206\u533a 1-1\u3001\u67e5\u770b\u5206\u533a\u5217\u8868\uff1a fdisk -l 1-2\u3001\u5236\u4f5c\u5206\u533a fdisk -u \/dev\/sdb Tip\uff1a\/dev\/sdb\u662f\u78c1\u76d8\u76ee\u5f55\uff0c\u6ce8\u610f\u9009\u62e9 &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Centos7 \u6302\u8f7d\u65b0\u78c1\u76d8\u7a7a\u95f4\" class=\"read-more button\" href=\"https:\/\/blog.kingsbestone.com\/?p=932#more-932\" aria-label=\"\u66f4\u591a Centos7 \u6302\u8f7d\u65b0\u78c1\u76d8\u7a7a\u95f4\">\u67e5\u770b\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":212,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts\/932"}],"collection":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=932"}],"version-history":[{"count":12,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts\/932\/revisions"}],"predecessor-version":[{"id":970,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts\/932\/revisions\/970"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/media\/212"}],"wp:attachment":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}