{"id":5679,"date":"2024-04-26T20:17:16","date_gmt":"2024-04-26T12:17:16","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=5679"},"modified":"2024-04-26T20:17:16","modified_gmt":"2024-04-26T12:17:16","slug":"rocky-linux-%e7%9a%84%e6%93%8d%e4%bd%9c%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/5679.html","title":{"rendered":"Rocky Linux \u7684\u64cd\u4f5c\u5b66\u4e60"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u5f88\u4e45\u6ca1\u6709\u505aLinux\u7cfb\u7edf\u5b89\u88c5\u3001\u64cd\u4f5c\u7684\u4e8b\u60c5\u4e86\uff0c\u56e0\u4e3a\u5f53\u524d\u7684\u5de5\u4f5c\u5185\u5bb9\u4e2d\u6d89\u53ca\u4e0d\u5230\u8fd9\u90e8\u5206\uff0c\u7ffb\u770b\u8bb0\u5f55\uff0c\u6700\u8fd1\u7684\u8fd8\u662f6\u30017\u5e74\u524d\u81ea\u5df1\u5728 CentOS 7 \u7cfb\u7edf\u4e0a\u505a\u4e00\u4e9b\u6d4b\u8bd5\u624d\u6d89\u53ca\u90a3\u90e8\u5206\u7684\u5185\u5bb9\uff08\u4ee5\u4e3a CentOS \u7cfb\u7edf\u8fd8\u5728\u6b63\u5e38\u7ef4\u62a4\uff09\u3002\u6700\u8fd1\u56e0\u4e3a\u4e00\u4e9b\u539f\u56e0\u9700\u8981\u7528\u5230\u5f53\u524d\u6bd4\u8f83\u65b0\u7684 Rocky Linux \u7cfb\u7edf\uff0c\u624d\u77e5\u9053\u73b0\u5728 CentOS \u7cfb\u7edf\u7684\u53d1\u5c55\u53d8\u5316\uff0c\u4ee5\u53ca\u5f53\u524d\u7684\u4e00\u4e9b\u66ff\u4ee3\u7cfb\u7edf\u7684\u9009\u62e9\u3002\u5728\u6b64\u7b80\u5355\u8bb0\u5f55\u4e00\u4e0b\u5bf9 Rocky Linux \u7cfb\u7edf\u7684\u64cd\u4f5c\u5b66\u4e60\uff0c\u65b9\u4fbf\u540e\u9762\u6709\u9700\u8981\u7684\u65f6\u5019\u53c2\u8003\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<h4 class=\"wp-block-heading\">\u5982\u4f55\u68c0\u67e5\u5f53\u524d Rocky Linux \u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\uff1f<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cat \/etc\/os-release\n\n$ hostnamectl\n\n# \u539f\u6765 RHEL \u7cfb\u7edf\u4e0a\u7684 lsb_release \u547d\u4ee4\u9ed8\u8ba4\u662f\u4e0d\u5b58\u5728\u7684<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Rocky Linux \u5bf9\u4e8e\u6211\u6765\u8bf4\u7684\u4e3b\u8981\u53d8\u5316<\/h4>\n\n\n\n<p>\u5bf9\u6211\u6765\u8bf4 Rocky Linux 8\/9 \u76f8\u5bf9\u4e8e CentOS 7 \u6765\u8bf4\uff0c\u6700\u5927\u7684\u53d8\u5316\u5e94\u8be5\u662f\u4e0b\u9762\u51e0\u70b9\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u8f6f\u4ef6\u5b89\u88c5\/\u8f6f\u4ef6\u5305\u7ba1\u7406\uff08 dnf \u6210\u4e3a\u4e86\u9ed8\u8ba4\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\uff0c\u540c\u65f6 yum \u4ecd\u7136\u662f\u53ef\u7528\u7684\u2014\u2014yum\u4f1a\u94fe\u63a5\u5230dnf\uff09<\/li>\n\n\n\n<li>\u7f51\u7edc\u914d\u7f6e\uff08\u7528 nmcli\/ip \uff0c\u4e4b\u524d\u7684 ifconfig \u547d\u4ee4\u6ca1\u4e86\uff09<\/li>\n\n\n\n<li>\u5f15\u5165\u4e86 nftables \u4f5c\u4e3a iptables \u7684\u66ff\u4ee3\u54c1\uff08\u9632\u706b\u5899\u7ba1\u7406\uff09<\/li>\n\n\n\n<li>\u5185\u6838\u5347\u7ea7\u81f3 4.18 \u53ca\u4ee5\u4e0a\uff08 ebpf \u7684\u4e00\u4e9b\u80fd\u529b\u5e94\u8be5\u5c31\u53ef\u4ee5\u7528\u4e0a\u4e86\uff09<\/li>\n<\/ol>\n\n\n\n<p>\u4e00\u822c\u6765\u8bf4\uff0c\u6211\u53ea\u9700\u8981\u628a\u4e00\u4e9b\u5e38\u7528\u7684\u8f6f\u4ef6\u5b89\u88c5\u4e0a\u4e4b\u540e\uff0c\u65e5\u5e38\u4f7f\u7528\u662f\u6ca1\u6709\u4ec0\u4e48\u533a\u522b\u7684\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Rocky Linux \u5b89\u88c5\u540e\u7684\u4e00\u4e9b\u8bbe\u7f6e<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># \u53c2\u8003\u4e4b\u524d\u8bb0\u5f55\u7684CentOS\u6700\u5c0f\u5316\u5b89\u88c5\u540e\u7684\u4e00\u4e9b\u8bbe\u7f6e\uff0c\u4e3b\u8981\u662f\u5b89\u88c5\u4e00\u4e9b\u5e38\u7528\u5de5\u5177\n\n1. \u4fee\u6539\u955c\u50cf\u6e90(\u4fee\u6539\u955c\u50cf\u6e90\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u52a0\u5febyum\u7b49\u547d\u4ee4\u7684\u6267\u884c\u6548\u7387)\n2. \u5b89\u88c5gcc\u7b49\u6838\u5fc3\u5f00\u53d1\u5de5\u5177\n3. \u5b89\u88c5git\u7b49\u5e38\u7528\u5de5\u5177\n4. \u5b89\u88c5\/\u66f4\u65b0 Java\/Python\/PHP\/Golang\/... \u7248\u672c\n5. \u5b89\u88c5 ipython\u3001pip\u3001virtualenv \u7b49\u5de5\u5177\n6. \u4e3a Python\/Golang \u5b89\u88c5\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\uff0c\u6bd4\u5982 MySQLdb\n7. \u5b89\u88c5\u914d\u7f6e Tomcat\u3001Apache\u3001PHP\u3001MySQL \u7b49\u8f6f\u4ef6\uff08\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u6309\u9700\u5b89\u88c5\u548c\u914d\u7f6e\uff09\n\n\n# gcc \u7b49\u9009\u62e9\u5f00\u53d1\u5de5\u5177\n$ sudo dnf groupinstall 'Development Tools'\n$ sudo yum groupinstall 'Development Tools'\n\n# \u4e00\u4e9b\u57fa\u672c\u5de5\u5177\u6700\u5c0f\u5316\u5b89\u88c5\u53ef\u80fd\u6ca1\u6709(\u7ecf\u6d4b vim \u548c wget \u7b49\u6ca1\u6709\u5b89\u88c5)\nyum -y install vim wget zip unzip tar\n\n# \u4ee5\u4e0b\u7f51\u7edc\u5de5\u5177\u5df2\u7ecf\u4e0d\u5b58\u5728\n# yum -y install setuptool system-config-network-tui system-config-firewall-tui\n\n# \u9ed8\u8ba4\u5b89\u88c5\u6ca1\u6709 ifconfig \u547d\u4ee4\uff0c\u5b89\u88c5 net-tools\n# ifconfig\u3001netstat\u3001route \u7b49\u547d\u4ee4\u96c6\nyum -y install net-tools\n\n# host\u3001dig \u548c nslookup\nyum -y install bind-utils\n\n# \u66f4\u597d\u7684 top \u5de5\u5177\nyum -y install htop\n\n# \u6587\u4ef6\u4f20\u8f93\uff1asz \u548c rz\nyum -y install lrzsz\n\n# \u67e5\u770b\u65e5\u5fd7\u795e\u5668 Log file Navigator\nyum -y install lnav\n\n# NTP \u5df2\u7ecf\u5e9f\u5f03\uff0c\u6539\u7528 chrony\uff0c\u9ed8\u8ba4\u81ea\u5e26\n# yum -y install ntp\n\n# nc\nyum -y install nc\n\n# lsof\nyum -y install lsof\n\n# tree\nyum -y install tree\n\n# pstree\nyum -y install psmisc\n\n# ncdu\uff1aNCurses Disk Usage\nyum -y install ncdu #\u65b0\u589e\u5de5\u5177\uff0c\u6a21\u677f\u5c1a\u672a\u52a0\u5165\uff0c\u4e0b\u4e2a\u7248\u672c\u66f4\u65b0\n\n# dstat \u76d1\u63a7 CPU\u3001\u78c1\u76d8\u548c\u7f51\u7edc\u4f7f\u7528\u7387\uff0c\u4e0b\u4e2a\u7248\u672c\u52a0\u5165\nyum -y install dstat\n\n# \u66f4\u65b0\u8f6f\u4ef6\u5305\ndnf clean all\ndnf mackecache #\u7f13\u5b58\u8f6f\u4ef6\u5305\u4fe1\u606f\ndnf upgrade #\u66f4\u65b0\u8f6f\u4ef6\u5305<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Rocky Linux \u7684\u4e00\u4e9b\u7f51\u7edc\u914d\u7f6e\u67e5\u770b\u547d\u4ee4<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>ip addr  #\u67e5\u770b IP \u5730\u5740\nnmcli\nnmcli connection\nnmcli device show\nnmcli connection show\n\nnmcli c reload  #\u91cd\u65b0\u52a0\u8f7d\u7f51\u7edc\u914d\u7f6e\n\nping www.baidu.com  #\u6d4b\u8bd5\u7f51\u7edc\u662f\u5426\u6b63\u5e38\n\n# \u91cd\u542f\u7f51\u7edc\nsystemctl restart NetworkManager.service\nnmcli networking off &amp;&amp; nmcli networking on\n\nnmcli n #\u67e5\u770b nmcli \u72b6\u6001\nnmcli n on #\u542f\u52a8 nmcli\nnmcli c up eth0 #\u542f\u52a8\u7f51\u5361 eth0\nnmcli c down eth0 #\u5173\u95ed\u7f51\u5361 eth0\nnmcli d c eth0 #\u6fc0\u6d3b\u7f51\u5361\nnmcli d show eth0 #\u67e5\u770b\u7f51\u5361 eth0 \u4fe1\u606f\nnmcli r all off #\u5173\u95ed\u65e0\u7ebf<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">RHEL \u7cfb\u64cd\u4f5c\u7cfb\u7edf\u53d1\u884c\u7248\u54ea\u5bb6\u5f3a\uff1f<\/h4>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u592a\u957f\u4e0d\u770b<\/p>\n\n\n\n<p>\u957f\u8bdd\u77ed\u8bf4\uff0c\u5728\u73b0\u5728\u8fd9\u4e2a\u65f6\u95f4\u70b9\uff082023\u5e74\u5e95\uff09\u5982\u679c\u7528 EL \u7cfb\u5217\u64cd\u4f5c\u7cfb\u7edf\u53d1\u884c\u7248\uff0c\u7279\u522b\u662f\u5982\u679c\u8981\u8dd1 PostgreSQL \u76f8\u5173\u7684\u670d\u52a1\uff0c\u6211\u5f3a\u70c8\u63a8\u8350 RockyLinux\uff0c\u6709\u201c\u56fd\u4ea7\u5316\u201d\u8981\u6c42\u7684\u4e5f\u53ef\u4ee5\u9009\u9f99\u8725 OpenAnolis\u3002AlmaLinux \u548c OracleLinux \u517c\u5bb9\u6027\u6709\u70b9\u95ee\u9898\uff0c\u4e0d\u5efa\u8bae\u4f7f\u7528\u3002Euler \u5c5e\u4e8e\u72ec\u4e00\u6863\u7684 IT \u9886\u57df\u9884\u5236\u83dc\u8fdb\u6821\u56ed\uff0c\u6709 EL \u517c\u5bb9\u8981\u6c42\u7684\u53ef\u4ee5\u76f4\u63a5\u7565\u8fc7\u3002<\/p>\n\n\n\n<p>\u517c\u5bb9\u6c34\u5e73\uff1aRHEL = Rocky \u2248 Anolis &gt; Alma &gt; Oracle &gt;&gt; Euler \u3002<\/p>\n\n\n\n<p><strong>\u5728EL\u5927\u7248\u672c\u4e0a\uff0cEL7\u76ee\u524d\u7684\u72b6\u6001\u6700\u7a33\u5b9a\uff0c\u4f46\u9a6c\u4e0a EOL \u4e86\uff0c\u800c\u4e14\u5f88\u591a\u8f6f\u4ef6\u7248\u672c\u90fd\u592a\u8001\uff0c\u6240\u4ee5\u65b0\u4e0a\u7684\u9879\u76ee\u4e0d\u5efa\u8bae\u7528\u4e86<\/strong>\uff08\u6bd4\u5982 PG16 \u5c31\u4e0d\u63d0\u4f9b\u5b98\u65b9EL7\u5305\u4e86\uff09\uff1bEL 9 \u6700\u65b0\uff0c\u4f46\u5076\u5c14\u4f1a\u5728\u4ed3\u5e93\u6e90\u66f4\u65b0\u540e\u51fa\u73b0\u8f6f\u4ef6\u5305\u4f9d\u8d56\u9519\u8bef\u7684\u95ee\u9898\u3002\u6709\u4e9b\u8f6f\u4ef6\u4e5f\u8fd8\u6ca1\u8ddf\u8fdb EL9 \u7684\u5305\uff0c\u6bd4\u5982 Citus \/ RedisStack \/ Greenplum \u7b49\u3002<\/p>\n\n\n\n<p><strong>\u76ee\u524d\u7efc\u5408\u6765\u770b\uff0cEL8 \u662f\u4e3b\u6d41\u7684\u9009\u62e9\uff1a\u8f6f\u4ef6\u7248\u672c\u8db3\u591f\u65b0\uff0c\u4e5f\u8db3\u591f\u7a33\u5b9a\u3002\u5177\u4f53\u7684\u7248\u672c\u4e0a\u5efa\u8bae\u4f7f\u7528 RockyLinux 8.8\uff08Green Obsidian\uff09 \u6216 OpenAnolis 8.8 (rhck\u5185\u6838)\u3002<\/strong>\u6fc0\u8fdb\u7684\u7528\u6237\u53ef\u4ee5\u8bd5\u8bd5 9.1\/9.2 \uff0c\u4fdd\u5b88\u7684\u7528\u6237\u53ef\u4ee5\u63a5\u7740\u7528 CentOS 7.9 \u3002<\/p>\n<\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\">CentOS 8 \u7cfb\u7edf\u7684\u4e00\u4e9b\u65b0\u7279\u6027<\/h4>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Rocky Linux \u5176\u5b9e\u5c31\u662fcentos8\u7684\u66f4\u7a33\u5b9a\u7248\u672c\uff1acentos8 \u6d4b\u8bd5\u7248 &#8211;&gt; rhel8 &#8211;&gt; Rocky8<\/p>\n\n\n\n<p>CentOS 8 \u65b0\u7279\u6027<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DNF \u6210\u4e3a\u4e86\u9ed8\u8ba4\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\uff0c\u540c\u65f6 yum \u4ecd\u7136\u662f\u53ef\u7528\u7684\uff08yum \u662f dnf \u7684\u94fe\u63a5\uff09<\/li>\n\n\n\n<li>\u4f7f\u7528\u7f51\u7edc\u7ba1\u7406\u5668\uff08nmcli \u548c nmtui\uff09\u8fdb\u884c\u7f51\u7edc\u914d\u7f6e\uff0c\u79fb\u9664\u4e86\u7f51\u7edc\u811a\u672c<\/li>\n\n\n\n<li>\u4f7f\u7528 Podman \u8fdb\u884c\u5bb9\u5668\u7ba1\u7406<\/li>\n\n\n\n<li>\u5f15\u5165\u4e86\u4e24\u4e2a\u65b0\u7684\u5305\u4ed3\u5e93\uff1aBaseOS \u548c AppStream<\/li>\n\n\n\n<li>\u4f7f\u7528 Cockpit \u4f5c\u4e3a\u9ed8\u8ba4\u7684\u7cfb\u7edf\u7ba1\u7406\u5de5\u5177<\/li>\n\n\n\n<li>\u9ed8\u8ba4\u4f7f\u7528 Wayland \u4f5c\u4e3a\u663e\u793a\u670d\u52a1\u5668<\/li>\n\n\n\n<li>iptables \u5c06\u88ab nftables \u53d6\u4ee3<\/li>\n\n\n\n<li>\u4f7f\u7528 Linux \u5185\u6838 4.18<\/li>\n\n\n\n<li>\u52a8\u6001\u7f16\u7a0b\u8bed\u8a00\u3001Web \u548c\u6570\u636e\u5e93\u670d\u52a1\u5668<\/li>\n\n\n\n<li>Python 3.6 \u662f\u9ed8\u8ba4\u7684 Python \u73af\u5883\uff0c\u652f\u6301 Python 2.7<\/li>\n\n\n\n<li>Node.js \u662f\u5728 RHEL \u6700\u65b0\u5305\u542b\u7684\uff0c\u5176\u4ed6\u52a8\u6001\u8bed\u8a00\u66f4\u65b0\u5305\u62ec: PHP 7.2 , Ruby 2.5 , Perl 5.26 , SWIG 3.0<\/li>\n\n\n\n<li>RHEL 8 \u63d0\u4f9b\u7684\u6570\u636e\u5e93\u670d\u52a1\u5305\u62ec\uff1aMariaDB 10.3 , MySQL 8.0 , PostgreSQL 10 , PostgreSQL 9.6 , \u548c Redis 5<\/li>\n\n\n\n<li>RHEL 8 \u63d0\u4f9b Apache HTTP Server 2.4 \u4ee5\u53ca\u9996\u6b21\u5f15\u5165\u7684, nginx 1.14<\/li>\n\n\n\n<li>Squid \u7248\u672c\u5347\u7ea7\u5230 4.4 \uff0c\u540c\u65f6\u4e5f\u9996\u6b21\u63d0\u4f9b Varnish Cache 6.0<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>CentOS 8\u57282019\u5e74\u53d1\u5e03\uff0c\u5e26\u6765\u4e86\u6bd4CentOS 7\u66f4\u591a\u7684\u65b0\u7279\u6027\u548c\u6539\u8fdb\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u4e3b\u8981\u7684\u53d8\u5316\u548c\u4f18\u5316\uff1a<\/p>\n\n\n\n<p>\u8f6f\u4ef6\u5305\u66f4\u65b0\uff1aCentOS 8\u63d0\u4f9b\u4e86\u66f4\u65b0\u7684\u8f6f\u4ef6\u5305\u548c\u7a0b\u5e8f\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8ePython 3\u3001MySQL 8\u3001PHP 7.2\u3001Ruby 2.5\u3001PostgreSQL 10\u7b49\u3002<\/p>\n\n\n\n<p>\u5e94\u7528\u6d41\uff1a\u5f15\u5165\u4e86\u201c\u5e94\u7528\u6d41\u201d\uff08Application Streams\uff09\u7684\u6982\u5ff5\uff0c\u5141\u8bb8\u7528\u6237\u9009\u62e9\u4e0d\u540c\u7248\u672c\u7684\u5e94\u7528\u8f6f\u4ef6\u6765\u5b89\u88c5\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\uff0c\u8fd9\u662f\u901a\u8fc7\u6a21\u5757\u5316\u8d44\u6e90\u5e93\u5b9e\u73b0\u7684\u3002<\/p>\n\n\n\n<p>DNF\u5305\u7ba1\u7406\u5668\uff1aCentOS 8\u4f7f\u7528DNF\u4f5c\u4e3a\u5176\u9ed8\u8ba4\u7684\u5305\u7ba1\u7406\u5668\uff0c\u53d6\u4ee3\u4e86YUM\u3002DNF\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u6027\u80fd\uff0c\u66f4\u51c6\u786e\u7684\u4f9d\u8d56\u89e3\u6790\uff0c\u4ee5\u53ca\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n\n\n\n<p>Web\u63a7\u5236\u53f0\uff1aCentOS 8\u96c6\u6210\u4e86Cockpit\uff0c\u8fd9\u662f\u4e00\u4e2a\u57fa\u4e8eWeb\u7684\u7cfb\u7edf\u7ba1\u7406\u5de5\u5177\uff0c\u5141\u8bb8\u7ba1\u7406\u5458\u901a\u8fc7\u6d4f\u89c8\u5668\u6267\u884c\u65e5\u5e38\u7ba1\u7406\u4efb\u52a1\u3002<\/p>\n\n\n\n<p>\u5185\u6838\uff1aCentOS 8\u5347\u7ea7\u5230\u4e864.18\u7248\u672c\u7684Linux\u5185\u6838\uff0c\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u786c\u4ef6\u652f\u6301\u548c\u6027\u80fd\u3002<\/p>\n\n\n\n<p>\u5b89\u5168\uff1a\u589e\u5f3a\u4e86\u5b89\u5168\u7279\u6027\uff0c\u5305\u62ec\u652f\u6301OpenSSL 1.1.1\u548cTLS 1.3\u3002SELinux\u7684\u7b56\u7565\u4e5f\u5f97\u5230\u4e86\u66f4\u65b0\u548c\u6539\u8fdb\u3002<\/p>\n\n\n\n<p>\u7f51\u7edc\uff1a\u5f15\u5165\u4e86nftables\u4f5c\u4e3aiptables\u7684\u66ff\u4ee3\u54c1\uff0c\u63d0\u4f9b\u4e86\u66f4\u73b0\u4ee3\u548c\u66f4\u7075\u6d3b\u7684\u7f51\u7edc\u8fc7\u6ee4\u6846\u67b6\u3002<\/p>\n\n\n\n<p>\u865a\u62df\u5316\uff1a\u6539\u8fdb\u4e86\u5bf9KVM\u865a\u62df\u5316\u7684\u652f\u6301\uff0c\u5e76\u4e14\u5f15\u5165\u4e86\u65b0\u7684\u865a\u62df\u5316\u7ba1\u7406\u5de5\u5177\uff0c\u6bd4\u5982Virt-Manager\u7684\u65b0\u7248\u672c\u3002<\/p>\n\n\n\n<p>\u5bb9\u5668\u5316\u548c\u7f16\u6392\uff1a\u63d0\u4f9b\u4e86\u5bf9Podman\u548cBuildah\u7684\u652f\u6301\uff0c\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u66ff\u4ee3Docker\u6765\u521b\u5efa\u548c\u7ba1\u7406\u5bb9\u5668\u3002\u540c\u65f6\uff0cCentOS 8\u652f\u6301Kubernetes\u4f5c\u4e3a\u5bb9\u5668\u7f16\u6392\u5e73\u53f0\u3002<\/p>\n\n\n\n<p>\u6587\u4ef6\u7cfb\u7edf\uff1a\u5bf9Stratis\u548cVDO\uff08\u5377\u91cd\u590d\u6570\u636e\u5220\u9664\u548c\u538b\u7f29\uff09\u7684\u652f\u6301\uff0c\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u5b58\u50a8\u4f18\u5316\u9009\u9879\u3002<\/p>\n\n\n\n<p>\u7f16\u7a0b\u8bed\u8a00\u548c\u5de5\u5177\u94fe\uff1a\u66f4\u65b0\u4e86GCC\uff08GNU Compiler Collection\uff09\u548c\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u7684\u5de5\u5177\u94fe\uff0c\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u66f4\u73b0\u4ee3\u7684\u73af\u5883\u3002<\/p>\n\n\n\n<p>\u7cfb\u7edf\u6027\u80fd\u7ba1\u7406\uff1a\u6539\u8fdb\u4e86\u6027\u80fd\u76d1\u63a7\u5de5\u5177\uff0c\u5982Performance Co-Pilot (PCP)\u548cTuned\u3002<\/p>\n\n\n\n<p>\u56fe\u5f62\u754c\u9762\uff1a\u66f4\u65b0\u4e86GNOME\u684c\u9762\u73af\u5883\u5230\u66f4\u73b0\u4ee3\u7684\u7248\u672c\uff0c\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n\n\n\n<p>BaseOS\u548cAppStream\uff1aCentOS 8\u5c06\u8f6f\u4ef6\u5305\u5206\u4e3a\u4e24\u4e2a\u4e3b\u8981\u7684\u8d44\u6e90\u5e93\uff0cBaseOS\u63d0\u4f9b\u4e86\u64cd\u4f5c\u7cfb\u7edf\u7684\u57fa\u7840\u90e8\u5206\uff0c\u800cAppStream\u5305\u542b\u4e86\u5404\u79cd\u5e94\u7528\u8f6f\u4ef6\u3002<\/p>\n\n\n\n<p>CentOS 8\u7684\u8fd9\u4e9b\u6539\u8fdb\u548c\u65b0\u7279\u6027\u65e8\u5728\u4e3a\u7528\u6237\u63d0\u4f9b\u66f4\u5f3a\u5927\u3001\u66f4\u7075\u6d3b\u4e14\u66f4\u5b89\u5168\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u7136\u800c\uff0c\u7531\u4e8eCentOS\u9879\u76ee\u7684\u65b9\u5411\u57282021\u5e74\u672b\u53d1\u751f\u4e86\u53d8\u5316\uff0cCentOS Linux 8\u7684\u751f\u547d\u5468\u671f\u6bd4\u9884\u671f\u7684\u8981\u77ed\uff0c\u652f\u6301\u57282021\u5e74\u5e95\u7ed3\u675f\uff0c\u800cCentOS Stream\u6210\u4e3a\u4e86\u9879\u76ee\u7684\u672a\u6765\u3002<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u4e00\u3001\u80cc\u666f\u4ecb\u7ecd<\/p>\n\n\n\n<p>\u9f99\u8725\u793e\u533a\uff08OpenAnolis\uff09\u662f\u7531\u963f\u91cc\u5df4\u5df4\u3001\u817e\u8baf\u3001\u534e\u4e3a\u7b49\u4f17\u591a\u5934\u90e8\u4f01\u4e1a\u8054\u5408\u53d1\u8d77\u7684\u5f00\u6e90\u6839\u793e\u533a\u53ca\u521b\u65b0\u5e73\u53f0\uff0c\u65e8\u5728\u6784\u5efa\u4e00\u4e2a\u4e2d\u7acb\u3001\u5f00\u653e\u3001\u5305\u5bb9\u7684\u5f00\u6e90\u6839\u793e\u533a\uff0c\u63a8\u52a8\u64cd\u4f5c\u7cfb\u7edf\u521b\u65b0\u3002\u9f99\u8725\u64cd\u4f5c\u7cfb\u7edf\uff08Anolis\uff09\u662f\u57fa\u4e8e\u5f00\u6e90Linux\u5185\u6838\u5f00\u53d1\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u9002\u7528\u4e8e\u4e91\u8ba1\u7b97\u3001\u670d\u52a1\u5668\u7b49\u573a\u666f\u3002<\/p>\n\n\n\n<p>Rocky Linux\u662f\u4e00\u4e2a\u7531Rocky Enterprise Software Foundation\u5f00\u53d1\u7684\u5f00\u6e90\u64cd\u4f5c\u7cfb\u7edf\uff0c\u65e8\u5728\u6210\u4e3a\u4e00\u4e2a\u7a33\u5b9a\u3001\u53ef\u9760\u4e14\u6613\u4e8e\u7ef4\u62a4\u7684\u670d\u52a1\u5668\u64cd\u4f5c\u7cfb\u7edf\u3002\u5b83\u4e13\u6ce8\u4e8e\u4e3a\u4f01\u4e1a\u63d0\u4f9b\u9ad8\u8d28\u91cf\u7684\u3001\u957f\u671f\u7a33\u5b9a\u7684\u4f01\u4e1a\u7ea7\u652f\u6301\uff0c\u4ee5\u53ca\u5f3a\u5927\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002<\/p>\n\n\n\n<p>\u56db\u3001\u9002\u7528\u573a\u666f\uff1a<\/p>\n\n\n\n<p>\u9f99\u8725\u64cd\u4f5c\u7cfb\u7edf\uff08Anolis\uff09\uff1a\u9002\u7528\u4e8e\u4e91\u8ba1\u7b97\u3001\u670d\u52a1\u5668\u7b49\u573a\u666f\uff0c\u7279\u522b\u662f\u9700\u8981\u7075\u6d3b\u6027\u548c\u4e30\u5bcc\u529f\u80fd\u7684\u573a\u666f\u3002\u5b83\u9002\u7528\u4e8e\u5404\u79cd\u89c4\u6a21\u7684\u4f01\u4e1a\uff0c\u5305\u62ec\u5927\u578b\u4f01\u4e1a\u548c\u9700\u8981\u90e8\u7f72\u5927\u89c4\u6a21\u4e91\u8ba1\u7b97\u7cfb\u7edf\u7684\u673a\u6784\u3002\u5bf9\u4e8e\u90a3\u4e9b\u5e0c\u671b\u66ff\u4ee3CentOS\u7684\u4f01\u4e1a\u6765\u8bf4\uff0c\u9f99\u8725\u64cd\u4f5c\u7cfb\u7edf\uff08Anolis\uff09\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7a33\u5b9a\u3001\u53ef\u9760\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n\n\n\n<p>Rocky Linux\uff1a\u9002\u7528\u4e8e\u9700\u8981\u957f\u671f\u7a33\u5b9a\u652f\u6301\u3001\u53ef\u9760\u6027\u548c\u5353\u8d8a\u6027\u80fd\u7684\u4f01\u4e1a\u7ea7\u5e94\u7528\u573a\u666f\u3002\u5b83\u9002\u5408\u90a3\u4e9b\u5e0c\u671b\u4f7f\u7528\u4e00\u4e2a\u7b80\u6d01\u3001\u6613\u4e8e\u7ef4\u62a4\u548c\u7ba1\u7406\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684\u4f01\u4e1a\u3002\u5bf9\u4e8e\u90a3\u4e9b\u5bf9\u6027\u80fd\u8981\u6c42\u8f83\u9ad8\u6216\u5e0c\u671b\u4f7f\u7528\u7ecf\u8fc7\u957f\u65f6\u95f4\u9a8c\u8bc1\u7684\u7cfb\u7edf\u7684\u4f01\u4e1a\u6765\u8bf4\uff0cRocky Linux\u53ef\u80fd\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p>\n\n\n\n<p>\u7efc\u4e0a\u6240\u8ff0\uff0c\u9f99\u8725\u64cd\u4f5c\u7cfb\u7edf\uff08Anolis\uff09\u548cRocky Linux\u90fd\u6709\u5404\u81ea\u7684\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\u3002\u5bf9\u4e8e\u56fd\u5185\u4f01\u4e1a\u800c\u8a00\uff0c\u9009\u62e9\u54ea\u4e2a\u7cfb\u7edf\u5e94\u8be5\u57fa\u4e8e\u81ea\u8eab\u7684\u5b9e\u9645\u9700\u6c42\u8fdb\u884c\u51b3\u7b56\u3002\u5982\u679c\u4f01\u4e1a\u9700\u8981\u4e00\u4e2a\u529f\u80fd\u4e30\u5bcc\u3001\u9488\u5bf9\u4e91\u8ba1\u7b97\u573a\u666f\u8fdb\u884c\u4f18\u5316\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u540c\u65f6\u5e0c\u671b\u83b7\u5f97\u5e7f\u6cdb\u7684\u6280\u672f\u652f\u6301\u548c\u89e3\u51b3\u65b9\u6848\uff0c\u90a3\u4e48\u9f99\u8725\u64cd\u4f5c\u7cfb\u7edf\uff08Anolis\uff09\u53ef\u80fd\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u800c\u5982\u679c\u4f01\u4e1a\u66f4\u770b\u91cd\u957f\u671f\u7a33\u5b9a\u7684\u4f01\u4e1a\u7ea7\u652f\u6301\u3001\u7b80\u6d01\u6613\u7528\u7684\u7cfb\u7edf\u73af\u5883\u4ee5\u53ca\u53ef\u9884\u6d4b\u7684\u6027\u80fd\u8868\u73b0\uff0c\u90a3\u4e48Rocky Linux\u53ef\u80fd\u66f4\u9002\u5408\u3002<\/p>\n<\/blockquote>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<p>EL\u7cfb\u64cd\u4f5c\u7cfb\u7edf\u53d1\u884c\u7248\u54ea\u5bb6\u5f3a\uff1f<br><a href=\"https:\/\/mp.weixin.qq.com\/s\/MANvCIUS1uMzwY6PqVpK7g\">https:\/\/mp.weixin.qq.com\/s\/MANvCIUS1uMzwY6PqVpK7g<\/a><\/p>\n\n\n\n<p>\u56fe\u89e3 Rocky Linux 9 \u5b89\u88c5\u6b65\u9aa4 | Linux \u4e2d\u56fd<br><a href=\"https:\/\/mp.weixin.qq.com\/s\/8a9di8RD-djFCe0d81J1iw\">https:\/\/mp.weixin.qq.com\/s\/8a9di8RD-djFCe0d81J1iw<\/a><br><a href=\"https:\/\/www.linuxtechi.com\/how-to-install-rocky-linux-9-step-by-step\/\">https:\/\/www.linuxtechi.com\/how-to-install-rocky-linux-9-step-by-step\/<\/a><\/p>\n\n\n\n<p>Installing Rocky Linux 9<br><a href=\"https:\/\/docs.rockylinux.org\/guides\/installation\/\">https:\/\/docs.rockylinux.org\/guides\/installation\/<\/a><\/p>\n\n\n\n<p>Installing Rocky Linux 8<br><a href=\"https:\/\/docs.rockylinux.org\/guides\/8_6_installation\/\">https:\/\/docs.rockylinux.org\/guides\/8_6_installation\/<\/a><\/p>\n\n\n\n<p>\u6807\u7b7e\uff1a Rocky Linux<br><a href=\"https:\/\/rockylinux.cn\/tag\/rocky-linux\">https:\/\/rockylinux.cn\/tag\/rocky-linux<\/a><\/p>\n\n\n\n<p>Rocky Linux 9 \u4ece\u5165\u95e8\u5230\u7cbe\u901a003 &#8212; \u7f51\u7edc\u914d\u7f6e<br><a href=\"https:\/\/mp.weixin.qq.com\/s\/NMPL_ubw1sjMLI-fLBNamg\">https:\/\/mp.weixin.qq.com\/s\/NMPL_ubw1sjMLI-fLBNamg<\/a><\/p>\n\n\n\n<p>DNF package manager<br><a href=\"https:\/\/docs.rockylinux.org\/guides\/package_management\/dnf_package_manager\/\">https:\/\/docs.rockylinux.org\/guides\/package_management\/dnf_package_manager\/<\/a><\/p>\n\n\n\n<p>14-Rocky Linux \u8f6f\u4ef6\u7ba1\u7406<br><a href=\"https:\/\/mp.weixin.qq.com\/s\/ripzUOviXUVSbaiEAfSSyg\">https:\/\/mp.weixin.qq.com\/s\/ripzUOviXUVSbaiEAfSSyg<\/a><\/p>\n\n\n\n<p>2-Rocky Linux \u9ad8\u7ea7\u5b89\u88c5\u9009\u9879<br><a href=\"https:\/\/mp.weixin.qq.com\/s\/v4UqV-5Q_ywxJaqplR964w\">https:\/\/mp.weixin.qq.com\/s\/v4UqV-5Q_ywxJaqplR964w<\/a><\/p>\n\n\n\n<p>Rocky Linux\u7b80\u5355\u64cd\u4f5c #nice<br><a href=\"https:\/\/mp.weixin.qq.com\/s\/jsJnle4TgD0CJOVE9KIkbA\">https:\/\/mp.weixin.qq.com\/s\/jsJnle4TgD0CJOVE9KIkbA<\/a><\/p>\n\n\n\n<p>CentOS 8\u7684\u65b0\u7279\u6027<br><a href=\"https:\/\/blog.csdn.net\/lpw_cn\/article\/details\/135150330\">https:\/\/blog.csdn.net\/lpw_cn\/article\/details\/135150330<\/a><\/p>\n\n\n\n<p>Check Rocky Linux release in shell script<br><a href=\"https:\/\/forums.rockylinux.org\/t\/check-rocky-linux-release-in-shell-script\/3912\">https:\/\/forums.rockylinux.org\/t\/check-rocky-linux-release-in-shell-script\/3912<\/a><br><a href=\"https:\/\/medium.com\/@liwp.stephen\/check-linux-os-version-from-command-line-cb7294432c45\">https:\/\/medium.com\/@liwp.stephen\/check-linux-os-version-from-command-line-cb7294432c45<\/a><\/p>\n\n\n\n<p>\u7cbe\u7b80\u7248CentOS\u5b89\u88c5\u540e\u8bbe\u7f6e<br><a href=\"https:\/\/ixyzero.com\/blog\/archives\/1763.html\">https:\/\/ixyzero.com\/blog\/archives\/1763.html<\/a><\/p>\n\n\n\n<p>\u5982\u4f55\u5728\u6700\u5c0f\u5b89\u88c5\u7684 CentOS\u3001RHEL\u3001Rocky Linux \u4e2d\u8bbe\u7f6e\u4e92\u8054\u7f51 | Linux \u4e2d\u56fd<br><a href=\"https:\/\/mp.weixin.qq.com\/s\/GuhF40CTGQRYUUhXE06heQ\">https:\/\/mp.weixin.qq.com\/s\/GuhF40CTGQRYUUhXE06heQ<\/a><\/p>\n\n\n\n<p>\u9f99\u8725\uff08Anolis\uff09\u7cfb\u7edf\u4e0eRocky Linux\uff1a\u8c01\u66f4\u9002\u7528\u4e8e\u56fd\u5185\u4f01\u4e1a<br><a href=\"https:\/\/blog.csdn.net\/weixin_53391173\/article\/details\/134107342\">https:\/\/blog.csdn.net\/weixin_53391173\/article\/details\/134107342<\/a><\/p>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u5f88\u4e45\u6ca1\u6709\u505aLinux\u7cfb\u7edf\u5b89\u88c5\u3001\u64cd\u4f5c\u7684\u4e8b\u60c5\u4e86\uff0c\u56e0\u4e3a\u5f53\u524d\u7684\u5de5\u4f5c\u5185\u5bb9\u4e2d\u6d89\u53ca\u4e0d\u5230\u8fd9\u90e8\u5206\uff0c\u7ffb\u770b\u8bb0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,11,12],"tags":[2255,28,2256,30,2254,2253,2257,2252],"class_list":["post-5679","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-linux","category-tools","tag-anolis","tag-centos","tag-dnf","tag-linux","tag-nmcli","tag-os-release","tag-rocky","tag-rockylinux"],"views":2586,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=5679"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5679\/revisions"}],"predecessor-version":[{"id":5680,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5679\/revisions\/5680"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=5679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=5679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=5679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}