centos6 | centsos7 | |
---|---|---|
文件系统 | EXT4 | XFS |
内核 | 2.6.x-x | 3.10.x-x |
内核名称 | Santiago | Maipo |
默认防火墙 | iptables | firewalld兼容iptables |
默认数据库 | MySQL | Mariadb |
时间同步 | ntpq -p | chronyc sources |
时区 | /etc/sysconfig/clock | timedatectl set-timezone Asia/Shangha |
字符集 | /etc/sysconfig/i18n | localectl set-locale LANG=zh_CN.UTF-8 |
主机名文件 | /etc/sysconfig/network | /etc/hostname |
启动服务 | service 服务名 start | systemctl start 服务名 |
关闭服务 | service 服务名 stop | systemctl stop 服务名 |
查看所有服务状态 | service --status-all | systemctl list-units |
查看服务自启动状态 | chkconfig --list | systemctl list-units-files |
默认网卡 | eth0 | ens33 |
网卡查看和设置命令 | ifconfig/setup | ip/nmtui |
默认网络服务 | network | NetworkManager/network(备用) |
运行级别文件 | /etc/inittab | /etc/systemd/system/default.target |
修改运行级别 | init runlevel | systemctl isolate / set-default name.target |
centos6与centos7系统简单比较
于 2022-06-22 09:40:57 首次发布