1、关闭SELINUX
vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= can take one of these three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
2、关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
service iptables stop
3、修改yum相关配置
vi /etc/yum/pluginconf.d/subscription-manager.conf
[main]
enabled=0
# When following option is set to 1, then all repositories defined outside redhat.repo will be disabled
# every time subscription-manager plugin is triggered by dnf or yum
disable_system_repos=0
cd /etc/yum.repos.d/
wget https://mirrors.aliyun.com/repo/Centos-8.repo
yum clean all
yum makecache
yum repolist
4、安装常用工具包
sudo yum install socat conntrack ebtables ipset -y
sudo yum install sysstat -y