2020-10-15 08:28发布
centos6和centos7的主要区别是什么
区别1:网卡名称eth0和enp5s0
传统的Linux的网络接口命令为为eth0、eth1.从CentOS7/RHEL7起,引入了一致和可预测的网络设备命名网络接口的方法。即使添加或移除网络设备,接口名称仍然保持固定,而无需重新枚举,和坏掉的硬件可以无缝替换。CentOS7修改网卡名称为eth0,只适合第一次安装,很繁琐自动化安装时,直接配置
区别2:网络配置相关命令
ip: yum -y install iproute CentOS7主推使用ip命令。 ifconfig: yum -y install net-tools setup: yum -y install setuptool 废弃命令 nmtui:替代 setup 命令
安装完改网卡名字,没用
区别3:主机名与字符集
修改主机名
hostname CentOS7 /etc/hostname hostnamectl set-hostname CentOS7
修改字符集
LANG=zh_CN.UTF-8 /etc/locale.conf localectl set-locale.UTF-8
区别4:兼容的/etc/rc.local
Please note that you must run ' chmod +x /etc/rc.d/rc.local' to ensure that this script will be executed during boot.
[root@lewen ~]# systemctl get-default multi-user.target
最多设置5个标签!
区别1:网卡名称eth0和enp5s0
传统的Linux的网络接口命令为为eth0、eth1.从CentOS7/RHEL7起,引入了一致和可预测的网络设备命名网络接口的方法。即使添加或移除网络设备,接口名称仍然保持固定,而无需重新枚举,和坏掉的硬件可以无缝替换。CentOS7修改网卡名称为eth0,只适合第一次安装,很繁琐自动化安装时,直接配置
区别2:网络配置相关命令
安装完改网卡名字,没用
区别3:主机名与字符集
修改主机名
修改字符集
区别4:兼容的/etc/rc.local
Please note that you must run ' chmod +x /etc/rc.d/rc.local' to ensure that this script will be executed during boot.
一周热门 更多>