1.准备镜像
2.开始安装


















3.登陆

4.初始化配置
1)修改网卡配置
命令行输入nmtui







2)修改主机名




命令行输入exec bash 查看主机名
ip a 查看ip
ping www.baidu.com 测试网络通联
exec bash
ip a
ping www.baidu.com -c 2

3)设置防火墙和selinux
现在我们可以使用远射连接工具来连接了
sed -i 's/SELINUX=enforcing/SELINUX=disenabled/g' /etc/selinux/config && setenforce 0 && getenforce
systemctl disable --now firewalld
4)换源
dnf install -y wget vim
mkdir /etc/yum.repos.d/back && cp /etc/yum.repos.d/*.repo /etc/yum.repos.d/back
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.aliyun.com/rockylinux|g' \
-i.bak \
/etc/yum.repos.d/Rocky-*.repo
dnf makecache
本文详细介绍了如何在RockyLinux上进行安装,包括下载镜像、登录系统、初始化配置(修改网卡、主机名,禁用SELinux和firewalld),以及切换至阿里云镜像源并更新仓库。
2135

被折叠的 条评论
为什么被折叠?



