這看不出開機啟動卡在哪里,只好重啟按住"e"鍵,進入啟動菜單: 然后移動到第二項kernel...接着按e進入編輯 去掉rhgb quiet字樣 按回車保存回到選擇項 按b啟動它就能看到啟動過程了 f5鍵進度條/命令行界面方式切換#關鍵能過啟動后台杳找原因(壓F5杳看啟動過程) 在啟動過程中就可以杳找原因
[root@Nginx_Master ~]# chkconfig kdump off
如上圖還是不能進入
[root@Nginx_Master etc]# ps -ef|grep /bin/bash root 977 1 0 18:09 ? 00:00:00 /bin/bash /etc/rc.d/rc 3 root 1472 1470 0 18:09 ? 00:00:01 /bin/bash /etc/nginx_check.sh root 6691 1899 0 18:23 pts/1 00:00:00 grep /bin/bash [root@Nginx_Master etc]# cat /etc/nginx_check.sh.bak #!/bin/bash set -x while : do nginxpid=`ps -C nginx --no-header |wc -l` if [ $nginxpid -eq 0 ];then service keepalived stop service nginx start fi sleep 3 nginxpid=`pgrep nginx|wc -l` if [ $nginxpid -ne 0 ];then service keepalived start fi done
[root@Nginx_Master etc]# kill -9 1472 [root@Nginx_Master etc]# ps -ef|grep /bin/bash root 7253 1899 0 18:25 pts/1 00:00:00 grep /bin/bash [root@Nginx_Master etc]#
問題解決!!!!