安装CentOS 7.0
2019-02-28 本文已影响0人
闫松林
来源:
https://www.jianshu.com/p/ed533aa8e9d7
https://www.osyunwei.com/archives/7829.html
https://www.cnblogs.com/renpingsheng/p/7845096.html
https://www.cnblogs.com/yufeng218/p/8370670.html
下载制作U盘 驱动
https://sourceforge.net/projects/usbwriter/
配置阿里源,网易源
yum -y install wget
[root@bogon yum.repos.d]# wget http://mirrors.aliyun.com/repo/Centos-7.repo
[root@bogon yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
# docker源
wget https://download.docker.com/linux/centos/docker-ce.repo
yum clean all # 清缓存
yum makecache #生成新缓存
配置网络
image.pngcd /etc/sysconfig/network-scripts/ #进入网络配置文件目录
vi ifcfg-eXXX
service network restart #重启网络
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp10s0
UUID=a5fb0869-d019-4a5a-9987-632b639cb0a8
DEVICE=enp10s0
ONBOOT=yes
IPADDR0=192.168.60.120
PREFIXO0=24
GATEWAY0=192.168.60.1
DNS1=8.8.8.8
DNS2=8.8.4.4