centos minimal 处理
- 网络设置
- 主机名设置
- 防火墙设置
- yum国内源设置
- 配置免密ssh
- 一些必须工具
- jdk java开发
- lrzsz 上传下载
- wget 网络下载
- telnet 网络相关
- bind* 网络相关
- net-tools 网络相关
- nscd dns相关
- docker 容器相关
- docker阿里镜像源
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3IPADDR=
NETMASK=
GATEWAY=
hostnamectl --static set-hostname xxx
systemctl stop firewalld
systemctl disable firewalld
yum list wget
yum install wget -y
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repoyum clean allyum makecache
yum install telnet bind* nscd yum-utils device-mapper-persistent-data lvm2 net-tools
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.reposudo yum install docker-ce docker-ce-cli containerd.iosystemctl enable dockersystemctl start docker
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://m3lbzk97.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
vi /etc/resolv.conf