zoukankan      html  css  js  c++  java
  • CentOS6与CentOS7的几点区别

    重新安装了一个CentOS7,顺便整理一下与自己之前用的CentOS6的区别

    CentOS6以下简称c6  CentOS7以下简称c7

    1.关于文件系统:

    c6 6.x使用EXT4,EXT4单个文件系统容量增大到1EB(1EB=1024PB, 1PB=1024TB),单个文件大小达到了16TB

    c7 7.x使用XFS,最大支持8EB减1字节的单个文件系统,最大支持文件大小9EB,最大文件系统尺寸18EB

    2.防火墙:

    c6 6.x iptables

    c7 7.x firewalld

    3.内核版本:

    c6 2.6.x-x

    c7 3.10.x-x

    4.数据库:

    c6 MySQL

    c7 MariaDB

    5.时间同步:

    c6 ntpq -p

    c7 chronyc sources

    6.修改时区:

    c6 /etc/sysconfig/clock

    c7 timedatectl set-timezone Asia/Shanghai

    7.修改语言:

    c6 /etc/sysconfig/i18n

    c7 localectl set-locale LANG=zh_CN.UTF-8

    8.主机名:

    c6 /etc/sysconfig/network

    c7 /etc/hostname

    9.网络服务管理:

                    CentOS6              CentOS7

    启动指定服务       service 服务名 start     systemctl start 服务名

    服务名关闭指定服务    service 服务名 stop     systemctl stop 服务名

    服务名重启指定服务    service 服务名 restart    systemctl restart 服务名

    服务名查看指定服务状态  service 服务名 status    systemctl status 服务名

    服务名查看所有服务状态  service --status-all     systemctl list-units

    设置服务自启动      chkconfig 服务名 on      systemctl enable 服务名

    服务名设置服务不自启动  chkconfig 服务名 off     systemctl disable 服务名

    服务名查看所有服务自启动状态  chkconfig --list    systemctl list-unit-files 

    10.网络设置:

    c6 网卡 eth0  ifconfig/setup  默认使用 network服务

    c7 网卡 ens33  ip/nmtui     默认使用NetworkManager服务

  • 相关阅读:
    hdu 5112 A Curious Matt (水题)
    hdu 5464 Clarke and problem(dp)
    (2)线程优先级、线程安全
    (1)进程与线程
    并发与并行
    (5) 守护线程与线程阻塞
    java线程中断2
    sleep()和wait()的区别
    java线程中断
    java创建线程的三种方式及其对比
  • 原文地址:https://www.cnblogs.com/lcxblogs/p/13299295.html
Copyright © 2011-2022 走看看