centos6 和centos7 的区别

内核:centos 7 是3.10 centos6 是2.6
文件系统:centos6 是ext4 centos 7 是xfs
硬盘默认调度算法
6默认使用cfq 7 默认使用的是 deadline算法
防火墙 6 iptables 7 firealld 其实centos7.x也支持iptables,只是默认安装的是firewalld,一般现在的操作是卸载掉firewalld,然后安装iptables
数据库 6 默认安装的是mysql 7 mariaDB
rpm包下面安装的服务
6
  • 启动指定服务:service 服务名 start
  • 关闭指定服务: service 服务名 stop
  • 重启指定服务: service 服务名 restart
  • 查看指定服务状态: service 服务名 status
  • 查看所有服务状态: service --status-all
  • 设置服务自启: chkconfig 服务名 on
  • 设置服务不自启动; chkconfig 服务名 off
  • 查看所有服务自启动状态;chkconfig --list
7
  • 启动指定服务:systemctl start 服务名
  • 关闭指定服务: systemctl stop 服务名
  • 重启指定服务:systemctl restart 服务名
  • 查看指定服务状态: systemctl status 服务名
  • 查看所有服务状态: systemctl list-units
  • 设置服务自启:systemctl enable 服务名
  • 设置服务不自启动;systemctl disable 服务名
  • 查看所有服务自启动状态;systemctl list-unit-files
网络配置命令 6 ifconfig/set 7 ip/nmtui
网络服务 6 network服务 7默认使用的是NetworkManager服务 network作为备用服务
posted @ 2022-09-22 10:11  西北后生  阅读(62)  评论(0)    收藏  举报