CentOS6與CentOS7的幾點區別
重新安裝了一個CentOS7,順便整理一下與自己之前用的CentOS6的區別
CentOS6以下簡稱c6 CentOS7以下簡稱c7
1.關於檔案系統:
c6 6.x使用EXT4,EXT4單個檔案系統容量增大到1EB(1EB=1024PB, 1PB=1024TB),單個檔案大小達到了16TB
c7 7.x使用XFS,最大支援8EB減1位元組的單個檔案系統,最大支援檔案大小9EB,最大檔案系統尺寸18EB
2.防火牆:
c6 6.x iptables
c7 7.x firewalld
3.核心版本:
c6 2.6.x-x
c7 3.10.x-x
4.資料庫:
c6 MySQL
c7 MariaDB
5.時間同步:
c6 ntpq -p
c7 chronyc sources
6.修改時區:
c6 /etc/sysconfig/clock
c7 timedatectl set-timezone Asia/Shanghai
7.修改語言:
c6 /etc/sysconfig/i18n
c7 localectl set-locale LANG=zh_CN.UTF-8
8.主機名:
c6 /etc/sysconfig/network
c7 /etc/hostname
9.網路服務管理:
CentOS6 CentOS7
啟動指定服務 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
10.網路設定:
c6 網絡卡 eth0 ifconfig/setup 預設使用 network服務
c7 網絡卡 ens33 ip/nmtui 預設使用NetworkManager服務