This is the 9th day of my participation in the August More Text Challenge. For details, see:August is more challenging

directory

Problem description

Cause analysis,

Troubleshooting Procedure

1. Restart the single user mode

2. The page for modifying kernel parameters is displayed

3. Modify kernel parameters

4. Single-user interface

5. Check the /etc/inittab configuration file

6. Check related services

We noticed that the boot mysql process has been starting……

Solution:

1. Enter the single user mode again and view the startup program

Delete mysql and mysqld from auto-start service

3. Reboot The system

Always a summary

Problem description

Sometimes, start our Linux server, or Linux virtual machine on Vmware

Feel like you didn’t do anything before you turned it off

However, inexplicably, the system is stuck in the boot interface, can not enter the user name/password login interface

LIke This left

Cause analysis,

The system cannot be turned on for a variety of reasons

System failure, startup level failure, service jam, etc

Troubleshooting Procedure

Do not panic when you encounter problems. Use single user mode to troubleshoot for a wave

1. Restart the single user mode

On the inner core selection screen, press E (Edit), as shown below

2. The page for modifying kernel parameters is displayed

LIke That left

3. Modify kernel parameters

Move the cursor to the second line: press E and enter quiet 1 or Quiet Single to enter the single-user mode. Press "b" to restart the system and enter the single user mode. Note: e is edit, b is boot, and you have modified the /boot/grub/grub.conf configuration fileCopy the code

The diagram below:

4. Single-user interface

5. Check the /etc/inittab configuration file

First check to see if there is a problem with the default configuration run level in /etc/inittab.

If the GUI is not selected during the installation

And if the initTab level is set to 5, it will not start properly.

Most startup problems are caused by the startup level.

[root@localhost /]# vim /etc/inittab
Copy the code

Result: The startup level is 3 and the COMMAND line is started

6. Check related services

Run a command to restart the server

[root@localhost /]# init 3
Copy the code

This displays the program that was running when the system was loaded

If there are any self-starters that don’t load, will it show up and help us troubleshoot

We noticed that the boot mysql process has been starting……

But he couldn’t get up

Therefore, the system card cannot be started on the startup screen

The problem is found, the original is not about the military mysql

Solution:

Since mysql cannot boot from startup, the system is stuck

Let’s cancel mysql startup

After successfully entering the system, and then use lightning 10 consecutive whip to clean up mysql

1. Enter the single user mode again and view the startup program

[root@localhost /]# chkconfig | grep mysql
Copy the code

Sure enough, mysql’s two services start on startup

Delete mysql and mysqld from auto-start service

[root@localhost /]# chkconfig --del mysql[root@localhost /]# chkconfig --del mysqld
Copy the code

3. Reboot The system

Reboot After the restart, the login page is displayed

Always a summary

When the system can not start, do not panic, after the exclusion of hardware problems, is the internal service problem of the system for sure.

Step by step with single user mode, problems will emerge