Centos (5) Restoration of runlevel error settings

Source: Internet
Author: User
Previously, the differences between runlevels have been introduced in the Centos (2) Non-graphic interface. This article is based on the runlevel setting error in the etcinittab. I used to run the machine in the 5 mode. Later I thought that the machine's performance was not good. So I want to run the machine in the 3 mode. After setting it, restart the machine. id: 3

Previously, the differences between runlevels have been introduced in the Centos (2) Non-graphic interface. This article is based on the runlevel setting error in the/etc/inittab. I used to run the machine in the 5 mode. Later I thought that the machine's performance was not good. So I want to run the machine in the 3 mode. After setting it, restart the machine. id: 3

Previously, the differences between runlevels have been introduced in the Centos (2) Non-graphic interface. This article is based on the runlevel setting error in the/etc/inittab.

I used to run the machine in the 5 mode. Later I thought the machine's performance was not good. So I considered using the 3 mode to run the machine. After setting the settings below, I restarted the machine,

Id: 3: initdefault:

After a while, you will find that the machine is not ready yet. The following page is displayed:

At the beginning, we didn't respond. Because it was a virtual machine, we restarted it again and found that it was still like this. I think it's strange.

Taking a closer look, the above interaction process found that the runlevel was 0.

Go to google and find that everyone is talking about it. Do not set the defaultrunlevel to 0 or 6. Otherwise, the machine will have an endless loop, but it does not say how to deal with it if it is already 0 or 6.

You can find a solution by yourself. Think of the previous repair process because grub was damaged. So I tried to fix it.

First, press "e" to enter the edit mode before starting the system.

Select the line of the kernel, and then press e,

Set the runlevel to 3 in the kernel and press enter to start the system,

This time we will find that it is started in 3 mode,

After entering the system in sequence, change the value of initdefault in/etc/inittab to 3,

Restart the system again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.