$ sudo yum -y update\nCentOS-8 - AppStream 1.7 kB\/s | 4.3 kB 00:02 \nCentOS-8 - Base 1.2 kB\/s | 3.8 kB 00:03 \nCentOS-8 - Extras 1.4 kB\/s | 1.5 kB 00:01 \nExtra Packages for Enterprise Linux 8 - x86_64 12 kB\/s | 32 kB 00:02 \nExtra Packages for Enterprise Linux 8 - x86_64 86 kB\/s | 1.7 MB 00:20 \nDependencies resolved. \nNothing to do.\nComplete!<\/code><\/pre>\n\n\n\n\u7531\u4e8e Centos 8 \u521a\u521a\u53d1\u5e03\uff0c\u5728\u64b0\u5199\u672c\u6587\u65f6\uff0c\u8fd8\u6ca1\u6709\u4efb\u4f55\u66f4\u65b0\u3002<\/p>\n\n\n\n
\u4ece\u5b58\u50a8\u5e93\u5b89\u88c5 Cockpit \u8f6f\u4ef6\u5305<\/h3>\n\n\n\n
\u5728 Centos 8 \u4e2d\uff0cCockpit \u8f6f\u4ef6\u5305\u9ed8\u8ba4\u5305\u542b\u5728 extras \u5b58\u50a8\u5e93\u4e2d\uff0c\u60a8\u53ef\u4ee5\u7acb\u5373\u5b89\u88c5\u5b83\uff0c\u8fd9\u4e0e Centos 7 \u4e0d\u540c\u7684\u662f\uff0c\u60a8\u9700\u8981\u5148\u6dfb\u52a0 epel repo\u3002\u6211\u4eec\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8 Cockpit \u5b89\u88c5\uff1a<\/p>\n\n\n\n
$ sudo yum install cockpit<\/code><\/pre>\n\n\n\n$ sudo yum install cockpit\nLast metadata expiration check: 0:04:25 ago on Thu 26 Sep 2019 03:10:41 PM UTC.\nDependencies resolved.\n================================================================================\n Package Arch Version \n================================================================================\nInstalling:\n cockpit x86_64 185.1-1.el8_0 \nInstalling dependencies:\n PackageKit x86_64 1.1.12-2.el8 \n PackageKit-glib x86_64 1.1.12-2.el8 \n cairo x86_64 1.15.12-3.el8 \n cairo-gobject x86_64 1.15.12-3.el8 \n libX11 x86_64 1.6.7-1.el8 \n libX11-common noarch 1.6.7-1.el8 \n libXau x86_64 1.0.8-13.el8 \n libXext x86_64 1.3.3-9.el8 \n libXrender x86_64 0.9.10-7.el8 \n libxcb x86_64 1.13-5.el8 \n pixman x86_64 0.36.0-1.el8 \n python3-cairo x86_64 1.16.3-6.el8 \n python3-gobject x86_64 3.28.3-1.el8 \n python3-systemd x86_64 234-8.el8 \n setroubleshoot-plugins noarch 3.3.10-1.el8 \n checkpolicy x86_64 2.8-2.el8 \n\n..... \n\nTransaction Summary\n================================================================================\nInstall 42 Packages\n\nTotal download size: 16 M\nInstalled size: 46 M\nIs this ok [y\/N]: \n<\/code><\/pre>\n\n\n\n\u952e\u5165\u201cy\u201d\uff0c\u5b83\u5c06\u5f00\u59cb\u4e0b\u8f7d\u548c\u5b89\u88c5\u6240\u9700\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n\n\n\n
\u5728 Fedora \u4e0a<\/h2>\n\n\n\n
\u540c\u6837\uff0cCentOS \u4e5f\u9ed8\u8ba4\u5728 Fedora \u7684\u5b98\u65b9\u5b58\u50a8\u5e93\u4e2d\u53ef\u7528\uff0c\u6211\u4eec\u53ea\u9700\u4f7f\u7528 dnf \u5305\u7ba1\u7406\u5668\u5b89\u88c5 cockpit\u3002<\/p>\n\n\n\n
# dnf install cockpit<\/code><\/pre>\n\n\n\n\u5728 Arch Linux \u4e0a<\/h2>\n\n\n\n
Cockpit \u76ee\u524d\u5728 Arch Linux \u7684\u5b98\u65b9\u5b58\u50a8\u5e93\u4e2d\u4e0d\u53ef\u7528\uff0c\u4f46\u5b83\u5728 Arch \u7528\u6237\u5b58\u50a8\u5e93\u4e2d\u53ef\u7528\uff0c\u4e5f\u79f0\u4e3a AUR\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u5c06\u7b80\u5355\u5730\u8fd0\u884c\u4ee5\u4e0b yaourt \u547d\u4ee4\u6765\u5b89\u88c5\u5b83\u3002<\/p>\n\n\n\n
# yaourt cockpit<\/code><\/pre>\n\n\n\n\u5728 Ubuntu \u4e0a<\/h2>\n\n\n\n
\u4f7f\u7528 apt \u547d\u4ee4\u5728 ubuntu \u6216 debian \u4e0a\u5b89\u88c5 cockpit<\/p>\n\n\n\n
sudo apt update\nsudo apt -y install cockpit\nsudo systemctl status cockpit<\/code><\/pre>\n\n\n\n\u5728\u9632\u706b\u5899\u4e0a\u5141\u8bb8\u7aef\u53e3 9090<\/p>\n\n\n\n
sudo ufw allow 9090<\/code><\/pre>\n\n\n\n\u542f\u7528\u5e76\u542f\u52a8 Cockpit \u670d\u52a1<\/h2>\n\n\n\n
\u6211\u4eec\u73b0\u5728\u5fc5\u987b\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u7528 Cockpit\uff1a<\/p>\n\n\n\n
$ sudo systemctl enable --now cockpit.socket\nCreated symlink \/etc\/systemd\/system\/sockets.target.wants\/cockpit.socket \u2192 \/usr\/lib\/systemd\/system\/cockpit.socket.\n<\/code><\/pre>\n\n\n\n\u5e76\u542f\u52a8 Cockpit\uff1a<\/p>\n\n\n\n
$ sudo systemctl start cockpit<\/code><\/pre>\n\n\n\n\u8bbe\u7f6e\u9632\u706b\u5899<\/h2>\n\n\n\n
\u6700\u540e\uff0c\u8ba9\u6211\u4eec\u786e\u4fdd\u9632\u706b\u5899\u4e0d\u4f1a\u963b\u6b62 Cockpit\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u60a8\u8bbf\u95ee Cockpit \u5e94\u8be5\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\uff0c\u4f46\u4ee5\u9632\u4e07\u4e00\u6211\u4eec\u5c06\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6253\u5f00\u6240\u9700\u7684\u7aef\u53e3\uff1a<\/p>\n\n\n\n
$ sudo firewall-cmd --permanent --zone=public --add-service=cockpit\nWarning: ALREADY_ENABLED: cockpit\nsuccess\n\n$ sudo firewall-cmd --reload\nsuccess<\/code><\/pre>\n\n\n\n\u5982\u60a8\u6240\u89c1\uff0cCockpit \u5df2\u6dfb\u52a0\u5230\u9632\u706b\u5899\u89c4\u5219\u4e2d\u3002\u4f46\u6700\u597d\u8fd0\u884c\u5b83\u4ee5\u9632\u4e07\u4e00\uff0c\u5e76\u907f\u514d\u9632\u706b\u5899\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898\u3002<\/p>\n\n\n\n
Cockpit \u7684\u5b89\u88c5\u73b0\u5df2\u5b8c\u6210\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5bfc\u822a\u5230\u4ee5\u4e0b URL \u6765\u8bbf\u95ee\u4eea\u8868\u677f\uff1a<\/p>\n\n\n\n
https://localhost:9090<\/code><\/pre>\n\n\n\n\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u9759\u6001 IP \u5730\u5740\uff0c\u4f60\u53ef\u4ee5\u8f93\u5165\u4f60\u7684 IP \u800c\u4e0d\u662f\u201clocalhost\u201d\u6765\u4ece\u4efb\u4f55\u5730\u65b9\u8bbf\u95ee Cockpit\u3002<\/p>\n\n\n\n
\u767b\u5f55\u9a7e\u9a76\u8231<\/h2>\n\n\n\n
\u5bfc\u822a\u5230 Cockpit URL \u65f6\uff0c\u60a8\u53ef\u80fd\u4f1a\u6536\u5230\u6709\u5173\u7ad9\u70b9 SSL \u8bc1\u4e66\u7684\u5b89\u5168\u8b66\u544a\u63d0\u793a\uff0c\u56e0\u4e3a\u5b83\u662f\u81ea\u7b7e\u540d\u7684\u3002\u60a8\u53ef\u4ee5\u5ffd\u7565\u8b66\u544a\u5e76\u8fdb\u5165\u767b\u5f55\u533a\u57df\u3002\u4f7f\u7528\u8d85\u7ea7\u7528\u6237\u51ed\u636e\u767b\u5f55 Cockpit\u3002<\/p>\n\n\n\n