1. Modify the startup mode
through The Xshell software uses the SSH protocol to connect to the Linux system command line interface using the following commands
Vim/etc/inittab
Output startup mode information
Vim/etc/inittab
"/etc/inittab" 26L, 884c#
# Ctrl-alt-delete is handled by/etc/init/control-alt-delete.conf
#
# Terminal Gettys is handled by/etc/init/tty.conf and/etc/init/serial.conf,
# with configuration In/etc/sysconfig/init.
#
# For information on what to write upstart event handlers, or how
# Upstart works, see Init (5), init (8), and Initctl (8).
#
# Default RunLevel. The runlevels used is:
# 0-halt (Do not setinitdefault to this)
# 1-single User mode
# 2-multiuser, without NFS (the same as 3, if you don't have networking)
# 3-full Multiuser mode
# 4-unused
# 5-x11
# 6-reboot (Do not setinitdefault to this)
#
id:5:initdefault:26,1bot2345
--INSERT--26,5bot::initdefault:4:3:initdefault:526,4bot:wq
"/etc/inittab" 26L, 884C written
The output is found after running the above command Id:5:initdefault This line is also the default boot mode is 5 at this time input i or Insert into the editing mode to change Id:5:initdefault to Id:3:initdefault Click Esc to exit the edit mode input Wq Save the changes and exit the Vim Editor input Reboot After the reboot, enter full multi-user mode.
Several startup mode explanations
# 0 Shutdown machine off do not set for this mode
# 1 Single-user mode similar to Safe mode under Win9x
# 2 Multi-user mode but no NFS support
# 3 full Multi-user mode is the standard run level
# 4 generally not used in special circumstances
# 5X11 mode enters the X Windows graphical interface
# 6 Restart
2,[[email protected] ~]# reboot
Broadcast message from [email protected]
(/dev/pts/0) at 5:26 ...
The system is going downfor reboot now!
after the modification is completed, enter the reboot command after reboot to enter full multiuser mode.
3, the wrong operation set the startup mode to "0" or "6" recovery method
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/94/wKioL1VMyoqA00htAAPDflsyxVo951.jpg "title=" 1.jpg " alt= "Wkiol1vmyoqa00htaapdflsyxvo951.jpg"/>
See the following UI prompt at startup " Pressany key to enter the menu"Press any key to enter the menu
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/94/wKioL1VMypuzeGqUAAIBLujFvIM607.jpg "title=" 2.jpg " alt= "Wkiol1vmypuzegquaaiblujfvim607.jpg"/>
Press "E" to enter edit mode when the following interface appears
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/99/wKiom1VMyTejbTG4AAK5-qP0sh4177.jpg "style=" float: Left; "title=" 3.jpg "alt=" Wkiom1vmytejbtg4aak5-qp0sh4177.jpg "/>
the following interface selects the second item by "e" To enter edit mode
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/99/wKiom1VMyU6RuFR_AAMuIaQwNjg908.jpg "title=" 4.jpg " alt= "Wkiom1vmyu6rufr_aamuiaqwnjg908.jpg"/>
in the second line, the character "Kernel/vmlinuz-2.6.32-431.e16.x86_64ro root=label"label is added according to the actual situation =/single back to page point "b" for reboot
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/94/wKioL1VMytWyxfXUAAKsOPic7hE350.jpg "style=" float: none; "title=" 5.jpg "alt=" Wkiol1vmytwyxfxuaaksopic7he350.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/99/wKiom1VMyWPDu1cbAAQi_PDOWmQ273.jpg "style=" float: none; "title=" 6.jpg "alt=" Wkiom1vmywpdu1cbaaqi_pdowmq273.jpg "/>
after restarting, use the command vim/etc/inittab to change the startup mode to the desired boot mode reboot.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/99/wKiom1VMyYWjfZYOAATF0ZouIxQ596.jpg "style=" float: none; "title=" 7.jpg "alt=" Wkiom1vmyywjfzyoaatf0zouixq596.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/94/wKioL1VMyv2yf_A2AATF0ZouIxQ932.jpg "style=" float: none; "title=" 8.jpg "alt=" Wkiol1vmyv2yf_a2aatf0zouixq932.jpg "/>
This article is from the "Network Linux" blog, please be sure to keep this source http://flying0215.blog.51cto.com/8963371/1649815
Actual operation change Linux boot mode