[root@CentOS7 network-scripts]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-4860b79d6cd240788b962a1dbdef488d
Found initrd image: /boot/initramfs-0-rescue-4860b79d6cd240788b962a1dbdef488d.img
done
[root@CentOS7 network-scripts]#
5.安裝ifconfig
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum install wget net-tools vim bash-completion lrzsz nmap nc tree -y
systemctl stop firewalld.service
systemctl disable firewalld.service
sed -i.ori 's#SELINUX=enforcing#SELINUX=disabled#' /etc/selinux/config