linux运维之CentOS 6.x/7.x对比

1.CentOS 6.x/7.x 对比 - 文件系统

CentOS 6.x CentOS 7.x
文件系统 EXT4 XFS
大小 单个文件系统容量1EB,单个文件大小16TB 默认8EB减1字节的单个文件系统,最大支持的文件大小为9EB,最大文件系统尺寸为18EB

2.CentOS 6.x/7.x 对比 - 防火墙、内核版本、默认数据库

CentOS 6.x CentOS 7.x
防火墙 iptables firewalld
内核版本 2.6.x-x 3.10.x-x
默认数据库 MySQL MariaDB

3.CentOS 6.x/7.x 对比 - 时间同步、修改时区、修改语言

CentOS 6.x CentOS 7.x
时间同步 ntpq -p chronyc sources
修改时区 /etc/sysconfig/clock timedatectl set-timezone Asia/Shanghai
修改语言 /etc/sysconfig/i18n localectl set-locale LANG=zh_CN.UTF-8

4.CentOS 6.x/7.x 对比 - 修改主机名

CentOS 6.x CentOS 7.x
配置文件 /etc/sysconfig/network(永久设置) /etc/hostname(永久设置)
命令 hostnamectl set-hostname harry

5.CentOS 6.x/7.x 对比 - 网络服务管理

操作行为 CentOS 6.x CentOS 7.x
启动指定服务 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 disabel 服务名
查看所有服务自启动状态 chkconfig --list systemctl list-unit-files

6.CentOS 6.x/7.x 对比 - 网络设置

CentOS 6.x CentOS 7.x
网卡名 eth0 ens33
网络配置命令 ifconfig/setup ip/nmtui
网络服务 network 服务 NetworkManager 服务(network备用)
发布了27 篇原创文章 · 获赞 3 · 访问量 699

猜你喜欢

转载自blog.csdn.net/weixin_43849280/article/details/102958171