Vmvare 虚拟机安装 Linux CentOS 7 操作系统 一键安装 Docker
1、Vmvare 创建虚拟机
2、安装 CentOS 7
https://developer.aliyun.com/mirror/?spm=a2c6h.25603864.0.0.39273b95mrpC7v
https://mirrors.aliyun.com/centos/7.9.2009/isos/x86_64/?spm=a2c6h.25603864.0.0.4a1c18f8why5cb
3、设置静态 IP 地址
hostnamectl set-hostname server01--static4、更换系统软件源
https://gitee.com/SuperManito/LinuxMirrors#https://gitee.com/link?target=https://linuxmirrors.cn/use/
# GNU/Linux 更换系统软件源bash<(curl-sSLhttps://linuxmirrors.cn/main.sh)5、安装时间同步工具
yuminstallchrony#安装systemctl start chronyd#启动systemctlenablechronyd#开机自启动systemctl status chronyd#查看状态chronyc sources#查看时间源服务地址6、关闭防火墙和 SELinux
systemctl stop firewalld#关闭防火墙systemctl disable firewalld#禁止开机启动vim/etc/selinux/config#编辑这个文件# 修改 SELINUX=disabledreboot# 重启服务6、安装 Docker
https://gitee.com/SuperManito/LinuxMirrors#https://gitee.com/link?target=https://linuxmirrors.cn/use/
# Docker 安装与换源bash<(curl-sSLhttps://linuxmirrors.cn/docker.sh)