标签:swap script crash system soft isa family name save
废话不多说,直接上干货
1.更改NAME DEVICE项为etho,如果有多块网卡需要改为eth1....
vim /etc/sysconfig/network-scripts/ifcfg-eno16777736 NAME=eth0 DEVICE=eth0
2.重新命名网卡名称
cd /etc/sysconfig/network-scripts/ mv ifcfg-eno16777736 ifcfg-eth0 如果有第二块网卡需要改为eth1
3.编辑配置文件/etc/default/grub
#加入如下红色字体的内容 GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed ‘s, release .*$,,g‘ /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root "net.ifnames=0 biosdevname=0" rd.lvm.lv=c entos/swap rhgb quiet" #加入次行内容 GRUB_DISABLE_RECOVERY="true"
4.重启
reboot
标签:swap script crash system soft isa family name save
原文地址:http://www.cnblogs.com/xiejincheng/p/7163826.html