“CentOS Minimal”(最小化安装)只包含最基础的系统组件,能满足启动、登录、网络和包管理,但很多常用功能/命令默认都没有。
下面按类别给你总结:CentOS Minimal 缺什么 + 该怎么补。
| 缺失内容 | 说明 | 安装方式 |
|---|---|---|
wget |
下载文件 | yum install wget |
curl |
HTTP 请求 | yum install curl |
vim |
编辑器 | yum install vim |
net-tools |
ifconfig、netstat |
yum install net-tools |
bash-completion |
命令补全 | yum install bash-completion |
| 缺失内容 | 说明 |
|---|---|
ping |
默认没有 |
telnet |
测试端口 |
traceroute |
路由追踪 |
ss |
有,但 netstat 没有 |
安装:
yum install iputils telnet traceroute net-tools
yum install lsof tree unzip zip psmisc
常用:
lsof:查看端口/文件占用tree:目录结构psmisc:killall、pstreeyum groupinstall "Development Tools"
包含:
gccmakeautoconfbinutilsyum install gcc-c++ kernel-devel
firewalld:Minimal 通常没有yum install firewalld
systemctl enable --now firewalld
yum install chrony
systemctl enable --now chronyd
yum install policycoreutils-python-utils
❌ 图形界面
❌ 桌面环境
❌ 浏览器
❌ 数据库(MySQL / PostgreSQL)
❌ Web 服务(Nginx / Apache)
❌ Docker(需手动装)
✅ systemd
✅ yum / dnf
✅ ssh(sshd)
✅ 基础网络
✅ root 用户
yum update -y
yum install -y \
wget curl vim net-tools \
bash-completion lsof tree unzip \
firewalld chrony
如果你告诉我:
我可以直接给你一份定制版初始化脚本。