{"id":173193,"date":"2020-02-26T11:03:35","date_gmt":"2020-02-26T03:03:35","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=173193"},"modified":"2020-02-24T09:21:26","modified_gmt":"2020-02-24T01:21:26","slug":"rhel8-cockpit-method","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/rhel8-cockpit-method.html","title":{"rendered":"RHEL8 Cockpit\uff08\u98de\u673a\u9a7e\u9a76\u8231\uff09\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728Web\u6d4f\u89c8\u5668\u4e2d\u67e5\u770b\u670d\u52a1\u5668\u5e76\u4f7f\u7528\u9f20\u6807\u6267\u884c\u7cfb\u7edf\u4efb\u52a1\u3002\u5f88\u5bb9\u6613\u7ba1\u7406\u5b58\u50a8\u3001\u914d\u7f6e\u7f51\u7edc\u548c\u68c0\u67e5\u65e5\u5fd7\u7b49\u64cd\u4f5c\u3002RHEL 8 \u81ea\u52a8\u5b89\u88c5\u4e86 Cockpit\uff0cCockpit \u6240\u9700\u7684\u9632\u706b\u5899\u7aef\u53e3\u4f1a\u81ea\u52a8\u6253\u5f00\uff0c Cockpit \u754c\u9762\u53ef\u7528\u4e8e\u5c06\u57fa\u4e8e\u7b56\u7565\u7684\u89e3\u5bc6\uff08PBD\uff09\u89c4\u5219\u5e94\u7528\u4e8e\u53d7\u7ba1\u7cfb\u7edf\u4e0a\u7684\u78c1\u76d8\u3002\u5bf9\u4e8e\u5728\u8eab\u4efd\u7ba1\u7406\uff08IDM\uff09\u57df\u4e2d\u6ce8\u518c\u7684\u7cfb\u7edf\uff0cCockpit \u9ed8\u8ba4\u4f7f\u7528\u57df\u7684\u96c6\u4e2d\u7ba1\u7406\u7684 IDM \u8d44\u6e90\u3002Cockpit \u83dc\u5355\u548c\u9875\u9762\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e0a\u5bfc\u822a\uff0c\u53ef\u4ee5\u4ece Cockpit Web \u754c\u9762\u521b\u5efa\u548c\u7ba1\u7406\u865a\u62df\u673a\u3002 \u73b0\u5728\u53ef\u4ee5\u5c06\u201c\u865a\u62df\u673a\u201d\u9875\u9762\u6dfb\u52a0\u5230 Cockpit \u754c\u9762\uff0c\u8be5\u754c\u9762\u4f7f\u7528\u6237\u53ef\u4ee5\u521b\u5efa\u548c\u7ba1\u7406\u57fa\u4e8e libvirt \u7684\u865a\u62df\u673a\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u73af\u5883<\/strong><\/p>\n

Red Hat Enterprise Linux release 8.0<\/strong>
\nVMware Workstation Pro 14<\/strong><\/p>\n

\u5b89\u88c5cockpit<\/strong><\/div>\n
[root@localhost ~]# yum install -y cockpit\r\nUpdating Subscription Management repositories.\r\nUnable to read consumer identity\r\nThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.\r\nLast metadata expiration check: 0:17:16 ago on Thu 02 Jan 2020 10:41:30 PM CST.\r\nPackage cockpit-185-2.el8.x86_64 is already installed.\r\nDependencies resolved.\r\nNothing to do.\r\nComplete!\r\n[root@localhost ~]# systemctl  enable  --now  cockpit.socket\r\n#\u542f\u7528cockpit\uff0c\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8\u540c\u65f6\u5f00\u542f\u670d\u52a1\u4e00\u6761\u547d\u4ee4\u5c31\u53ef\u4ee5\u641e\u5b9a\uff0cCockpit\u76d1\u542c9090\u7aef\u53e3\u3002\r\nCreated symlink \/etc\/systemd\/system\/sockets.target.wants\/cockpit.socket \u2192 \/usr\/lib\/systemd\/system\/cockpit.socket.\r\n[root@localhost ~]# netstat -pantu | grep 9090\r\ntcp6       0      0 :::9090                 :::*                    LISTEN      1\/systemd           \r\n\r\n[root@localhost ~]# ifconfig ens33\r\nens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500\r\n        inet 192.168.10.21  netmask 255.255.255.0  broadcast 192.168.10.255\r\n        inet6 fe80::27d9:87a2:dc6c:7296  prefixlen 64  scopeid 0x20\r\n        ether 00:0c:29:a4:94:b4  txqueuelen 1000  (Ethernet)\r\n        RX packets 341  bytes 43366 (42.3 KiB)\r\n        RX errors 0  dropped 0  overruns 0  frame 0\r\n        TX packets 533  bytes 56415 (55.0 KiB)\r\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0\r\n<\/pre>\n
\u8bbf\u95eecockpit<\/strong><\/div>\n

\u6253\u5f00\u7269\u7406\u673a\u7684\u6d4f\u89c8\u5668\u8f93\u5165192.168.10.21:9090\u8bbf\u95eecockpit\u670d\u52a1<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\u901a\u8fc7RHEL8\u672c\u673a\u7684Firefox\u6d4f\u89c8\u5668\u8f93\u5165192.168.10.21:9090\u8bbf\u95eecockpit\u670d\u52a1<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\u7528\u4f60\u7684\u7cfb\u7edf\u7528\u6237\u767b\u5f55\u5373\u53ef\uff08\u901a\u8fc7\u7269\u7406\u673a\u7684\u6d4f\u89c8\u5668\u767b\u5f55\u5373\u8fdc\u7a0b\u767b\u5f55\uff09<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\u53ef\u4ee5\u8bbe\u7f6e\u8bed\u8a00<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\u4f7f\u7528cockpit\u521b\u5efa\u903b\u8f91\u5377<\/strong><\/div>\n

\u6dfb\u52a0\u786c\u76d8<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\u91cd\u542fRHEL8<\/p>\n

\"\"<\/p>\n

\u521b\u5efa\u903b\u8f91\u5377<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\u5728\u7cfb\u7edf\u4e2d\u67e5\u770b<\/p>\n

\"\"<\/p>\n

[root@localhost ~]# lvscan\r\n  ACTIVE            '\/dev\/vgroup0\/lvol0' [<20.00 GiB] inherit\r\n  ACTIVE            '\/dev\/rhel\/swap' [2.00 GiB] inherit\r\n  ACTIVE            '\/dev\/rhel\/root' [<17.00 GiB] inherit\r\n[root@localhost ~]# blkid \/dev\/vgroup0\/lvol0\r\n[root@localhost ~]# mkfs.ext4 \/dev\/vgroup0\/lvol0\r\nmke2fs 1.44.3 (10-July-2018)\r\nCreating filesystem with 5241856 4k blocks and 1310720 inodes\r\nFilesystem UUID: 806020bd-afe3-426a-813f-b203e5149cd0\r\nSuperblock backups stored on blocks: \r\n\t32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, \r\n\t4096000\r\n\r\nAllocating group tables: done                            \r\nWriting inode tables: done                            \r\nCreating journal (32768 blocks): done\r\nWriting superblocks and filesystem accounting information: done   \r\n\r\n[root@localhost ~]# blkid \/dev\/vgroup0\/lvol0\r\n\/dev\/vgroup0\/lvol0: UUID=\"806020bd-afe3-426a-813f-b203e5149cd0\" TYPE=\"ext4\"\r\n<\/pre>\n
\u903b\u8f91\u5377\u7f29\u5bb9\u3001\u6269\u5bb9<\/strong><\/div>\n

\u7f29\u5bb9<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\"\" \r\n\r\n<\/pre>\n
\r\n[root@localhost ~]# lvscan\r\n  ACTIVE            '\/dev\/vgroup0\/lvol0' [10.81 GiB] inherit\r\n  ACTIVE            '\/dev\/rhel\/swap' [2.00 GiB] inherit\r\n  ACTIVE            '\/dev\/rhel\/root' [<17.00 GiB] inherit\r\n<\/pre>\n

\u6269\u5bb9<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

\"\"<\/p>\n

[root@localhost ~]# lvscan\r\n  ACTIVE            '\/dev\/vgroup0\/lvol0' [<16.27 GiB] inherit\r\n  ACTIVE            '\/dev\/rhel\/swap' [2.00 GiB] inherit\r\n  ACTIVE            '\/dev\/rhel\/root' [<17.00 GiB] inherit\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u73af\u5883 Red Hat Enterprise Linux release 8.0 VMware Workstat […]<\/p>\n","protected":false},"author":63,"featured_media":173194,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-173193","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/173193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=173193"}],"version-history":[{"count":11,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/173193\/revisions"}],"predecessor-version":[{"id":173355,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/173193\/revisions\/173355"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/173194"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=173193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=173193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=173193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}