1、配置永久的主机名
]# hostnamectl set-hostname svr7.michelle.cn
或者
]# hostname svr7.michelle.cn #修改当前
]# echo svr7.michelle.cn > /etc/hostname
]# cat /etc/hostname
svr7.michelle.cn
]# hostname
svr7.michelle.cn
2、配置网络参数之IP地址与子网掩码、网关地址
修改网卡命令规则(eth0、eth1、eth2……)
]# ifconfig | head -2
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:0c:29:8a:72:4f txqueuelen 1000 (Ethernet)
]# vim /etc/default/grub #grub内核引导程序
……..此处省略一万字
GRUB_CMDLINE_LINUX="…….. quiet net.ifnames=0 biosdevname=0"
……..此处省略一万字
]# grub2-mkconfig -o /boot/grub2/grub.cfg #重新生成网卡命名规则配置文件
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-862.el7.x86_64
Found initrd image: /boot/initramfs-3.10