CentOS安装

创建日期 星期日 11 十月 2020

初始化

修改源

curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
yum makecache

必备包安装

包括: ifconfig;命令补全;

yum install -y net-tools bash-completion wget vim

优化操作

关闭 NetworkManager

systemctl disable NetworkManager

关闭selinux

sed -i "s/enforcing/disabled/g" /etc/selinux/config

虚拟化安装(kvm) [物理机可选]

yum install libvirt qemu-kvm -y
systemctl enable libvirtd

容器安装(docker)

yum install docker-ce -y