0
点赞
收藏
分享

微信扫一扫

Centos6和Centos7的区别

沉浸在自己的世界里 2022-03-30 阅读 112

1.内核

centos7的内核用的是3.10
centos6的内核用的是2.6

2.文件系统

centos6.X:EXT4
Ext4的单个文件系统容量达到1EB,单个文件大小则达到16TB

centos7.x:XFS
XFS默认支持8EB见1字节的单个文件系统,最大可支持的文件大小为9EB,最大文件系统尺寸为18EB

3.防火墙

centos6.X :iptables
centos7.X:firealld(其实centos7.x也支持iptables,只是默认安装的是firewalld,一般现在的操作是卸载掉firewalld,然后安装iptables)

4.数据库

centos6.x默认数据库是:Mysql
centos7.x默认属库是:MariaDB

5.主机名

centos6.x 配置文件为: /etc/sysconfig/network (永久配置文件设置)
centos7.x 配置文件为: /etc/hostname(永久配置文件设置)
hostname 是查看
centos7x里面还可以使用命令的方式永久设置
hostnamectl set-hostname liufei

6.rpm包下面安装的服务

centos6.x :
启动指定服务:service 服务名 start
关闭指定服务: service 服务名 stop
重启指定服务: service 服务名 restart
查看指定服务状态: service 服务名 status
查看所有服务状态: service --status-all
设置服务自启: chkconfig 服务名 on
设置服务不自启动; chkconfig 服务名 off
查看所有服务自启动状态;chkconfig --list
 

centos7.x
启动指定服务:systemctl start 服务名
关闭指定服务: systemctl stop 服务名
重启指定服务:systemctl restart 服务名
查看指定服务状态: systemctl status 服务名
查看所有服务状态: systemctl list-units
设置服务自启:systemctl enable 服务名
设置服务不自启动;systemctl disable 服务名
查看所有服务自启动状态;systemctl list-unit-files

7.网卡名

CentOS 6.X 网卡名是:eth0
CentOs 7.x 网卡名是:ens33

8.网络服务

Centos 6.X 默认使用 network服务
Centos 7.x 默认使用 NetworkManager 服务 (network作为备用)


 

举报

相关推荐

0 条评论