文件系統
CentOS 6.x
EXT4
:單個文件系統容量達到1EB,單個文件大小達到16TB。數據庫
CentOS 7.x
XFS
:默認支持8EB減1字節的單個文件系統,最大可支持的文件大小爲9EB,最大文件系統尺寸爲18EB。網絡
防火牆
內核版本
默認數據庫
時間同步、時區修改、語言修改
操做 |
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
網絡服務管理
操做 |
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)備用 |