CentOS6与CentOS7的区别

CentOS6与CentOS7的区别

1,设置系统字符集文件名

CentOS6
cat /etc/sysconfig/i18n
CentOS7
cat /etc/locale.conf

2,系统内核版本

CentOS6
uname -r
2.6.32-504.el6.x86_64
CentOS7
uname -r
3.10.0-957.21.3.el7.x86_64

3,修改主机名

CentOS7可以修改主机名,重新登录远程终端即可,不必重启服务器
[root@VM_0_12_centos log]# hostnamectl --static set-hostname kvm24

4,查看ip命令

CentOS6
网卡默认参数:eth0
查看网卡命令:ifconfig
图形配置网卡:setup
查看路由:route
CentOS7
网卡默认参数;ens33
查看网卡命令:ip add
图形配置网卡:nmtui
查看路由:ip route

5,防火墙

CentOS6
iptables
CentOS7
systemctl
posted @ 2019-06-25 15:15  Maggy  阅读(160)  评论(0编辑  收藏  举报