https://www.cnblogs.com/bethal/p/5945026.html
CentOS 7 vs CentOS different 6
(1) desktop
[CentOS6] the GNOME 2.x
[CentOS7] the GNOME 3.x (the GNOME Shell)
(2) File System
[CentOS6] ext4
[CentOS7] XFS
(. 3) kernel version
[CentOS6 ] 2.6.xx
[CentOS7] 3.10.xx
(. 4) boot loader
[CentOS6] the GRUB Legacy (+ efibootmgr)
[CentOS7] GRUB2
(. 5) firewall
[CentOS6] iptables
[CentOS7] firewalld
(. 6) the default database
[CentOS6] MySQL
[CentOS7] MariaDB
(. 7) a file structure
[CentOS6] / bin, / sbin , / lib, and / lib64 in / at
[CentOS7] / bin, / sbin , / lib, and / lib64 to / under usr
(. 8) hostname
[CentOS6] / etc / sysconfig / Network
[CentOS7] / etc / hostname
(. 9) time synchronization
[CentOS6]
$ NTP
-P the ntpq $
[CentOS7]
$ the chrony
$ chronyc Sources
(10) Modified
[CentOS6]
$ Vim / etc / sysconfig / Clock
ZONE = "Asia / Tokyo"
UTC = Fales
$ the sudo LN -s / usr / Share / zoneinfo / Asia / Tokyo / etc / localtime
[CentOS7]
$ timedatectl SET-TimeZone Asia / Tokyo
$ timedatectl Status
(. 11) modify area
[CentOS6]
$ Vim / etc / sysconfig / the i18n
the LANG = "ja_JP.utf8"
$ / etc / sysconfig / the i18n
$ the locale
[CentOS7]
$ localectl the locale-SET ja_JP.utf8 the LANG =
$ localectl Status
(12 is) the relevant service
1) start stop
[CentOS6]
$ SERVICE_NAME start-service
$ sTOP-service SERVICE_NAME
$ Service sshd restart / Status / reload
[CentOS7]
$ systemctl Start service_name
$ systemctl STOP service_name
$ systemctl restart / Status / reload sshd
from the start
[CentOS6]
$ chkconfig service_name ON / OFF
[CentOS7]
$ systemctl enable service_name
$ systemctl disable service_name
service List
[CentOS6]
$ the chkconfig --list
[CentOS7]
$ systemctl-Unit-List Files
$ systemctl --type-Service
forced stop
[CentOS6]
$ the kill -9 <the PID>
[CentOS7]
$ systemctl --signal = the kill the sshd. 9
( 13) network
1) network information
[CentOS6]
$ the netstat
$ -I the netstat
The netstat -n $
[CentOS7]
$ n-IP
$ IP -sl
$ SS
2) the IP address of the MAC address
[CentOS6]
$ the ifconfig -a
[CentOS7]
$ Show IP address
. 3) Routing
[CentOS6]
$ route -n
$ route -A -n inet6
[CentOS7]
$ IP route Show
$ -6 IP route Show
(14) off restart
1) Close
[CentOS6]
$ now the shutdown -H
[CentOS7]
$ the poweroff
$ systemctl the poweroff
2) restart
[CentOS6]
$ reboot
$ the shutdown now -R & lt
[CentOS7]
$ reboot
$ systemctl reboot
. 3) single-user mode
[CentOS6]
$ the 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