CentOS Seven vs. CentOS 6 different CentOS 7 vs. CentOS 6 different
(1) Desktop system
[CentOS6] GNOME 2.x
[CentOS7] Gnome 3.x (Gnome Shell)
(2) file system
[CentOS6] Ext4
[CentOS7] Xfs
(3) kernel version
[CentOS6] 2.6.x-x
[CentOS7] 3.10.x-x
(4) boot loader
[CentOS6] GRUB Legacy (+efibootmgr)
[CentOS7] GRUB2
(5) Firewall
[CentOS6] Iptables
[CentOS7] Firewalld
(6) Default database
[CentOS6] Mysql
[CentOS7] MariaDB
(7) file Structure
[CentOS6]/bin,/sbin,/lib, and/lib64 in/under
[CentOS7]/bin,/sbin,/lib, and/lib64 move to/usr
(8) host name
[CentOS6]/etc/sysconfig/network
[CentOS7]/etc/hostname
(9) Time synchronization
[CentOS6]
$ ntp
$ ntpq-p
[CentOS7]
$ chrony
$ CHRONYC Sources
(10) Modification Time
[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) Modified area
[CentOS6]
$ vim/etc/sysconfig/i18n
Lang= "Ja_jp.utf8"
$/etc/sysconfig/i18n
$ locale
[CentOS7]
$ localectl Set-locale Lang=ja_jp.utf8
$ LOCALECTL Status
(12) service-related
1) Start stop
[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
Self-booting
[CentOS6]
$ chkconfig service_name on/off
[CentOS7]
$ systemctl Enable Service_Name
$ systemctl Disable service_name
Service List
[CentOS6]
$ chkconfig--list
[CentOS7]
$ systemctl List-unit-files
$ systemctl--type Service
Force stop
[CentOS6]
$ kill-9 <PID>
[CentOS7]
$ systemctl Kill--signal=9 sshd
(13) Network
1) Network Information
[CentOS6]
$ netstat
$ netstat-i
$ netstat-n
[CentOS7]
$ IP N
$ ip-s L
$ ss
2) IP address MAC address
[CentOS6]
$ ifconfig-a
[CentOS7]
$ IP Address Show
3) routing
[CentOS6]
$ route-n
$ route-a Inet6-n
[CentOS7]
$ IP Route Show
$ ip-6 Route Show
(14) Restart shutdown
1) Close
[CentOS6]
$ shutdown-h Now
[CentOS7]
$ poweroff
$ systemctl Poweroff
2) Restart
[CentOS6]
$ reboot
$ shutdown-r Now
[CentOS7]
$ reboot
$ systemctl Reboot
3) Single user mode
[CentOS6]
$ init S
[CentOS7]
$ systemctl Rescue
4) Startup mode
[CentOS6]
[GUI?] CUI]
$ vim/etc/inittab
Id:3:initdefault:
[CUI? GUI]
$ startx
[CentOS7]
[GUI?] CUI]
$ systemctl Isolate Multi-user.target
[CUI? GUI]
$systemctl Isolate Graphical.target
Default
$ systemctl Set-default Graphical.target
$ systemctl Set-default Multi-user.target
Current
$ systemctl Get-default
Reference:
http://urashita.com/archives/1538
Http://qiita.com/sion_cojp/items/115e1671fcbc8f214aee
Https://www.upken.jp/kb/cent6-cent7.html
Http://inaba-serverdesign.jp/blog/20141110/centos7.html
CentOS Seven vs. CentOS 6 different