


The following is a brief example to illustrate the major changes:
1. Installation
When installing, all previous Centos packages can be selected. Yes, but now you can only select one item, and there are duplicate sub-options; when installing to the selected partition, the partition recommended by Centos 7 is xfs instead of the previous ext4.
2. Initial startup
After installing the computer, the interface for booting into the system has changed. At first glance, I thought there were two kernels. Turns out one of them is the rescue selection, and after pressing e, You will find that all the grub.conf information is out. Finally, you find the place where the kernel is started, write a 1 (the purpose is to enter single-user mode), and then enter the rescue mode.
(Recommended tutorial: centos tutorial)
3. Startup sequence
After entering the system, it is a graphical interface. If you want to enter the character interface, modify / etc/inittab, it is found to be an empty file, all of which are comments. If you want to change the runlevel, you can soft-link /lib/systemd/system/runlevel*.target to /etc/systemd/system/default.target. (Of course, if you pass the exam, overwriting will work). I tried it and it worked, and I can change it to character interface 3.
Originally, from Centos7 onwards, the target concept was used to define the run level, which was divided into level 3 and level 5. The meaning is as follows:
The third run level uses multi-user. target is replaced, and the fifth run level is replaced by graphical.target. runlevel3.target and runlevel5.target are symbolic links pointing to multi-user.target and graphical.target respectively.
Use the following command to switch to "Run Level 3":
systemctl isolate multi-user.target或systemctl isolate runlevel3.target
Use the following command to switch to "Run Level 5":
systemctl isolate graphical.target或systemctl isolate runlevel5.target
(1) View the current running level
runlevel
(2) View the default boot run level:
systemctl get-default
(3) Modify the boot default run level command
systemctl set-default multi-user.target(或graphical.target)
Or use the following command:
Default startup run level 3:
ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
Default startup run level 5:
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
4 , Configure the network and host name
Configure the network, go to /etc/sysconfig/network-script/ and see that the network card has been renamed enp1s5, which is interesting. After configuring the network, change the host name, go to /etc/ I went to sysconfig/network to change the name and found that this file was also empty. I tried to modify it according to the original version 6. After restarting, it had no effect. I checked the hostname and found that to change the name in 7, I had to go to /etc/hostname to change the name.
5. LVM and I was thinking about zooming in and out, but something went wrong. When executing resize2fs, why did it keep reporting superblock errors? Then I ran man resize2fs and found that this command only supports the ext file system!
(Recommended related video tutorials:
linux video tutorialCentos’ service uses systemd instead of sysvinit management. Systemd's service management program, systemctl is the main tool, which integrates the functions of the previous service and chkconfig. You can use it to enable/disable services permanently or only for the current session.
(1) Start a service:
systemctl start postfix.service
(2) Close a service:
systemctl stop postfix.service
(3) Restart a service:
systemctl restartpostfix.service
(4 ) Display service status:
systemctl statuspostfix.service
(5) Enable a service when booting:
systemctl enable postfix.service
(6) Disable a service when booting:
systemctl disable postfix.service
(7) Check whether the service is Start at boot:
systemctl is-enabled postfix.service
(8) View the list of started services:
systemctl list-unit-files|grep enabledDescription: Enabling services is in the current "runlevel" configuration file directory /etc/systemd/system In /multi-user.target.wants/, create a soft link to the corresponding service configuration file in /usr/lib/systemd/system. To disable the service, delete this soft link.
The above is the detailed content of What is the difference between centos7 system and previous versions?. For more information, please follow other related articles on the PHP Chinese website!

CentOS is suitable for building powerful and reliable servers. Its advantages include: 1. Stability and reliability, support cycle up to 10 years; 2. Security, built-in SELinux and regular security patches; 3. Compatibility and ecosystem, highly compatible with RHEL, with a rich software warehouse; 4. Performance optimization, suitable for various hardware platforms and providing kernel tuning.

CentOS will continue to evolve in the future, and users should choose alternative distributions. 1) Evaluate the requirements, choose such as RockyLinux or AlmaLinux, and focus on stability and support. 2) Develop a migration plan, use tools such as CentOS2Rocky, and pay attention to testing and verification. 3) Plan early, maintain contact with the open source community, and ensure a smooth transition.

CentOS is widely selected as a server operating system because it is stable, secure and free. 1.CentOS is based on RHEL, providing enterprise-level stability and a life cycle of up to 10 years. 2. It has rich software packages and strong community support. 3. Simple installation, use yum management software package, and intuitive configuration. 4. Improve server management efficiency through command line tools, regular backups and log management. 5. Optimize server performance by adjusting kernel and network parameters.

CentOS will continue to develop through CentOSStream in the future. CentOSStream is no longer a direct clone of RHEL, but is part of RHEL development. Users can experience the new RHEL functions in advance and participate in development.

The transition from development to production in CentOS can be achieved through the following steps: 1. Ensure the consistent development and production environment, use the YUM package management system; 2. Use Git for version control; 3. Use Ansible and other tools to automatically deploy; 4. Use Docker for environmental isolation. Through these methods, CentOS provides powerful support from development to production, ensuring the stable operation of applications in different environments.

CentOSStream is a cutting-edge version of RHEL, providing an open platform for users to experience the new RHEL functions in advance. 1.CentOSStream is the upstream development and testing environment of RHEL, connecting RHEL and Fedora. 2. Through rolling releases, users can continuously receive updates, but they need to pay attention to stability. 3. The basic usage is similar to traditional CentOS and needs to be updated frequently; advanced usage can be used to develop new functions. 4. Frequently asked questions include package compatibility and configuration file changes, and requires debugging using dnf and diff. 5. Performance optimization suggestions include regular cleaning of the system, optimizing update policies and monitoring system performance.

The reason for the end of CentOS is RedHat's business strategy adjustment, community-business balance and market competition. Specifically manifested as: 1. RedHat accelerates the RHEL development cycle through CentOSStream and attracts more users to participate in the RHEL ecosystem. 2. RedHat needs to find a balance between supporting open source communities and promoting commercial products, and CentOSStream can better convert community contributions into RHEL improvements. 3. Faced with fierce competition in the Linux market, RedHat needs new strategies to maintain its leading position in the enterprise-level market.

RedHat shut down CentOS8.x and launches CentOSStream because it hopes to provide a platform closer to the RHEL development cycle through the latter. 1. CentOSStream, as the upstream development platform of RHEL, adopts a rolling release mode. 2. This transformation aims to enable the community to get exposure to new RHEL features earlier and provide feedback to accelerate the RHEL development cycle. 3. Users need to adapt to changing systems and reevaluate system requirements and migration strategies.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Linux new version
SublimeText3 Linux latest version

WebStorm Mac version
Useful JavaScript development tools
