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
[CentOS 7] 3.10.x-x
(4)Python版本
[CentOS 6] 2.6
[CentOS 7] 2.7
(5)防火牆
[CentOS 6] iptables
[CentOS 7] firewalld
(6)預設資料庫
[CentOS 6] MySQL
[CentOS 7] MariaDB
(7)檔案結構
[CentOS 6] /bin, /sbin, /lib, and /lib64在/下
[CentOS 7] /bin, /sbin, /lib, and /lib64在/usr下
(8)主機名
[CentOS 6] /etc/sysconfig/network
[CentOS 7] /etc/hostname
(9)時間同步
[CentOS 6]
$ ntp
$ ntpq -p
[CentOS 7]
$ chrony
$ chronyc sources
(10)修改時間
[CentOS 6]
$ vim /etc/sysconfig/clock
ZONE="Asia/Tokyo"
UTC=fales
$ sudo ln -s /usr/share/zoneinfo/Asia/Tokyo/etc/localtime
[CentOS 7]
$ timedatectl set-timezone Asia/Tokyo
$ timedatectl status
(11)修改地區
[CentOS 6]
$ vim /etc/sysconfig/i18n
LANG="zh_CN.utf8"
$ /etc/sysconfig/i18n
$ locale
[CentOS 7]
$ localectl set-locale.utf8
$ localectl status
實際修改的是檔案 /etc/locale.conf
修改 Secure CRT 的Terminal—>Appearance—>“Character encoding”為 UTF-8,控制檯方能正常顯示中文。
(12)服務相關
*啟動停止
[CentOS 6]
$ service service_name start
$ service service_name stop
$ service sshd restart/status/reload
[CentOS 7]
$ systemctl start service_name
$ systemctl stop service_name
$ systemctl restart/status/reload sshd
*自啟動
[CentOS 6]
$ chkconfig service_name on/off
[CentOS 7]
$ systemctl enable service_name
$ systemctl disable service_name
*服務一覽
[CentOS 6]
$ chkconfig --list
[CentOS 7]
$ systemctl list-unit-files
$ systemctl --type service
*強制停止
[CentOS 6]
$ kill -9
[CentOS 7]
$ systemctl kill --signal=9 sshd
(13)網路
*網路資訊
[CentOS 6]
$ netstat
$ netstat -I
$ netstat -n
[CentOS 7]
$ ip n
$ ip -s l
$ ss
* IP地址MAC地址
[CentOS 6]
$ ifconfig -a
[CentOS 7]
$ ip address show
*路由
[CentOS 6]
$ route -n
$ route -A inet6 -n
[CentOS 7]
$ ip route show
$ ip -6 route show
(14)重啟關閉
*關閉
[CentOS 6]
$ shutdown -h now
[CentOS 7]
$ poweroff
$ systemctl poweroff
*重啟
[CentOS 6]
$ reboot
$ shutdown -r now
[CentOS 7]
$ reboot
$ systemctl reboot
*單使用者模式
[CentOS 6]
$ init S
[CentOS 7]
$ systemctl rescue
*啟動模式
[CentOS 6]
[GUICUI]
$ vim /etc/inittab
id:3:initdefault:
[CUIGUI]
$ startx
[CentOS 7]
[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
(15) 網路卡命名
[CentOS 6]
eth0
[CentOS 7]
成為了可預見性的命名規則
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69975301/viewspace-2695592/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- CentOS6.x和CentOS7.x的區別CentOS
- CentOS 與 Ubuntu 的區別CentOSUbuntu
- 學Linux選擇哪個版本?centos7和centos6區別是什麼?LinuxCentOS
- Centos生命週期,Centos和Centos Stream區別CentOS
- linux啟動流程 (centos6,centos7)LinuxCentOS
- centos7 安裝mongo6CentOSGo
- Centos和Redhat有什麼關係?Centos和Redhat的區別與聯絡介紹CentOSRedhat
- centos6和7的防火牆開關CentOS防火牆
- CentOS 7與之前版本的變化CentOS
- CentOS7.9個版本區別CentOS
- Centos7-VMware+Centos7安裝配置CentOS
- 搭建企業內部yum倉庫(centos6+centos7+epel源)CentOS
- centos7安裝reids6CentOS
- 16.Centos7檔案型別CentOS型別
- 【CentOS】CentOS7安裝PostgreSQLCentOSSQL
- 在Centos7上安裝Redis6CentOSRedis
- CentOS6/7 使用saltstack源安裝saltstackCentOS
- CentOS6下mysql的安裝與配置CentOSMySql
- CentOS7 sudo 安裝與配置CentOS
- CentOS 7 yum 安裝與配置 JDKCentOSJDK
- CentOS 7 yum 安裝與配置 RedisCentOSRedis
- centos 7 不識別ifconfig命令CentOS
- mongodb的安裝與啟動(centos7)MongoDBCentOS
- centos 7 centos 8配置ssh遠端管理CentOS
- CentOS 6 NFS 共享檔案與掛載CentOSNFS
- Centos 7 新增dnsCentOSDNS
- Centos 7 firewall 命令:CentOS
- Centos 7 Iscsi targetCentOS
- centos7的防火牆CentOS防火牆
- CentOS 7 yum安裝與配置 TomcatCentOSTomcat
- windows 與 Centos7 共享檔案方法WindowsCentOS
- Centos 7 安裝 Docker 與 Docker ComposeCentOSDocker
- CentOS7最小化安裝後要做的事(6):Apache安裝與配置CentOSApache
- CentOS之——CentOS7安裝iptables防火牆CentOS防火牆
- centos6禁用ipv6CentOS
- Centos-6-Vault-OfficialCentOS
- Docker實踐(6)—CentOS7上部署KubernetesDockerCentOS
- CentOS 6 NFS的安裝配置CentOSNFS