全书此前是真·五五开:含中文的括号 336 处半角 : 336 处全角,而且**在同一文件 内混用**——`18_security/18.1_kernel_ns.md` 第 11/17/20 行写 `(如 runC)`, 第 31 行写 `(用户命名空间映射)`。这不是体例问题,是它自己跟自己不一致。 集群里其余 13 本都一边倒(llm_internals 5 : 1049、oc_guide 2 : 713、 forward_deployed_engineering_guide 0 : 108),blockchain_guide 已在 2026-08-05 按同一方向统一过 97 处,故取全角,而非另立新规。全角括号前后不留空格, 原先 `概念 (镜像、容器、仓库) 和` 两侧的空格一并收掉。 **纯拉丁内容的半角括号一个没动**——`新建一个层 (Layer)`、`项目 (project)` 保持原样:改动前后「半角且内容纯拉丁」的数量都是 **1163**,而「半角且含中文」 从 **336 变成 0**。 其余验证:改动前后各自抹掉全部空白与圆括号后**逐字节相同**(两侧均 19559 字符); 左右括号总数改动前后都是 399 : 399,证明没有吞括号也没有配错对。 `check_project_rules` 202/202、`check_emphasis` 202/202、37 tests OK、 根 `format_checker` 与 `validate_codeblocks` 干净、`git diff --check` 干净。
3.0 KiB
20.4 CentOS Fedora
20.4.1 CentOS 系统简介
CentOS 和 Fedora 都是基于 Redhat 的常见 Linux 分支。传统 CentOS Linux 曾是企业级服务器的常用操作系统,但相关 Docker 官方镜像已停止维护;新部署通常应评估 Rocky Linux、AlmaLinux、CentOS Stream 或直接使用 RHEL/UBI 等替代方案。Fedora 则主要面向个人桌面用户。
CentOS(Community Enterprise Operating System,中文意思是:社区企业操作系统),它是基于 Red Hat Enterprise Linux 源代码编译而成。由于 CentOS 与 Redhat Linux 源于相同的代码基础,所以很多成本敏感且需要高稳定性的公司就使用 CentOS 来替代商业版 Red Hat Enterprise Linux。CentOS 自身不包含闭源软件。
使用 CentOS 官方镜像
CentOS 官方镜像的使用非常简单。
注意:CentOS 8 已于 2021 年 12 月 31 日停止维护 (EOL),CentOS 7 已于 2024 年 6 月 30 日停止维护。对于新部署,推荐使用 Rocky Linux、AlmaLinux 或 CentOS Stream 等替代发行版。
使用 docker run 直接运行 CentOS 7 镜像,并登录 bash。
$ docker run -it centos:7 bash
Unable to find image 'centos:7' locally
7: Pulling from library/centos
3d8673bd162a: Pull complete
Digest: sha256:a66ffcb73930584413de83311ca11a4cb4938c9b2521d331026dad970c19adf4
Status: Downloaded newer image for centos:7
[root@43eb3b194d48 /]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
20.4.2 Fedora 系统简介
下图直观地展示了本节内容:
Fedora 是由 Fedora Project 社区开发、红帽公司赞助的 Linux 发行版。它的目标是创建一套新颖、多功能并且自由和开源的操作系统。Fedora 的功能对于用户而言,它是一套功能完备的,可以更新的免费操作系统,而对赞助商 Red Hat 而言,它是许多新技术的测试平台。被认为可用的技术最终会加入到 Red Hat Enterprise Linux 中。
使用 Fedora 官方镜像
使用 docker run 命令直接运行 Fedora 官方镜像,并登录 bash。
$ docker run -it fedora bash
Unable to find image 'fedora:latest' locally
latest: Pulling from library/fedora
2bf01635e2a0: Pull complete
Digest: sha256:64a02df6aac27d1200c2572fe4b9949f1970d05f74d367ce4af994ba5dc3669e
Status: Downloaded newer image for fedora:latest
[root@196ca341419b /]# cat /etc/redhat-release
Fedora release 43 (Forty Three)
20.4.3 相关资源
Fedora官网:https://fedoraproject.org/Fedora官方仓库:https://github.com/fedora-infraFedora官方镜像:https://hub.docker.com/_/fedora/Fedora官方镜像仓库:https://github.com/fedora-cloud/docker-brew-fedoraCentOS官网:https://www.centos.orgCentOS官方仓库:https://github.com/CentOSCentOS官方镜像:https://hub.docker.com/_/centos/CentOS官方镜像仓库:https://github.com/CentOS/CentOS-Dockerfiles

