{"id":531,"date":"2023-10-31T13:49:36","date_gmt":"2023-10-31T05:49:36","guid":{"rendered":"http:\/\/nelliemylove.cn\/nelliemylove\/?p=531"},"modified":"2023-10-31T14:24:48","modified_gmt":"2023-10-31T06:24:48","slug":"tce1","status":"publish","type":"post","link":"http:\/\/nelliemylove.cn\/nelliemylove\/index.php\/2023\/10\/31\/tce1\/","title":{"rendered":"\u90e8\u7f72TCE(1)-BootStrap\u865a\u62df\u673a\u51c6\u5907"},"content":{"rendered":"\n<p style=\"font-size:16px\">\u672c\u6587\u91c7\u7528Ubuntu22.04\u64cd\u4f5c\u7cfb\u7edf\u4f5c\u4e3aBootStrap\u865a\u62df\u673a\u4f7f\u7528\u3002<br>1. \u5b89\u88c5GIT\u3001CURL\u4ee5\u53caHOMEBREW<br>\u5982\u679c\u91c7\u7528Ubuntu22.04\u64cd\u4f5c\u7cfb\u7edf\uff0c\u9ed8\u8ba4\u5b89\u88c5\u7684GIT\u3001CURL\u7248\u672c\u5df2\u7ecf\u6ee1\u8db3HOMEBREW\u7684\u6700\u4f4e\u7248\u672c\u8981\u6c42\uff0c\u65e0\u9700\u7279\u5730\u6307\u5b9a\u3002<br># sudo apt-get update -y<br># sudo apt-get install build-essential -y<br># sudo apt-get install ntp -y<br># sudo apt install git -y<br># sudo apt install curl -y<br>\u4e0b\u8f7dinstall.sh<br>\u5730\u5740\uff1ahttps:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh<br>\u66ff\u6362\u5176\u4e2dgithub.com\u4e3agithubfast.com\uff0c\u5426\u5219\u9700\u8981\u79d1\u5b66\u4e0a\u7f51\u624d\u80fd\u6b63\u5e38\u8bbf\u95ee\u5e76\u4e0b\u8f7d\u811a\u672c<br>\u968f\u540e\u6267\u884c\u8be5\u811a\u672c\uff0c\u8be5\u811a\u672c\u4f1a\u5728BootStrap\u865a\u62df\u673a\u4e0a\u5b89\u88c5\u4e00\u7cfb\u5217\u7ec4\u4ef6\uff0c\u5305\u62ec\u5fc5\u987b\u8981\u7528\u7684HOMEBREW\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image-3.png\" alt=\"\" class=\"wp-image-535\" width=\"451\" height=\"33\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1249\" height=\"580\" src=\"http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image-4.png\" alt=\"\" class=\"wp-image-536\" srcset=\"http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image-4.png 1249w, http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image-4-768x357.png 768w\" sizes=\"(max-width: 1249px) 100vw, 1249px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p style=\"font-size:16px\">2. \u5b8c\u6210HOMEBREW\u5b89\u88c5\u540e\uff0c\u6839\u636e\u63d0\u793a\u5b8c\u6210\u73af\u5883\u53d8\u91cf\u7684\u8bbe\u7f6e<br># eval &#8220;$(\/home\/linuxbrew\/.linuxbrew\/bin\/brew shellenv)&#8221;<br># echo &#8216;eval &#8220;$(\/home\/linuxbrew\/.linuxbrew\/bin\/brew shellenv)&#8221;&#8216; &gt;&gt; \/home\/antares\/.bashrc<br># brew install gcc<\/p>\n\n\n\n<p style=\"font-size:16px\">3. \u5b89\u88c5DOCKER-CE<br>#sudo apt-get install ca-certificates gnupg lsb-release<br># curl -fsSL <a href=\"https:\/\/download.docker.com\/linux\/ubuntu\/gpg\">https:\/\/download.docker.com\/linux\/ubuntu\/gpg<\/a> | sudo gpg &#8211;dearmor -o \/usr\/share\/keyrings\/docker-archive-keyring.gpg<br># echo &#8220;deb [arch=$(dpkg &#8211;print-architecture) signed-by=\/usr\/share\/keyrings\/docker-archive-keyring.gpg] <a href=\"https:\/\/download.docker.com\/linux\/ubuntu\">https:\/\/download.docker.com\/linux\/ubuntu<\/a> $(lsb_release -cs) stable&#8221; | sudo tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null<br># sudo apt-get install docker-ce docker-ce-cli containerd.io -y<br># sudo usermod -aG docker $USER<br>\u5b8c\u6210\u5b89\u88c5\u540e\u6fc0\u6d3bdocker\u670d\u52a1\u5e76\u786e\u8ba4\u670d\u52a1\u5df2\u7ecf\u8bbe\u7f6e\u4e3a\u81ea\u542f\u52a8<br># sudo systemctl enable docker<br># sudo systemctl restart docker<br># sudo systemctl status docker<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1140\" height=\"292\" src=\"http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image.png\" alt=\"\" class=\"wp-image-532\" srcset=\"http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image.png 1140w, http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image-768x197.png 768w\" sizes=\"(max-width: 1140px) 100vw, 1140px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p style=\"font-size:16px\">4. \u5b89\u88c5KUBECTL<br># curl -LO &#8220;<a href=\"https:\/\/dl.k8s.io\/release\/$(curl%20-L%20-s%20https:\/dl.k8s.io\/release\/stable.txt)\/bin\/linux\/amd64\/kubectl\">https:\/\/dl.k8s.io\/release\/$(curl -L -s https:\/\/dl.k8s.io\/release\/stable.txt)\/bin\/linux\/amd64\/kubectl<\/a>&#8220;<br># sudo install -o root -g root -m 0755 kubectl \/usr\/local\/bin\/kubectl<\/p>\n\n\n\n<p style=\"font-size:16px\">5. \u5b89\u88c5Tanzu TCE<br># brew install vmware-tanzu\/tanzu\/tanzu-community-edition<\/p>\n\n\n\n<p style=\"font-size:16px\">6. \u6267\u884c\u811a\u672c{HOMEBREW-INSTALL-LOCATION}\/configure-tce.sh<br># cd \/home\/linuxbrew\/.linuxbrew\/Cellar\/tanzu-community-edition\/v0.12.1\/libexec<br># .\/configure-tce.sh<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1159\" height=\"385\" src=\"http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image-5.png\" alt=\"\" class=\"wp-image-537\" srcset=\"http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image-5.png 1159w, http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image-5-768x255.png 768w\" sizes=\"(max-width: 1159px) 100vw, 1159px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p style=\"font-size:16px\">7. \u5728\u4e0a\u4e00\u6b65\u9aa4\u770b\u5230\u201cSuccessfully initialized CLI\u201d\u540e\uff0c\u542f\u52a8\u7ba1\u7406\u96c6\u7fa4\u7684\u90e8\u7f72\u5de5\u4f5c<br># tanzu management-cluster create &#8211;ui -b 0.0.0.0:8000<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image-2.png\" alt=\"\" class=\"wp-image-534\" width=\"511\" height=\"106\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1185\" height=\"754\" src=\"http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image-1.png\" alt=\"\" class=\"wp-image-533\" srcset=\"http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image-1.png 1185w, http:\/\/nelliemylove.cn\/nelliemylove\/wp-content\/uploads\/2023\/10\/image-1-768x489.png 768w\" sizes=\"(max-width: 1185px) 100vw, 1185px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u91c7\u7528Ubuntu22.04\u64cd\u4f5c\u7cfb\u7edf\u4f5c\u4e3aBootStrap\u865a\u62df\u673a\u4f7f\u7528&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,7],"tags":[],"_links":{"self":[{"href":"http:\/\/nelliemylove.cn\/nelliemylove\/index.php\/wp-json\/wp\/v2\/posts\/531"}],"collection":[{"href":"http:\/\/nelliemylove.cn\/nelliemylove\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nelliemylove.cn\/nelliemylove\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nelliemylove.cn\/nelliemylove\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nelliemylove.cn\/nelliemylove\/index.php\/wp-json\/wp\/v2\/comments?post=531"}],"version-history":[{"count":4,"href":"http:\/\/nelliemylove.cn\/nelliemylove\/index.php\/wp-json\/wp\/v2\/posts\/531\/revisions"}],"predecessor-version":[{"id":557,"href":"http:\/\/nelliemylove.cn\/nelliemylove\/index.php\/wp-json\/wp\/v2\/posts\/531\/revisions\/557"}],"wp:attachment":[{"href":"http:\/\/nelliemylove.cn\/nelliemylove\/index.php\/wp-json\/wp\/v2\/media?parent=531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nelliemylove.cn\/nelliemylove\/index.php\/wp-json\/wp\/v2\/categories?post=531"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nelliemylove.cn\/nelliemylove\/index.php\/wp-json\/wp\/v2\/tags?post=531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}