CentOS6.x和CentOS7.x的区别

一、启动和关闭服务的命令不同(以防火墙为例)

1、启动/关闭/重启

C6:service iptables start/stop/restart
C7:systemctl start/stop/restart firewalld

2、开机自启

C6:chkconfig iptables on
C7:systemctl enable firewalld

二、启动流程不同

1、CentOS 6(顺序启动)

0 - halt (Do NOT set initdefault to this)
1 - Single user mode
2 - Multiuser, without NFS (The same as 3, if you do not have networking)
3 - Full multiuser mode 命令行模式
4 - unused
5 - X11 桌面模式
6 - reboot (Do NOT set initdefault to this)

在这里插入图片描述

2、CentOS 7(并行启动)

poweroff.target
rescue.target
multi-user.target
multi-user.target
multi-user.target
graphical.target
reboot.target

在这里插入图片描述

三、文件系统不同

c6:ext4
c7:xfs

四、网卡命名方式不同

c6:eth0/eth1
c7:ens33/ens37

五、修改主机名不同

c6:hostname和/etc/sysconfig/network
c7:hostnamectl和/etc/hostname
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值