美文网首页
RHEL7.x/RHEL6.x常见差异对比

RHEL7.x/RHEL6.x常见差异对比

作者: 伊澈 | 来源:发表于2020-03-18 22:51 被阅读0次

    (2)文件系统
    [CentOS6] ext4
    [CentOS7] xfs

    (3)内核版本
    [CentOS6] 2.6.x-x
    [CentOS7] 3.10.x-x

    (5)防火墙
    [CentOS6] iptables
    [CentOS7] firewalld

    (6)默认数据库
    [CentOS6] MySQL
    [CentOS7] MariaDB

    (7)文件结构
    [CentOS6] /bin, /sbin, /lib, and /lib64在/下
    [CentOS7] /bin, /sbin, /lib, and /lib64移到/usr下

    (8)主机名
    [CentOS6] /etc/sysconfig/network
    [CentOS7] /etc/hostname

    (12)服务相关
    启动停止
    [CentOS6]
    service service_name start
    service service_name stop
    service sshd restart/status/reload

    [CentOS7]
    systemctl start service_name
    systemctl stop service_name
    systemctl restart/status/reload sshd

    自启动
    [CentOS6]
    chkconfig service_name on/off
    [CentOS7]
    systemctl enable service_name
    systemctl disable service_name

    服务一览
    [CentOS6]
    chkconfig --list
    [CentOS7]
    systemctl list-unit-files
    systemctl --type service

    强制停止
    [CentOS6]kill -9
    [CentOS7]
    systemctl kill --signal=9 sshd

    (14)重启关闭
    关闭
    [CentOS6]
    shutdown -h now
    [CentOS7]
    poweroff
    systemctl poweroff

    重启[CentOS6]
    reboot
    shutdown -r now
    [CentOS7]
    reboot
    systemctl reboot

    相关文章

      网友评论

          本文标题:RHEL7.x/RHEL6.x常见差异对比

          本文链接:https://www.haomeiwen.com/subject/zfnxyhtx.html