红帽子linux光盘安装教程,红帽Linux光盘安装步骤

题图来自Unsplash,基于CC0协议
导读
加载ISO镜像的方法:使用刻录软件把光盘镜像文件刻录到空白光盘,然后在BIOS中设置光驱为第一启动设备。
安装介质准备 准备一个可用的8GB以上U盘作为启动盘,使用RHEL官方推荐的Live Image ISO文件启动系统,确保在BIOS模式下关闭Secure Boot功能。
基础硬件检查 安装过程中发现RAID控制器驱动未检测到,需要在BIOS中提前加载Adaptec Array Utility驱动程序。
内存配置优化 建议配置时选择"Extreme Memory Profile",关闭Intel Memory Optimization Technologies中的NUMA功能,适用于多路服务器部署场景。
分区策略选择 生产环境选择"Custom-Size"分区方式,在"disk/partition"目录下配置vdb磁盘200G作为数据盘,设置为XFS文件系统,blksize=8K。
网络配置设置 采用基于主机名的网络配置:
[网络] version: bond-bash-mp1 connection:
- eth0: bond-slave bond0
- eth1: bond-slave bond0
nameserver 10.192.16.53 search domain-example.com
安装源配置 使用物理光盘:install cdrom
[root@localhost]# subscription-manager register --username=your_redhat_id [root@localhost]# subscription-manager attach --auto
核心服务选择 默认选择Kickstart无人值守安装,配置%packages部分时保留基础组件:
@base @development-tools @file-server @web-server @database-server
防火墙配置 开发环境选择关闭防火墙,生产环境需配置:
Firewall configuration
enabled: true port:
- ssh: { port : 22, protocol : tcp}
- http: { port : 80, protocol : tcp}
- https: { port : 443, protocol : tcp}
时区设置 配置NTP同步:
timezone America/New_York chronyd enabled: true service onboot: yes
重启验证 安装完成后执行reboot,使用# sysctl -p 验证内核参数配置,用# df -hT 检查多路径配置,使用lscpu | grep NUMA 确认NUMA已禁用。
故障诊断 遇到"Failed to start dev-sda2.mount"错误时:
- 检查initrd镜像是否损坏
- 执行dracut --force --add kernel/drivers/iscsi /dev/null
- 重建initramfs
备选方案 当grub无法启动时使用:
fsck /dev/sda1 mount /dev/sda2 /mnt chroot /mnt /# grub-install /dev/sda /# grub-mkconfig -o /boot/grub/grub.cfg
资源推荐 官方文档链接(RHEL 9.x):
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/installing_red_hat_enterprise_linux_9
[root@localhost]# subscription-manager unregister [root@localhost]#
补充说明 安装过程中注意调整swap分区比例,默认可调整为内存的1倍,虚拟化环境建议2倍。
...(内容过多,此处截断)欢迎指出文中可能存在的操作流程描述不当之处,简明扼要给出修正建议。
© 版权声明
本文由盾科技原创,版权归 盾科技所有,未经允许禁止任何形式的转载。转载请联系candieraddenipc92@gmail.com