| 说明 | CentOS6.X | ContOS7.X |
|---|---|---|
| 最新版 | 6.9 | 7.6 |
| 架构 | 32/64位 | 64位 |
| 启动原理 | 串行(sysvinit 技术) | 并行(systemd 技术) |
| 安装过程 | 按顺序一步步安装模式 | 平台化安装模式 |
| 网卡名称 | eth0 | 类似ens33可修改内核 net.idnames=0 biosdevname=0 参数调整为传统模式 |
| 默认文件系统 | ext4 | xfs |
| 网卡管理服务 | network | NetworkManager network |
| 网络配置 | setup | nmtui |
| 开启关闭服务 | /etc/init.d/sshd start | stop restart srrvice cron start | stop restart |
systemtcl stop | start sshd |
| 查看服务状态 | /etc/init.d/crond status | systemctl status crond |
| 开机自启动 | chkconfig sshd off | on | systemctl disable|enable sshd |
| 查看开机自启动 | /chkconfig --list crond | /systemctl status crond systemctl is-enabled crond.service |
| 服务操作 | 单已管理/etc/init.d/crond.status | 批量systemctl status crond crond.service network |
| 额外基础工具 | tree nmap dos2unix lrzsz nc lsof wget tcpdump htop liotop sysstat nethogs |
额外psmisc net-tools bash-completion vim-enhanced |
| tab补全 | 命令 路径 | 命令 路径 参数 |
| 默认防火墙 | iptables | firewalld |
| 主机名修改 | hostname oldboy | hostnamectl set-hostname ildboy |
| 主机名文件 | /etc/sysconfig/network | /etc/hostname |
| 字符集文件 | /etc/sysconfig/i28n | /etc/locale.conf |
| 字符集命令配置 | export LANG= | export LANG="en_US.UTP-8" localectl set-locale LANG=en_US.UTP-8 |
| 运行级别 | 0-6 runlevel | init | /usr/lib/systemd/system/runlevel*.target |
| 默认数据库 | MySQL | MariaDB |
| IO调度 | cfq | dead line |
| /etc/rc.local | 放置开机启动的命令 | 放置开机启动命令(必须授权执行权限) |
| 查看IP和路由 | ifconfig 和route netstat -rn或route -n |
IP(默认没有 ifconfig或route) netstat -rn或route -n |
c6 c7 区别
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。