下面由centos教程欄目給大家介紹centos 6.x和 centos 7.x對比詳解,希望對需要的朋友有所幫助!
文件系統
CentOS 6.x
EXT4:單個文件系統容量達到1EB,單個文件大小達到16TB。
CentOS 7.x
XFS:默認支持8EB減1字節的單個文件系統,最大可支持的文件大小為9EB,最大文件系統尺寸為18EB。
防火墻
-
CentOS 6.x
- iptables
-
CentOS 7.x
- firewalled
內核版本
-
CentOS 6.x
- 2.6.x-x
-
CentOS 7.x
- 3.10.x-x
默認數據庫
-
CentOS 6.x
- MySQL
-
CentOS 7.x
- MariaDB
時間同步、時區修改、語言修改
操作 | 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 |
主機名
-
CentOS 6.x
- 配置文件:/etc/sysconfig/network
-
CentOS 7.x
- 配置文件:/etc/hostname
網絡服務管理
操作 | 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 disable 服務名 |
查看所有服務自啟動狀態 | chkconfig –list | systemctl list-unit-files |
網絡設置
操作 | CentOS 6.x | CentOS 7.x |
---|---|---|
網卡名 | eth0 | ens33 |
網絡配置命令 | ifconfig/setup | ip/nmtui |
網絡服務 | network | NetworkManager(network)備用 |
更多centos技術文章,請訪問
下面由centos教程欄目!??
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END