Differences: 1. The centos7 kernel is "3.10" and the centos6 kernel is "2.6"; 2. The file systems are different. CentOS6 uses ext4 by default, while CentOS7 uses xfs; 3. The default hard disk scheduling algorithm is different. CentOS6 uses cfq, while CentOS7 uses deadline.
#The operating environment of this tutorial: centos7 system, thinkpad t480 computer.
The difference between centos6 and centos7
Kernel
centos7’s kernel uses 3.10
The kernel of centos6 uses 2.6
File system
centos6.X:EXT4
The single file system capacity of Ext4 reaches 1EB, the single file size reaches 16TB
centos7.x: XFS
XFS supports a single file system of 8EB and 1 byte by default. The maximum supported file size is 9EB. The size is 18EB
Default hard disk scheduling algorithm
CentOS6 uses cfq by default, while CentOS7 uses deadline.
Firewall
centos6.X :iptables
centos7.X:firealld (In fact, centos7.x also supports iptables, but firewalld is installed by default , the current operation is generally to uninstall firewalld, and then install iptables)
Database
centos6.x The default database is: Mysql
centos7.x The default library is: MariaDB
Time synchronization
centos 6.X:ntpq -p (Multiple servers need to connect to the time server, and the time is slightly different at this time Yes, you need to execute this command. Then build your own time server)
centos 7.x:chronyc sources
Modify the time zone (generally speaking, it has been set during installation )
centsos6.x: /etc/sysconfig/clock (temporary modification) Here directly use vi /etc/sysconfig/clock to modify this configuration file
centos7.X: timedatectl set -timezone Asia/Shanghai (almost a permanent modification, your configuration file will be synchronized)
timedatectl This is to view
Then timedatectl set-timezone Asia/Shanghai to modify
Modify language
centos6. 8 (This is a command modification)
localectl This is for viewing.
Services installed under the rpm package
centos6.x:
##Check where the command is: which ifconfig
Then check /sbin/ifconfig
Then check which package this belongs to: rpm -qf /sbin/ifconfig
Network card name:CentOS 6.X network card name is: eth0
CentOs 7.x network card name is: ens33
Network Configuration commandCentOS 6.X: ifconfig/set
CentOs 7.X: ip/nmtui
View ip command is ip address show
Network service:Centos 6.X uses the network service by default
Centos 7.x uses the NetworkManager service by default (network is used as a backup)
Recommended: "
centos usage tutorialThe above is the detailed content of What is the difference between centos7 and centos6. For more information, please follow other related articles on the PHP Chinese website!