centos7與centos6區別差距

2021-09-07 03:19:24 字數 3159 閱讀 6825

標題- list item 目前就這些,還有某些細節需要多多思考查詢對比,如今系統更新更快,我只能把常用列舉出來了 例如一下幾點:

(1)桌面系統

[centos6] gnome 2.x

[centos7] gnome 3.x(gnome shell)

(2)檔案系統

[centos6] ext4

[centos7] xfs

(3)核心版本

[centos6] 2.6.x-x

[centos7] 3.10.x-x

(4)啟動載入器

[centos6] grub legacy (+efibootmgr)

[centos7] grub2

(5)防火牆

[centos6] iptables

[centos7] firewalld

(6)預設資料庫

[centos6] mysql

[centos7] mariadb

(7)檔案結構

[centos6] /bin, /sbin, /lib, and /lib64在/下

[centos7] /bin, /sbin, /lib, and /lib64移到/usr下

(8)主機名

[centos6] /etc/sysconfig/network

[centos7] /etc/hostname

(9)時間同步

[centos6]

$ ntp

$ ntpq -p

[centos7]

$ chrony

$ chronyc sources

(10)修改時間

[centos6]

$ vim /etc/sysconfig/clock

zone="asia/tokyo"

utc=fales

$ sudo ln -s /usr/share/zoneinfo/asia/tokyo /etc/localtime

[centos7]

$ timedatectl set-timezone asia/tokyo

$ timedatectl status

(11)修改地區

[centos6]

$ vim /etc/sysconfig/i18n

lang="ja_jp.utf8"

$ /etc/sysconfig/i18n

$ locale

[centos7]

$ localectl set-locale lang=ja_jp.utf8

$ localectl status

(12)服務相關

1)啟動停止

[centos6]

$ service service_name start

$ service service_name stop

$ service sshd restart/status/reload

[centos7]

$ systemctl start service_name

$ systemctl stop service_name

$ systemctl restart/status/reload sshd

自啟動[centos6]

$ chkconfig service_name on/off

[centos7]

$ systemctl enable service_name

$ systemctl disable service_name

服務一覽

[centos6]

$ chkconfig --list

[centos7]

$ systemctl list-unit-files

$ systemctl --type service

強制停止

[centos6]

$ kill -9

[centos7]

$ systemctl kill --signal=9 sshd

(13)網路

1)網路資訊

[centos6]

$ netstat

$ netstat -i

$ netstat -n

[centos7]

$ ip n

$ ip -s l

$ ss

2)ip位址mac位址

[centos6]

$ ifconfig -a

[centos7]

$ ip address show

3)路由

[centos6]

$ route -n

$ route -a inet6 -n

[centos7]

$ ip route show

$ ip -6 route show

(14)重啟關閉

1)關閉

[centos6]

$ shutdown -h now 

[centos7]

$ poweroff

$ systemctl poweroff

2)重啟

[centos6]

$ reboot

$ shutdown -r now

[centos7]

$ reboot

$ systemctl reboot

3)單使用者模式

[centos6]

$ init s

[centos7]

$ systemctl rescue

4)啟動模式

[centos6]

[guicui]

$ vim /etc/inittab

id:3:initdefault:

[cuigui]

$ startx

[centos7]

[guicui]

$ systemctl isolate multi-user.target

[cuigui]

$systemctl isolate graphical.target

預設$ systemctl set-default graphical.target

$ systemctl set-default multi-user.target

當前$ systemctl get-default

Centos6與Centos7系統區別

centos7預設採用systemd風格,主要設計目標是克服sysvinit固有的缺點,提高系統啟動速度。systemd的目標是盡可能啟動更少程序,盡可能將更多程序並行啟動 centos6採用的sysvinit風格是序列啟動各個程序及服務 系統主要區別如下 系統功能 centos6 centos7 ...

CentOS 7與 CentOS 6 的區別

centos 7與 centos 6區別 都有哪些區別 1 桌面系統 centos6 gnome 2.x centos7 gnome 3.x gnome shell 2 檔案系統 centos6 ext4 centos7 xfs 3 核心版本 centos6 2.6.x x centos7 3.10...

CentOS 7與CentOS 6的區別

centos 7與centos 6的區別 199cloud 艾娜 1 桌面系統 centos 6 gnome 2.x centos 7 gnome 3.x gnome shell 2 檔案系統 centos 6 ext4 centos 7 xfs 3 核心版本 centos 6 2.6.x x ce...