本文最后更新于4 天前,其中的信息可能已经过时,如有错误请发送邮件到fzhuang315@163.com
更换阿里云yum源
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/[Rr]ocky*.repo
dnf makecache
防火墙修改 firewalld 为 iptables
停止并禁用firewalld
systemctl stop firewalld
systemctl disable firewalld
安装并配置iptables
yum -y install iptables-services
systemctl start iptables
iptables -F
systemctl enable iptables
service iptables save
禁用selinux
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
cat /etc/selinux/config
grubby --update-kernel ALL --args selinux=0
# 查看是否禁用,grubby --info DEFAULT
# 回滚内核层禁用操作,grubby --update-kernel ALL --remove-args selinux
设置时区
timedatectl set-timezone Asia/Shanghai
保存系统快照为Justinstall
安装时钟同步,同步下时间
yum install -y chrony
chronyc -a makestep
