{"id":3489,"date":"2023-02-21T14:44:53","date_gmt":"2023-02-21T06:44:53","guid":{"rendered":"https:\/\/km94.com\/?p=3489"},"modified":"2023-02-21T14:44:53","modified_gmt":"2023-02-21T06:44:53","slug":"vultr%e6%95%99%e7%a8%8b%ef%bc%9a%e5%a6%82%e4%bd%95%e5%9c%a8almalinux%e4%b8%8a%e9%87%8d%e7%bd%aeroot%e5%af%86%e7%a0%81","status":"publish","type":"post","link":"https:\/\/dy208.cn\/index.php\/2023\/02\/21\/vultr%e6%95%99%e7%a8%8b%ef%bc%9a%e5%a6%82%e4%bd%95%e5%9c%a8almalinux%e4%b8%8a%e9%87%8d%e7%bd%aeroot%e5%af%86%e7%a0%81\/","title":{"rendered":"Vultr\u6559\u7a0b\uff1a\u5982\u4f55\u5728AlmaLinux\u4e0a\u91cd\u7f6eroot\u5bc6\u7801"},"content":{"rendered":"<p>Vultr\u6d77\u5916\u4e91\u670d\u52a1\u5668\u652f\u6301\u6309\u5c0f\u65f6\u8ba1\u8d39\uff0c\u914d\u7f6e\u4ea7\u54c1\u4e30\u5bcc\uff0c\u6709\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\u9009\u9879\uff0c\u5305\u62ecWindows\u548cLinux\u53d1\u884c\u7248\u3002\u670d\u52a1\u5668\u5f00\u901a\u540e\uff0c\u6211\u4eec\u53ef\u901a\u8fc7\u5176root\u8d26\u6237\u767b\u5f55\u5b9e\u4f8b\uff0c\u5982\u679c\u4e0d\u5c0f\u5fc3\u5fd8\u8bb0\u4e86root\u8d26\u6237\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u91cd\u7f6e\u6839\u5bc6\u7801\uff0c\u672c\u6587\u4ee5Vultr AlmaLinux\u670d\u52a1\u5668\u4e3a\u4f8b\uff0c\u4e0b\u9762\u6765\u770b\u4e0b\u5982\u4f55\u91cd\u7f6eroot\u5bc6\u7801\u3002<\/p>\n<p>\n\t<figure class=\"wp-block-image size-full\"><img decoding=\"async\" class=\"wp-image-3491\" alt=\"Vultr\u6559\u7a0b\uff1a\u5982\u4f55\u5728AlmaLinux\u4e0a\u91cd\u7f6eroot\u5bc6\u7801\" src=\"https:\/\/km94.com\/wp-content\/uploads\/2023\/02\/12-41-1.jpg\"><\/figure>\n\t<\/p>\n<p>Vultr\u662f\u4e00\u5bb6\u975e\u5e38\u4f18\u79c0\u7684\u6d77\u5916\u670d\u52a1\u5668\u63d0\u4f9b\u5546\uff0c\u73b0\u5df2\u62e5\u670920\u591a\u4e2a\u6570\u636e\u4e2d\u5fc3\uff0c\u672a\u6765\u8fd8\u4f1a\u589e\u52a0\u66f4\u591a\u673a\u623f\uff0c\u4ee5\u4fbf\u7528\u6237\u80fd\u8f7b\u677e\u5728\u5168\u7403\u8303\u56f4\u5185\u90e8\u7f72\u4e91\u670d\u52a1\u5668\u3001\u88f8\u673a\u548c\u5b58\u50a8\u5668\u7b49\u3002<\/p>\n<p><span>\u6700\u65b0\u4f18\u60e0\u4fe1\u606f\uff0c\u53ef\u67e5\u770b\uff1a<\/span>\u300aVultr\u4f18\u60e0\u7801\u6c47\u603b Vultr\u4f18\u60e0\u5145\u503c\u6d3b\u52a8\u66f4\u65b0\u300b<\/p>\n<p>\u4f8b\u5982\uff0c\u7f51\u7ad9\u8bbf\u5ba2\u7fa4\u4f53\u8981\u662f\u96c6\u4e2d\u5728\u5317\u7f8e\u5730\u533a\u7684\u8bdd\uff0c\u6211\u4eec\u53ef\u79df\u7528\u6027\u4ef7\u6bd4\u9ad8\u7684Vultr\u7f8e\u56fd\u670d\u52a1\u5668\uff08\u8fd9\u91cc\u7cfb\u7edf\u9009\u7684\u662fAlmaLinux\uff09\u6765\u6258\u7ba1\u7f51\u7ad9\uff0c\u4ee5\u83b7\u5f97\u66f4\u5feb\u7684\u8bbf\u95ee\u901f\u5ea6\uff0c\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<p>\u5982\u679c\u6211\u4eec\u88ab\u9501\u5728AlmaLinux\u5b9e\u4f8b\u4e4b\u5916\u5e76\u4e14\u65e0\u6cd5\u8bbf\u95eeroot\u5e10\u6237\u7684\u8bdd\uff0c\u8fd9\u65f6\u9700\u8981\u542f\u52a8\u5230\u5355\u7528\u6237\u6a21\u5f0f\u5e76\u91cd\u7f6eroot\u5bc6\u7801\uff0c\u4e3b\u8981\u6b65\u9aa4\u5982\u4e0b\u3002<\/p>\n<p>1\u3001\u9996\u5148\u767b\u5f55\u5230Vultr\u5ba2\u6237\u7ba1\u7406\u9875\u9762\uff0c\u7136\u540e\u5355\u51fb\u9875\u9762\u4e0a\u7684\uff08Server Restart\uff09\u670d\u52a1\u5668\u91cd\u65b0\u542f\u52a8\u56fe\u6807\uff0c\u91cd\u542f\u670d\u52a1\u3002<\/p>\n<p>\n\t<figure class=\"wp-block-image size-full\"><img decoding=\"async\" class=\"wp-image-3492\" alt=\"\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u5668\" src=\"https:\/\/km94.com\/wp-content\/uploads\/2023\/02\/12-42-1.jpg\"><\/figure>\n\t<\/p>\n<p>2\u3001\u63a5\u4e0b\u6765\u6253\u5f00\u7f51\u7edc\u63a7\u5236\u53f0\uff0c\u6309\u4e0bESC\u952e\u4ee5\u663e\u793aGRUB\u7cfb\u7edf\u5f15\u5bfc\u63d0\u793a\u3002\u63d0\u793a\u51fa\u73b0\u5728\u5f15\u5bfc\u8fc7\u7a0b\u7684\u65e9\u671f\u3002\u5982\u679c\u9519\u8fc7\u63d0\u793a\uff0c\u5219\u9700\u8981\u4ece\u63a7\u5236\u9762\u677f\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u5668\u5e76\u91cd\u8bd5\u3002<\/p>\n<p>\n\t<figure class=\"wp-block-image size-full\"><img decoding=\"async\" class=\"wp-image-3493\" alt=\"Web\u63a7\u5236\u53f0\" src=\"https:\/\/km94.com\/wp-content\/uploads\/2023\/02\/13-26.jpg\"><\/figure>\n\t<\/p>\n<p>3\u3001\u5728GRUB\u5f15\u5bfc\u63d0\u793a\u7b26\u4e0b\uff0c\u6309E\u7f16\u8f91\u7b2c\u4e00\u4e2a\u5f15\u5bfc\u9009\u9879\u3002<\/p>\n<p>4\u3001\u7136\u540e\u627e\u5230\u4ee5linux\u5f00\u5934\u7684\u5185\u6838\u884c\u3002\u628aro\u66f4\u6539\u4e3arw init=\/sysroot\/bin\/sh\u3002<\/p>\n<p>5\u3001\u6309CTRL+X\u6216F10\u952e\u542f\u52a8\u8fdb\u5165\u5355\u7528\u6237\u6a21\u5f0f\u3002<\/p>\n<p>6\u3001\u4f7f\u7528\u547d\u4ee4\u8bbf\u95ee\u7cfb\u7edf\uff1achroot \/sysroot\u3002<\/p>\n<p>7\u3001\u952e\u5165passwd\u5e76\u6309\u7167\u7cfb\u7edf\u63d0\u793a\u66f4\u6539AlmaLinux\u670d\u52a1\u5668\u7684root\u5bc6\u7801\u3002<\/p>\n<p>8\u3001\u8fd0\u884ctouch\/.autorelabel\u4ee5\u5f3a\u5236\u91cd\u65b0\u6807\u8bb0\u6587\u4ef6\u7cfb\u7edf\u3002\u8fd9\u662f\u4f7f\u7528SELinux\u7684\u7cfb\u7edf\u6240\u5fc5\u9700\u7684\u3002\u6211\u4eec\u5728\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\u65f6\uff0c\u5b83\u5c06\u4e3aSElinux\u91cd\u65b0\u6807\u8bb0\u6587\u4ef6\u7cfb\u7edf\u3002\u5728\u6b64\u8fc7\u7a0b\u4e2d\uff0c\u91cd\u65b0\u542f\u52a8\u53ef\u80fd\u9700\u8981\u989d\u5916\u7684\u65f6\u95f4\u3002<\/p>\n<p>9\u3001\u8fd0\u884cexit\u3002<\/p>\n<p>10\u3001\u8fd0\u884clogout\u3002<\/p>\n<p>11\u3001\u8fd0\u884creboot\u4ee5\u91cd\u65b0\u542f\u52a8AlmaLinux\u670d\u52a1\u5668\u3002<\/p>\n\n<div>\n<div>\n\n\n\n<\/div>\n<div>\n\n\n\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Vultr\u6d77\u5916\u4e91\u670d\u52a1\u5668\u652f\u6301\u6309\u5c0f\u65f6\u8ba1\u8d39\uff0c\u914d\u7f6e\u4ea7\u54c1\u4e30\u5bcc\uff0c\u6709\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\u9009\u9879\uff0c\u5305\u62ecWindows\u548cLinux\u53d1\u884c\u7248\u3002&hellip;<\/p>\n","protected":false},"author":1,"featured_media":3490,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,2],"tags":[],"class_list":["post-3489","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-zjjc","category-jc","entry"],"_links":{"self":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts\/3489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/comments?post=3489"}],"version-history":[{"count":0,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts\/3489\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/media?parent=3489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/categories?post=3489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/tags?post=3489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}