配置网络
vim /etc/sysconfig/network-scripts/ifcfg-enp3s0
###修改的结果如下
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=enp3s0
UUID=1427a29b-abbb-40da-8b0a-fa4cf3547159
DEVICE=enp3s0
ONBOOT=yes
IPADDR=192.168.87.128
NETMASK=255.255.255.255
GATEWAY=192.168.87.1
DNS1=8.8.8.8
DNS2=114.114.114.114
然后
systemctl restart network
配置阿里源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache
安装vim
yum install vim
配置Samba