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服务

  • 相关阅读:
    Python实现将IP地址转换为数字
    转 python两个 list 获取交集,并集,差集的方法
    并发编程之协程
    网络编程之协议
    网络编程
    python之路-模块和包
    python IO模型
    python 线程(队列,线程池),协程(理论greenlet,gevent模块,)
    python 线程(部分)Thread的使用,守护线程,互斥锁,递归锁,信号量,事件,条件,定时器
    常见的面试题
  • 原文地址:https://www.cnblogs.com/lcxblogs/p/13299295.html
Copyright © 2011-2022 走看看