centos7 minimal 配置网络,yum库, 安装所需包(ifconfig)

1. install centos7 minimal

2. network config: nmtui

3. yum local cdrom.

   mkdir /media/CentOS

  mount -t auto /dev/cdrom /media/CentOS 

    cd /etc/yum.repo.d 

    vi CentOS-Media.repo

         [c7-media]
name=CentOS-$releasever - Media
baseurl=file:///media/centos/
gpgcheck=0  # 不校验
enabled=1    # 启用media库
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

4. yum clean all

5.  yum provides ifconfig | yum whatprovides ifconfig

6. yum install net-tools

          

你可能感兴趣的:(Linux,系统运维)