如何解決centos虛擬機器無法啟動?
用VMware虛擬機器建立的一個centos桌面版系統。系統啟動時出現問題,啟動certmonger之後,介面卡住,無法進入圖形介面,如圖:
解決方法:
首先,Ctrl Alt F2進入命令列介面,用root用戶登錄,查看/etc/X11/xorg.conf檔案是否存在,如果存在,執行命令:
mv /etc/X11/xorg.conf /etc/X11/old_xorg.conf
重啟系統,看是否正常。
然後Ctrl Alt F2進入命令列介面,用root用戶登錄,修改檔案/etc/inittab
vim/etc/inittab
# inittab is only used by upstart for the default runlevel. # ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. # System initialization is started by /etc/init/rcS.conf # Individual runlevels are started by /etc/init/rc.conf # Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf # Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf, # with configuration in /etc/sysconfig/init. # For information on how to write upstart event handlers, or how # upstart works, see init(5), init(8), and initctl(8). # Default runlevel. The runlevels used are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this) # id:5:initdefault:
將最後一行id:5:initdefault:
修改為id:3:initdefault:
則開機預設進入命令列介面。
重啟進入命令列之後,執行startx,則可進系統圖形介面了!
相關參考:centOS教學
以上是如何解決centos虛擬機器無法啟動的詳細內容。更多資訊請關注PHP中文網其他相關文章!