Centos6與Centos7系統區別

2021-08-22 13:46:04 字數 2079 閱讀 9465

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

系統功能

centos6

centos7

init系統

sysvinit

systemd

桌面系統

gnome  2.x

gnome 3.x/gnome shell

檔案系統

ext4       

xfs核心版本

2.6.x

3.10.x

啟動載入器

grub legacy(+efibootmgr)

grub2

防火牆iptables

firewalld

資料庫mysql

mariadb

檔案目錄

/bin,/sbin,/lib,/lib64在/根下

/bin,/sbin,/lib,/lib64在/usr下

主機名/etc/sysconfig/network

/etc/hostname

時間同步

ntp, ntpq -p

chrony, chronyc sources

修改時間

#vi /etc/sysconfig/clock

zone="asia/tokyo"

utc=false

#ln -s

/usr/share/zoneinfo/asia/tokyo

/etc/localtime

#timedatectl set-timezone asia/tokyo

#timedatectl status

區域及字元設定

/etc/sysconfig/il8n

/etc/locale.conf

localectl set-locale lang=zh_ cn.utf8

localeetc status

啟動停止服務

#service service_name start

#service  service_name stop

#service  sshd restart/status/reload

#systemctl start service_name

#systemctl stop service_name

#systemctl restart/status/reload sshd

自動啟動

chkconfig service_name on/off

#systemctl enable service_name

#systemctl disable service_name

服務列表 

chkconfig --list

#systemctl list-unit-file

#systemctl --type service

kill服務

kill -9

systemctl kill --signal=9 sshd

網路及埠資訊

netstat

ssip資訊

ifconfig

ip address show

路由資訊

route -n

ip route  show

關閉停止系統

shutdown -h now  

systemctl  poweroff

單使用者模式

init s

systemctl  rescue

執行模式

vim /etc/inittab

id:3:initdefault:

systemctl  set-default  graphical.target

systemctl  set-default  multi-user.target

ext3 、ext4、xfs 檔案系統區別:

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...

CentOS7和CentOS6的區別

centos6 ext4 centos7 xfs 說明 fdisk等磁碟操作命令使用都一樣,只是格式化磁碟時使用mkfs.xfs而不要用mkfs.ext4,ext4的檔案系統在centos7上只能讀不能寫。centos6 etc sysconfig network修改hostname的值 cento...