前言
照着敲即可,内存要大,网速要快
一、虚拟机环境
虚拟化开了更好,net模式要求可上网
二、准备环境
1.配置网卡
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE="Ethernet"
BOOTPROTO="none"
NAME="ens33"
DEVICE="ens33"
ONBOOT="yes"
IPADDR=192.168.200.100
GATEWAY=192.168.200.2
NETMASK=255.255.255.0
DNS=8.8.8.8
DNS1=114.114.114.114
2.配置yum
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo
CentOS-CR.repo CentOS-fasttrack.repo CentOS-Sources.repo
[root@localhost yum.repos.d]# rm -rf