-
关闭图形界面
# 命令模式 systemctl set-default multi-user.target # 图形模式 systemctl set-default graphical.target
-
配置yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum makecache
-
关闭防火墙
systemctl stop firewalld & systemctl disable firewalld
-
关闭swap
# 临时关闭 swapoff -a # 永久关闭 /etc/fstab,找到swap,注释重启 或 sed -i '/ swap / s/^/#/' /etc/fstab
-
关闭安全组
setenforce 0
- docker和docker-compose(略)