Home  >  Article  >  Operation and Maintenance  >  What is the difference between centos7 and centos6

What is the difference between centos7 and centos6

青灯夜游
青灯夜游Original
2022-02-07 16:24:1112522browse

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.

What is the difference between centos7 and centos6

#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:

  • Start the specified service: service service name start

  • Close the specified service: service service name stop

  • Restart the specified service: service service name restart

  • View the status of the specified service: service service name status

  • View the status of all services: service --status-all

  • Set service startup: chkconfig Service name on

  • Set the service not to start automatically; chkconfig Service name off

  • View the self-starting status of all services; chkconfig --list

centos7.x

  • Start the specified service: systemctl start service name

  • Close the specified service: systemctl stop Service name

  • Restart the specified service: systemctl restart Service name

  • View the status of the specified service: systemctl status Service name

  • View all service status: systemctl list-units

  • Set service auto-start: systemctl enable service name

  • Set service not Self-start;systemctl disable service name

  • View the self-start status of all services;systemctl list-unit-files

Use vsftp installation here Do an experiment

Enter netstat -antp here to view all commands to start the port. The port of vsftp is 21

What is the difference between centos7 and centos6
What is the difference between centos7 and centos6
What is the difference between centos7 and centos6##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 command

CentOS 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 tutorial

"

The 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn