Solve the problem that the CentOS boot progress bar is stuck
In centos, if you want to set the program to start when it is started, Baidu will modify/etc/rc. local and add it as the boot Startup Program. Then the tragedy is coming,
Stopped here, nnd. Press the direction key to see where the program is stuck. There is no suspense that my program is stuck (this program is a large loop that will repeatedly interact with the remote device ), what should I do ?! It is also a variety of Baidu ....
In theory, as long as I set my program to run in the background, it will not be stuck. For example:
The method after Baidu is as follows:
Press the "e" key to enter the GRUB startup manager, select the following, and then press the "e" key to edit the kernel
Add "init =/bin/bash" at the end of the line. For example, press enter and then press "B" to restart
Go to bash and edit the/etc/rc. local file to start the program in the background. However, an error occurred while saving the startup configuration file:
Cannot Write, shit! Remount the file system to read and write "mount-o remount, rw/", edit the startup configuration file again, and save OK
Restart the system and enter the logon screen:
OK, it's not easy!