{"id":8718,"date":"2024-09-14T10:01:53","date_gmt":"2024-09-14T02:01:53","guid":{"rendered":"http:\/\/999.zuizhuai.cn\/?p=8718"},"modified":"2024-09-14T10:01:53","modified_gmt":"2024-09-14T02:01:53","slug":"%e5%9f%ba%e4%ba%8eweb%e7%95%8c%e9%9d%a2%e7%ae%a1%e7%90%86linux%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=8718","title":{"rendered":"\u57fa\u4e8eweb\u754c\u9762\u7ba1\u7406Linux\u7cfb\u7edf"},"content":{"rendered":"<p><span style=\"font-size: 20px\"><strong>\u4e00\u3001\u6982\u8ff0<\/strong><\/span><\/p>\n<p><span style=\"font-size: 17px;letter-spacing: 0.578px;text-decoration: none\">Cockpit \u662f\u4e00\u4e2a\u57fa\u4e8e Web \u7684\u56fe\u5f62\u754c\u9762\u5de5\u5177\uff0c\u7528\u4e8e\u7ba1\u7406\u548c\u76d1\u63a7 Linux \u670d\u52a1\u5668\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u76f4\u89c2\u7684\u7528\u6237\u754c\u9762\uff0c\u8ba9\u7cfb\u7edf\u7ba1\u7406\u5458\u53ef\u4ee5\u4ece\u5355\u4e2a\u4f4d\u7f6e\u6267\u884c\u591a\u79cd\u7ba1\u7406\u4efb\u52a1\uff0c\u800c\u4e0d\u9700\u8981\u76f4\u63a5\u4f7f\u7528\u547d\u4ee4\u884c\u3002<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">&nbsp;<\/p>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">\u5b89\u88c5\uff1a<\/span><\/code><code><span class=\"code-snippet_outer\">yum\u00a0-y\u00a0install\u00a0cockpit*<\/span><\/code><code><span class=\"code-snippet_outer\">\u542f\u52a8\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/span><\/code><code><span class=\"code-snippet_outer\">systemctl enable --now cockpit.socket<\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"font-size: 20px\"><strong>\u4e8c\u3001\u4e3b\u8981\u529f\u80fd\u53ca\u4f18\u52bf<\/strong><\/span><\/p>\n<p>Cockpit \u7684\u4e3b\u8981\u529f\u80fd\u5305\u62ec\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">&nbsp;<\/p>\n<pre class=\"code-snippet__js\" data-lang=\"properties\"><code><span class=\"code-snippet_outer\">\u7cfb\u7edf\u76d1\u63a7\uff1a\u63d0\u4f9b CPU \u4f7f\u7528\u7387\u3001\u5185\u5b58\u4f7f\u7528\u7387\u548c\u78c1\u76d8\u7a7a\u95f4\u5229\u7528\u7387\u7b49\u7cfb\u7edf\u4fe1\u606f\u7684\u6982\u89c8\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u670d\u52a1\u7ba1\u7406\uff1a\u542f\u52a8\u3001\u505c\u6b62\u548c\u91cd\u542f\u670d\u52a1\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u7528\u6237\u7ba1\u7406\uff1a\u6dfb\u52a0\u3001\u5220\u9664\u7528\u6237\u8d26\u6237\u548c\u7ec4\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u7f51\u7edc\u914d\u7f6e\uff1a\u7ba1\u7406\u7f51\u7edc\u63a5\u53e3\u3001IP \u5730\u5740\u548c\u8def\u7531\u89c4\u5219\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u5b58\u50a8\u7ba1\u7406\uff1a\u7ba1\u7406\u6587\u4ef6\u7cfb\u7edf\u3001\u78c1\u76d8\u5206\u533a\u548c LVM \u5377\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u5bb9\u5668\u7ba1\u7406\uff1a\u7ba1\u7406 Docker \u5bb9\u5668\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u65e5\u5fd7\u67e5\u770b\uff1a\u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7\u548c\u5e94\u7528\u7a0b\u5e8f\u65e5\u5fd7\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u5b89\u5168\u8bbe\u7f6e\uff1a\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219\u548c SELinux \u8bbe\u7f6e\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u865a\u62df\u673a\u7ba1\u7406\uff1a\u521b\u5efa\u548c\u7ba1\u7406 KVM \u865a\u62df\u673a\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">Cockpit \u7684\u4e00\u5927\u4f18\u52bf\u5728\u4e8e\u5b83\u53ef\u4ee5\u96c6\u4e2d\u7ba1\u7406\u591a\u53f0\u670d\u52a1\u5668\u3002\u8fd9\u610f\u5473\u7740\u60a8\u53ef\u4ee5\u5728\u4e00\u4e2a\u754c\u9762\u4e0a\u76d1\u63a7\u548c\u7ba1\u7406\u591a\u53f0 Linux \u670d\u52a1\u5668\uff0c\u7b80\u5316\u4e86\u7ba1\u7406\u5de5\u4f5c\u6d41\u7a0b\u3002<\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"font-size: 20px\"><strong>\u4e09\u3001\u754c\u9762<\/strong><\/span><\/p>\n<p><strong>1\u3001\u767b\u5f55\u754c\u9762<br \/>\n<\/strong><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9463\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012344451.png\" width=\"1080\" height=\"489\" alt=\"20240916012344451\" title=\"20240916012344451\" \/><\/p>\n<p><span style=\"font-size: 17px\"><strong>2\u3001\u6982\u8ff0(\u7cfb\u7edf\u76d1\u63a7)<br \/>\n<\/strong><\/span><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9464\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012346405.png\" width=\"1080\" height=\"489\" alt=\"20240916012346405\" title=\"20240916012346405\" \/><\/p>\n<p><strong>3\u3001\u65e5\u5fd7\u67e5\u770b<\/strong><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9465\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012348530.png\" width=\"1080\" height=\"489\" alt=\"20240916012348530\" title=\"20240916012348530\" \/><\/p>\n<p><strong>4\u3001\u5b58\u50a8\u7ba1\u7406<\/strong><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9466\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012350421.png\" width=\"1080\" height=\"489\" alt=\"20240916012350421\" title=\"20240916012350421\" \/><\/p>\n<p><strong>5\u3001\u7f51\u7edc\u7ba1\u7406\uff0c\u9632\u706b\u5899\u8bbe\u7f6e\u548c\u6d41\u91cf\u76d1\u63a7<\/strong><\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9467\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012352574.png\" width=\"1080\" height=\"489\" alt=\"20240916012352574\" title=\"20240916012352574\" \/><span style=\"font-size: var(--articleFontsize);letter-spacing: 0.034em\">\u6dfb\u52a0\u533a\u57df\u548c<\/span><span style=\"font-size: var(--articleFontsize);letter-spacing: 0.034em\">\u9632\u706b\u5899<\/span><span style=\"font-size: var(--articleFontsize);letter-spacing: 0.034em\">\u51fa\u5165\u7ad9\u89c4\u5219<\/span><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9468\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012354177.png\" width=\"1080\" height=\"489\" alt=\"20240916012354177\" title=\"20240916012354177\" \/><\/p>\n<p style=\"text-align: left\">\n<p><strong>6\u3001\u5bb9\u5668\u7ba1\u7406<\/strong><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9469\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012356357.png\" width=\"1080\" height=\"489\" alt=\"20240916012356357\" title=\"20240916012356357\" \/><\/p>\n<p><strong>7\u3001KVM\u865a\u62df\u673a\u7ba1\u7406<\/strong><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9470\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012358470.png\" width=\"1080\" height=\"489\" alt=\"20240916012358470\" title=\"20240916012358470\" \/><\/p>\n<p><strong>8\u3001\u8bbe\u7f6e\u7528\u6237\u548c\u7ec4<\/strong><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9471\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012400582.png\" width=\"1080\" height=\"489\" alt=\"20240916012400582\" title=\"20240916012400582\" \/><\/p>\n<p><strong>9\u3001\u670d\u52a1\u7ba1\u7406<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9472\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012402771.png\" width=\"1080\" height=\"489\" alt=\"20240916012402771\" title=\"20240916012402771\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9473\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012403949.png\" width=\"1080\" height=\"489\" alt=\"20240916012403949\" title=\"20240916012403949\" \/><\/p>\n<p><strong>10\u3001\u7ec8\u7aef<\/strong><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9474\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012405812.png\" width=\"1080\" height=\"489\" alt=\"20240916012405812\" title=\"20240916012405812\" \/><\/p>\n<p><strong>11\u3001\u6dfb\u52a0\u670d\u52a1\u5668<\/strong><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9475\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240916012407175.png\" width=\"1080\" height=\"489\" alt=\"20240916012407175\" title=\"20240916012407175\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/mp.weixin.qq.com\/s?__biz=MzkzMzQ0NTg2NA==&amp;mid=2247484788&amp;idx=1&amp;sn=a420c21ed43ce8ec6a197687d9df1dd1&amp;chksm=c3873793dcec1f21bee0f27a0d19411e6e6978623f15eb5da04a49d81c518a4a821ca2db65ce&amp;mpshare=1&amp;scene=24&amp;srcid=0914OsKvP0CpVG0BQNZI01sM&amp;sharer_shareinfo=47e8c360ed031fc817065b290f9198a4&amp;sharer_shareinfo_first=47e8c360ed031fc817065b290f9198a4#rd<\/p>\n<section><\/section>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u6982\u8ff0 Cockpit \u662f\u4e00\u4e2a\u57fa\u4e8e Web \u7684\u56fe\u5f62\u754c\u9762\u5de5\u5177\uff0c\u7528\u4e8e\u7ba1\u7406\u548c\u76d1\u63a7 Linux \u670d\u52a1\u5668\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u76f4\u89c2\u7684\u7528\u6237\u754c\u9762\uff0c\u8ba9\u7cfb\u7edf\u7ba1\u7406\u5458\u53ef\u4ee5\u4ece\u5355\u4e2a\u4f4d\u7f6e\u6267\u884c\u591a\u79cd\u7ba1\u7406\u4efb\u52a1\uff0c\u800c\u4e0d\u9700\u8981\u76f4\u63a5\u4f7f\u7528\u547d\u4ee4\u884c\u3002 &nbsp; \u5b89\u88c5\uff1ayum\u00a0-y\u00a0insta&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[141,128],"tags":[167],"topic":[],"class_list":["post-8718","post","type-post","status-publish","format-standard","hentry","category-tools-soft","category-128","tag-linux"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/8718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8718"}],"version-history":[{"count":0,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/8718\/revisions"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8718"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8718"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=8718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}