{"id":607,"date":"2023-10-08T17:30:59","date_gmt":"2023-10-08T09:30:59","guid":{"rendered":"http:\/\/madapapa.com\/wordpress\/?p=607"},"modified":"2023-10-09T09:33:45","modified_gmt":"2023-10-09T01:33:45","slug":"zhong-xin-qi-dongk8s-mo-ni-qiminikube","status":"publish","type":"post","link":"http:\/\/madapapa.com\/wordpress\/?p=607","title":{"rendered":"\u91cd\u65b0\u542f\u52a8k8s\u6a21\u62df\u5668-minikube"},"content":{"rendered":"<p>\u8282\u540e\u4e0a\u73ed\u7b2c\u4e00\u5929\uff0c\u53d1\u73b0\u963f\u91cc\u4e91\u4e0a\u7684minikube\u65e0\u6cd5\u542f\u52a8\uff1a<br \/>\n<img decoding=\"async\" src=\"http:\/\/madapapa.com\/wordpress\/wp-content\/uploads\/2023\/10\/16967576331477.jpg\" alt=\"\" \/><\/p>\n<p>\u53d1\u73b0\u662f\u6ca1\u6709\u5207\u6362\u5230\u666e\u901a\u8d26\u53f7<br \/>\n<img decoding=\"async\" src=\"http:\/\/madapapa.com\/wordpress\/wp-content\/uploads\/2023\/10\/16967576766760.jpg\" alt=\"\" \/><\/p>\n<p>su xxx\u5230\u666e\u901a\u7528\u6237\uff0c\u91cd\u65b0\u542f\u52a8minikube\u5373\u53ef<br \/>\n<img decoding=\"async\" src=\"http:\/\/madapapa.com\/wordpress\/wp-content\/uploads\/2023\/10\/16968141430263.jpg\" alt=\"\" \/><\/p>\n<p>\u5982\u679c\u8981\u5207\u6362\u5230root\u7528\u6237\uff0c\u8f93\u5165\u591a\u6761\u547d\u4ee4\uff0c\u53ef\u4ee5\u4f7f\u7528<\/p>\n<pre><code class=\"language-plain_text\">sudo -i\n<\/code><\/pre>\n<p>The sudo -i command in Linux is used to open a new shell session with superuser privileges, also known as the root user. Here&#8217;s what it does:<\/p>\n<p>sudo: This command is used to execute another command with superuser (or root) privileges, assuming the user running the sudo command has the necessary permissions. It&#8217;s often used to perform administrative tasks without needing to log in as the root user.<\/p>\n<p>-i: This option, when used with sudo, opens a new shell session as the root user. It stands for &quot;interactive&quot; and is typically used when you need to perform multiple commands as the root user in an interactive shell. An interactive shell allows you to work as if you were logged in directly as the root user, with access to the root user&#8217;s environment and settings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8282\u540e\u4e0a\u73ed\u7b2c\u4e00\u5929\uff0c\u53d1\u73b0\u963f\u91cc\u4e91\u4e0a\u7684minikube\u65e0\u6cd5\u542f\u52a8\uff1a \u53d1\u73b0\u662f\u6ca1\u6709\u5207\u6362\u5230\u666e\u901a\u8d26\u53f7 su xxx\u5230\u666e\u901a\u7528\u6237\uff0c\u91cd\u65b0\u542f\u52a8minikube\u5373\u53ef \u5982\u679c\u8981\u5207\u6362\u5230root\u7528\u6237\uff0c\u8f93\u5165\u591a\u6761\u547d\u4ee4\uff0c\u53ef\u4ee5\u4f7f\u7528 sudo -i The sudo -i command in Linux is used to open a new shell session with superuser privileges, also known as the root user. Here&#8217;s what it does: sudo: This command is used to execute another command with superuser (or root) privileges, assuming the user running the sudo command &hellip; <a href=\"http:\/\/madapapa.com\/wordpress\/?p=607\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u91cd\u65b0\u542f\u52a8k8s\u6a21\u62df\u5668-minikube<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-607","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=607"}],"version-history":[{"count":2,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/607\/revisions"}],"predecessor-version":[{"id":609,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/607\/revisions\/609"}],"wp:attachment":[{"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=607"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/madapapa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}