CentOS Stream 8 是 Red Hat 推出的滚动发布版(介于 Fedora 和 RHEL 之间),适合想了解 RHEL 生态、但又想用较新软件的人。下面从定位 → 安装 → 基础命令 → 系统管理 → 学习路径给你一个入门路线。
如果你只是想“学 Linux”,Ubuntu / Debian 也行;但想进企业运维,CentOS Stream / Rocky / Alma 更接近真实环境。
/ + swap(新手够用)pwd # 当前目录
ls -l # 查看文件
cd # 切换目录
cat # 看文件
vi # 编辑文件
cp mv rm # 复制 移动 删除
网络相关:
ip addr
ping baidu.com
CentOS Stream 8 用 dnf(yum 的升级版)
dnf update
dnf install vim wget net-tools
换国内源(推荐):
mv /etc/yum.repos.d/CentOS-Stream-*.repo /tmp/
curl -o /etc/yum.repos.d/CentOS-Stream.repo https://mirrors.aliyun.com/repo/Centos-8-stream.repo
dnf makecache
useradd test
passwd test
chmod 755 file
chown user:user file
systemctl start nginx
systemctl enable nginx
systemctl status nginx
rm -rf /man 命令journalctl -xe如果你愿意,我可以:
你想从哪一步开始?