In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces to you what is the difference between CentOS 7 and CentOS 6, the content is very detailed, interested friends can refer to, hope to be helpful to you.
The difference between CentOS 7 and CentOS 6 [199cloudIna]
(1) Desktop system
[CentOS 6] GNOME 2.x
[CentOS 7] GNOME 3.x (GNOME Shell)
(2) File system
[CentOS 6] ext4
[CentOS 7] xfs
(3) Kernel version
[CentOS 6] 2.6.x-x
[CentOS 7] 3.10.x-x
(4) Python version
[CentOS 6] 2.6
[CentOS 7] 2.7
(5) Firewall
[CentOS 6] iptables
[CentOS 7] firewalld
(6) default database
[CentOS 6] MySQL
[CentOS 7] MariaDB
(7) File structure
[CentOS 6] / bin, / sbin, / lib, and / lib64 under /
[CentOS 7] / bin, / sbin, / lib, and / lib64 under / usr
(8) Hostname
[CentOS 6] / etc/sysconfig/network
[CentOS 7] / etc/hostname
(9) time synchronization
[CentOS 6]
$ntp
$ntpq-p
[CentOS 7]
$chrony
$chronyc sources
(10) modification time
[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) modify the area
[CentOS 6]
$vim / etc/sysconfig/i18n
LANG= "zh_CN.utf8"
$/ etc/sysconfig/i18n
$locale
[CentOS 7]
$localectl set-locale.utf8
$localectl status
What is actually modified is the file / etc/locale.conf
Change the Terminal- > Appearance- > "Character encoding" of Secure CRT to UTF-8 before the console can display Chinese normally.
(12) Service related * start and stop
[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
* self-starting
[CentOS 6]
$chkconfig service_name on/off
[CentOS 7]
$systemctl enable service_name
$systemctl disable service_name
* Overview of services
[CentOS 6]
$chkconfig-list
[CentOS 7]
$systemctl list-unit-files
$systemctl-type service
* forced stop
[CentOS 6]
$kill-9
[CentOS 7]
$systemctl kill-signal=9 sshd
(13) Network
* Network information
[CentOS 6]
$netstat
$netstat-I
$netstat-n
[CentOS 7]
$ip n
$ip-s l
$ss
* IP address MAC address
[CentOS 6]
$ifconfig-a
[CentOS 7]
$ip address show
* routin
[CentOS 6]
$route-n
$route-An inet6-n
[CentOS 7]
$ip route show
$ip-6 route show
(14) restart shutdown * shutdown
[CentOS 6]
$shutdown-h now
[CentOS 7]
$poweroff
$systemctl poweroff
* restart
[CentOS 6]
$reboot
$shutdown-r now
[CentOS 7]
$reboot
$systemctl reboot
* single user mode
[CentOS 6]
$init S
[CentOS 7]
$systemctl rescue
* Startup mode
[CentOS 6]
[GUICUI]
$vim / etc/inittab
Id:3:initdefault:
[CUIGUI]
$startx
[CentOS 7]
[GUICUI]
$systemctl isolate multi-user.target
[CUIGUI]
$systemctl isolate graphical.target
Default
$systemctl set-default graphical.target
$systemctl set-default multi-user.target
Current
$systemctl get-default
(15) Nic naming
[CentOS 6]
Eth0
[CentOS 7]
Became a naming rule for predictability.
So much for sharing what is the difference between CentOS 7 and CentOS 6. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.