{"id":64,"date":"2025-10-28T23:03:16","date_gmt":"2025-10-28T15:03:16","guid":{"rendered":"http:\/\/8.138.246.222\/?p=64"},"modified":"2025-11-09T12:02:33","modified_gmt":"2025-11-09T04:02:33","slug":"%e7%bb%83%e4%b9%a0-%e9%83%a8%e7%bd%b2cockpit","status":"publish","type":"post","link":"https:\/\/andxiaohui.com\/index.php\/2025\/10\/28\/%e7%bb%83%e4%b9%a0-%e9%83%a8%e7%bd%b2cockpit\/","title":{"rendered":"\u7ec3\u4e60    \u90e8\u7f72cockpit"},"content":{"rendered":"\n<p>\u6211\u4f7f\u7528\u7684\u662fopenEuler\u7cfb\u7edf CentOS\u540c\u7406<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6b65\u9aa4<\/h2>\n\n\n\n<p>1.\u4e0b\u8f7dcockpit<\/p>\n\n\n\n<p>2.\u542f\u52a8cockpit \u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/p>\n\n\n\n<p>3.\u9632\u706b\u5899\u5f00\u653ecockpit\u670d\u52a1\u7aef\u53e3<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5f00\u59cb\u64cd\u4f5c<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1.\u4e0b\u8f7dcockpit<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum install -y cockpit\n#Complete\n#\u67e5\u770bcoc\u662f\u5426\u5b89\u88c5\u6210\u529f\nsudo systemctl status cockpit\n#\u25cb cockpit.service - Cockpit Web Service\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/cockpit.service; static)\n     Active: inactive (dead)\nTriggeredBy: \u25cb cockpit.socket\n       Docs: man:cockpit-ws(8)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2.\u542f\u52a8cockpit<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start cockpit #\u542f\u52a8cockpit\nsudo systemctl status cockpit #\u67e5\u770bcockpit\u662f\u5426\u542f\u52a8\u6210\u529f\n#<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">\u25cf<\/mark> cockpit.service - Cockpit Web Service\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/cockpit.service; static)\n     Active: <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">active (running)<\/mark> since Tue 2025-10-28 22:40:37 CST; 1min 7s ago\nTriggeredBy: <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">\u25cf<\/mark> cockpit.socket\n       Docs: man:cockpit-ws(8)\n    Process: 10281 ExecStartPre=\/usr\/libexec\/cockpit-certificate-ensure --for-cockpit-tls (code=exited, status=0\/SUCCESS)\n   Main PID: 10307 (cockpit-tls)\n      Tasks: 1 (limit: 8891)\n     Memory: 1.5M ()\n     CGroup: \/system.slice\/cockpit.service\n             \u2514\u250010307 \/usr\/libexec\/cockpit-tls\n#\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\nsudo systemctl enable cockpit<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3.\u5f00\u542f\u9632\u706b\u5899cockpit\u670d\u52a1\u7aef\u53e3<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u67e5\u770b\u9632\u706b\u5899\u662f\u5426\u542f\u52a8\nsudo systemctl status firewalld\n#\u5982\u679c\u6ca1\u5f00\u542f\nsudo systemctl start firewalld #\u5f00\u542f\u9632\u706b\u5899\nsudo systemctl enable firewalld #\u8bbe\u7f6e\u9632\u706b\u5899\u5f00\u673a\u81ea\u542f\n#\u8bbe\u7f6ecockpit\u670d\u52a1\u7aef\u53e3\nsudo firewall-cmd --permanent --add-service=cockpit\n#success\n#\u91cd\u8f7d\u9632\u706b\u5899\nsudo firewall-cmd --reload\n#success<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0d\u51fa\u610f\u5916\u7684\u8bdd\u5c31\u5df2\u7ecf\u53ef\u4ee5\u4f7f\u7528\u4e86<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ip addr\n#1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000\n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n    inet 127.0.0.1\/8 scope host lo\n       valid_lft forever preferred_lft forever\n    inet6 ::1\/128 scope host noprefixroute\n       valid_lft forever preferred_lft forever\n2: ens33: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc fq_codel state UP group default qlen 1000\n    link\/ether 00:0c:29:5b:b2:b9 brd ff:ff:ff:ff:ff:ff\n    inet <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">192.168.180.136<\/mark>\/24 brd 192.168.180.255 scope global dynamic noprefixroute ens33\n       valid_lft 1728sec preferred_lft 1728sec\n    inet6 fe80::20c:29ff:fe5b:b2b9\/64 scope link noprefixroute\n       valid_lft forever preferred_lft forever\n<\/code><\/pre>\n\n\n\n<p>\u6d4f\u89c8\u5668\u8f93\u5165\u81ea\u5df1\u7684ip+9090\u7aef\u53e3 <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/andxiaohui.com\/wp-content\/uploads\/2025\/10\/sda-1024x526.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"526\" data-id=\"68\" data-original=\"https:\/\/andxiaohui.com\/wp-content\/uploads\/2025\/10\/sda-1024x526.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-68\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n<\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4f7f\u7528\u7684\u662fopenEuler\u7cfb\u7edf CentOS\u540c\u7406 \u6b65\u9aa4 1.\u4e0b\u8f7dcockpit 2.\u542f\u52a8cockpit \u5e76\u8bbe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":68,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-64","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/andxiaohui.com\/index.php\/wp-json\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andxiaohui.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andxiaohui.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andxiaohui.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/andxiaohui.com\/index.php\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":4,"href":"https:\/\/andxiaohui.com\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":140,"href":"https:\/\/andxiaohui.com\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions\/140"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/andxiaohui.com\/index.php\/wp-json\/wp\/v2\/media\/68"}],"wp:attachment":[{"href":"https:\/\/andxiaohui.com\/index.php\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andxiaohui.com\/index.php\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andxiaohui.com\/index.php\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}