{"id":481,"date":"2019-10-31T22:52:25","date_gmt":"2019-10-31T14:52:25","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=481"},"modified":"2019-10-31T22:52:25","modified_gmt":"2019-10-31T14:52:25","slug":"centos8-cockpit","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/centos8-cockpit.html","title":{"rendered":"CentOS8\u4f7f\u7528Cockpit\u8fdb\u884cWeb\u7ba1\u7406\u670d\u52a1\u5668"},"content":{"rendered":"<p>\u4eca\u5929\u6253\u7b97\u5230Vultr\u5f00\u4e00\u53f0\u65b0\u7684CentOS8\u865a\u62df\u673a\u7528\u4e8e\u6d4b\u8bd5\u7a0b\u5e8f\uff0c\u542f\u52a8\u4e4b\u540e\u4f7f\u7528SSH\u767b\u4e0a\u53d1\u73b0\u4e86\u4e00\u884c\u63d0\u793a\uff1a<strong>Activate the web console with: systemctl enable &#8211;now cockpit.socket<\/strong>\uff0c\u56e0\u4e3a\u4e4b\u524d\u4ece\u6ca1\u770b\u5230\u8fc7\u8fd9\u79cd\u63d0\u793a\uff0c\u4e8e\u662f\u51fa\u4e8e\u597d\u5947\u641c\u7d22\u4e86\u4e0bcockpit\uff0c\u53d1\u73b0\u8fd9\u8f6f\u4ef6\u771f\u662f\u4e2a\u597d\u4e1c\u897f\uff0c\u770b\u56fd\u5185\u76f8\u5173\u7684\u6587\u7ae0\u4e5f\u4e0d\u591a\uff0c\u4e8e\u662f\u60f3\u5206\u4eab\u4e0b\u8fd9\u8f6f\u4ef6\u7684\u4f7f\u7528\u4f53\u9a8c\u3002<br \/>\n<!--more--><\/p>\n<h2>\u5199\u5728\u5f00\u59cb<\/h2>\n<p>\u9996\u5148\uff0c\u56e0\u4e3a\u60f3\u6d4b\u8bd5\u4e2a\u7a0b\u5e8f\u5728CentOS8\u7cfb\u7edf\u4e0a\u7684\u8fd0\u884c\u60c5\u51b5\uff0c\u4e3a\u4e86\u65b9\u4fbf\uff0c\u6211\u662f\u4f7f\u7528\u7684Vultr\u670d\u52a1\u5f00\u542f\u7684\u65b0\u7684\u865a\u62df\u673a\uff08\u76f8\u5173\u6587\u7ae0\u53ef\u4ee5\u79fb\u6b65\u8fd9\u91cc\uff1a<a href=\"https:\/\/cloudbool.com\/archive\/vultr.html\">Vultr-\u6708\u4ed82.5\u7f8e\u5143\u8d77\u9ad8\u6027\u4ef7\u6bd4VPS \u65b0\u6ce8\u518c\u8d60\u900150\u7f8e\u5143<\/a>\uff09\uff0c\u6211\u5f53\u65f6\u662f\u60f3\u8981\u4e2a\u7eaf\u51c0\u7684\u6700\u5c0f\u5316\u7684CentOS8\u7684\u7cfb\u7edf\uff0c\u4f46\u662f\u770b\u5230\u4e0a\u9762\u54ea\u884c\u63d0\u793a\uff0c\u6211\u89c9\u5f97Vultr\u81ea\u5e26\u7684CentOS8\u7cfb\u7edf\u6a21\u677f\u5176\u5b9e\u4e5f\u4e0d\u7eaf\u51c0\uff0c\u8fd8\u662f\u6709\u4e9b\u7b2c\u4e09\u65b9\u7684\u8f6f\u4ef6\u7684\uff0c\u5982\u679c\u60f3\u8981\u7eaf\u51c0\u7684\u6700\u5c0f\u5316\u5b89\u88c5\u7684CentOS8\uff0c\u53ef\u4ee5\u79fb\u6b65\u8fd9\u91cc\u81ea\u884c\u5b89\u88c5\uff1a<a href=\"https:\/\/cloudbool.com\/archive\/centos8-iso-install.html\">\u5229\u7528ISO\u6587\u4ef6\u5b89\u88c5CentOS8<\/a>\u3002<br \/>\n\u56e0\u4e3a\u6211\u4e5f\u662f\u521a\u4f7f\u7528CentOS8\u4e0d\u4e45\uff0c\u6211\u4e5f\u4e0d\u77e5\u9053\u8fd9\u4e2aCockpit\u662f\u5426\u662fCentOS8\u7cfb\u7edf\u5b98\u65b9\u81ea\u5e26\u7684\u8f6f\u4ef6\uff0c\u4e8e\u662f\u6211\u53c8\u53bbLinode\u5f00\u4e86\u4e00\u53f0CentOS8\u865a\u62df\u673a\uff0c\u5f00\u5b8c\u4e4b\u540e\u770b\u4e86\u4e0b\u8f6f\u4ef6\u5217\u8868\uff0c\u53d1\u73b0\u5176\u5b9e\u8fd9\u4e0d\u662f\u7cfb\u7edf\u9884\u88c5\u7684\uff0c\u76f8\u53cd\uff0c\u8fd9\u662fVultr\u5b98\u65b9\u5236\u4f5c\u7cfb\u7edf\u955c\u50cf\u7684\u65f6\u5019\u5939\u5e26\u7684\uff0c\u4f46\u662f\u65e2\u7136\u90fd\u53d1\u73b0\u4e86\uff0c\u6709\u65b0\u7684\u4e1c\u897f\uff0c\u4e86\u89e3\u4e0b\u4e5f\u597d\u3002<\/p>\n<h2>Cockpit\u662f\u5565<\/h2>\n<p>\u6839\u636eCockpit\u5b98\u7f51\u7684\u4ecb\u7ecd\uff1a<\/p>\n<blockquote><p>\n  Cockpit makes GNU\/Linux discoverable. See your server in a web browser and perform system tasks with a mouse. It\u2019s easy to start containers, administer storage, configure networks, and inspect logs.\n<\/p><\/blockquote>\n<p>Cockpit\u4ecb\u7ecd\u81ea\u5df1\u662f\u4e00\u4e2aWeb\u7aef\u7684\u7cfb\u7edf\u7ba1\u7406\u5de5\u5177\uff0c\u53ea\u7528\u9f20\u6807\u70b9\u70b9\u5c31\u80fd\u7ba1\u7406\u7cfb\u7edf\uff0c\u4e8b\u5b9e\u4e0a\u4e5f\u786e\u5b9e\u5982\u6b64\uff0c\u6211\u5b9e\u9645\u4f7f\u7528\u6765\u8bf4\uff0c\u542f\u52a8Cockpit\u670d\u52a1\u4e4b\u540e\uff0c\u53ea\u9700\u8981\u9f20\u6807\u70b9\u70b9\u70b9\u5c31\u80fd\u5b8c\u6210\u7cfb\u7edf\u5f88\u591a\u57fa\u7840\u64cd\u4f5c\uff0c\u6bd4\u5982\u67e5\u770b\u7cfb\u7edf\u4fe1\u606f\uff0c\u542f\u52a8\/\u505c\u6b62\u670d\u52a1\uff0c\u65b0\u589e\u6216\u8005\u66f4\u6539\u8d26\u6237\uff0c\u7cfb\u7edf\u66f4\u65b0\uff0cWeb\u7ec8\u7aef\u53ca\u67e5\u770b\u7f51\u7edc\u6d41\u91cf\u7b49\u529f\u80fd\u3002<\/p>\n<h2>\u5b89\u88c5\u53ca\u542f\u52a8Cockpit<\/h2>\n<p>Vultr\u7684CentOS8\u7cfb\u7edf\u6a21\u677f\u662f\u5e26\u4e86\u8fd9\u4e2a\u8f6f\u4ef6\uff0c\u4f46\u662f\u4e00\u4e9b\u522b\u7684IDC\u5374\u4e0d\u4e00\u5b9a\u63d0\u4f9b\u4e86\uff0cCentOS8\u7cfb\u7edf\u7684\u8bdd\uff0c\u5b89\u88c5\u53ea\u9700\u8981\u4e00\u6761\u547d\u4ee4\uff1a<\/p>\n<blockquote><p>\n  dnf install cockpit\n<\/p><\/blockquote>\n<p>\u542f\u52a8Cockpit\uff1a<\/p>\n<blockquote><p>\n  systemctl enable &#8211;now cockpit.socket\n<\/p><\/blockquote>\n<p>\u56e0\u4e3aCockpit\u9ed8\u8ba4\u662f\u4f7f\u75289090\u8fdb\u884cWeb\u7ba1\u7406\uff0cCentOS8\u9ed8\u8ba4\u53c8\u81ea\u5e26\u4e86Firewall\u9632\u706b\u5899\uff0c\u6240\u4ee5\u8fd8\u9700\u8981\u653e\u884c\u5bf9\u5e94\u7684\u7aef\u53e3\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre><code>firewall-cmd --add-service=cockpit --permanent\nfirewall-cmd --reload\n<\/code><\/pre>\n<h2>\u4f7f\u7528Cockpit\u7ba1\u7406\u7cfb\u7edf<\/h2>\n<p>\u63a5\u4e0b\u6765\u6d4f\u89c8\u5668\u6253\u5f00** https:\/\/ip_or_domain:9090 <strong>\u5c31\u80fd\u7ba1\u7406\u4e86\uff0c\u56e0\u4e3a\u662f\u81ea\u7b7e\u540d\u8bc1\u4e66\uff0c\u6253\u5f00\u65f6\u6d4f\u89c8\u5668\u4f1a\u63d0\u793a\u8bc1\u4e66\u4e0d\u53ef\u4fe1\uff0c\u8bc1\u4e66\u8def\u5f84\u5728\u8fd9\uff1a<\/strong>\/etc\/cockpit\/ws-certs.d\/**\uff0c\u5982\u679c\u6709\u9700\u8981\u7684\u53ef\u4ee5\u66ff\u6362\u4e86\u3002<br \/>\n\u81f3\u4e8e\u8d26\u53f7\u5bc6\u7801\u53ef\u4ee5\u4f7f\u7528Linux\u7cfb\u7edf\u7684\uff0c\u6bd4\u5982root\u7528\u6237\uff0c\u5982\u56fe\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/x.cloudbool.com\/img\/2019\/10\/30\/Cockpit-login.png\" alt=\"Cockpit-login.png\" \/><br \/>\n\u6211\u662f\u4f7f\u7528root\u8d26\u6237\u767b\u9646\u7684\uff0c\u4e0b\u9762\u662f\u4e00\u4e9b\u622a\u56fe\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/x.cloudbool.com\/img\/2019\/10\/30\/Cockpit-account.png\" alt=\"Cockpit-account.png\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/x.cloudbool.com\/img\/2019\/10\/30\/Cockpit-network.png\" alt=\"Cockpit-network.png\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/x.cloudbool.com\/img\/2019\/10\/30\/Cockpit-services.png\" alt=\"Cockpit-services.png\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/x.cloudbool.com\/img\/2019\/10\/30\/Cockpit-system.png\" alt=\"Cockpit-system.png\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/x.cloudbool.com\/img\/2019\/10\/30\/Cockpit-terminal.png\" alt=\"Cockpit-terminal.png\" \/><br \/>\n\u5bf9\u4e8e\u4e00\u4e9b\u7279\u6b8a\u60c5\u51b5\uff0c\u4f7f\u7528Web\u63a7\u5236\u53f0\u6765\u7ba1\u7406\u8fd8\u662f\u633a\u4e0d\u9519\u7684\uff0c\u91cc\u9762\u7684\u7ec8\u7aef\u5b8c\u5168\u53ef\u4ee5\u66ff\u4ee3\u6211\u4eec\u672c\u5730\u7684SSH\u5ba2\u6237\u7aef\uff0c\u901a\u8fc7\u6d4f\u89c8\u5668\u6211\u4eec\u5c31\u80fd\u5bf9\u670d\u52a1\u5668\u505a\u5f88\u591a\u4e8b\u60c5\u3002<br \/>\n\u6d41\u91cf\u625b\u4e0d\u4f4f\uff0c\u6211\u53ea\u662f\u7b80\u5355\u622a\u4e86\u4e9b\u56fe\u7247\uff0c\u8be6\u7ec6\u7684\u529f\u80fd\u53ef\u4ee5\u5f00\u4e00\u53f0\u865a\u62df\u673a\u4f53\u9a8c\u4e00\u4e0b\uff0c\u9700\u8981\u6309\u91cf\u4ed8\u8d39\u7684\u53ef\u4ee5\u8003\u8651\u4e0bVultr\uff1a<a href=\"https:\/\/cloudbool.com\/archive\/vultr.html\">Vultr-\u6708\u4ed82.5\u7f8e\u5143\u8d77\u9ad8\u6027\u4ef7\u6bd4VPS \u65b0\u6ce8\u518c\u8d60\u900150\u7f8e\u5143<\/a>\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u6253\u7b97\u5230Vultr\u5f00\u4e00\u53f0\u65b0\u7684CentOS8\u865a\u62df\u673a\u7528\u4e8e\u6d4b\u8bd5\u7a0b\u5e8f\uff0c\u542f\u52a8\u4e4b\u540e\u4f7f\u7528SSH\u767b\u4e0a\u53d1\u73b0\u4e86\u4e00\u884c\u63d0\u793a\uff1aActi &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/centos8-cockpit.html\"> <span class=\"screen-reader-text\">CentOS8\u4f7f\u7528Cockpit\u8fdb\u884cWeb\u7ba1\u7406\u670d\u52a1\u5668<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[149],"class_list":["post-481","post","type-post","status-publish","format-standard","hentry","category-tech","tag-centos-8"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=481"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/481\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}