1. 程式人生 > >INIT:Id "x" respawning too fast,disabled for 5 minutes解決思路

INIT:Id "x" respawning too fast,disabled for 5 minutes解決思路

http://www.xnlinux.cn/thread-1370-1-1.html

centos5,啟動過程中出現以下問題:

INIT:Id "x" respawning too fast,disabled for 5 minutes
圖形介面無法啟動。
首先根據錯誤資訊知道是init程式在執行系統啟動指令碼時出現問題,init所執行的指令碼是
/etc/inittab,
檢視之,找到如下行:
  1. cat /etc/inittab
  2. x:5:respawn:/etc/X11/prefdm -nodaemon
複製程式碼 圖形就是由這行啟動的,ID為x的行在執行級5的時候會啟動prefdm程式,而且有respawn引數,此引數的作用是當程式退出後自動重新啟動它,根據錯誤提示裡的respawing too fast判斷是由於程式啟動異常導致頻繁重啟,
  1. [[email protected] ~]# file /etc/X11/prefdm 
  2. /etc/X11/prefdm: Bourne shell script text executable
複製程式碼
  1. [[email protected] ~]# vi /etc/X11/prefdm
複製程式碼
  1. if [ "$DISPLAYMANAGER" = GNOME ]; then
  2.                 preferred=/usr/sbin/gdm
  3.         elif [ "$DISPLAYMANAGER" = KDE ]; then
  4.                 preferred=/usr/bin/kdm
  5.         elif [ "$DISPLAYMANAGER" = XDM ]; then
  6.                 preferred=/usr/bin/xdm
複製程式碼 我安裝的是gnome使用的就是gdm這個程式,但ll檢視提示不存在,證明此檔案丟失,需要重新安裝軟體
  1. [[email protected] ~]# yum whatprovides /usr/sbin/gdm
  2. 1:gdm-2.16.0-56.el5.centos.i386 : GNOME 顯示管理器。
  3. [[email protected] ~]# yum install gdm -y
複製程式碼 搞定over!

相關推薦

INIT:Id "x" respawning too fast,disabled for 5 minutes解決思路

http://www.xnlinux.cn/thread-1370-1-1.html centos5,啟動過程中出現以下問題: INIT:Id "x" respawning too fast,disabled for 5 minutes圖形介面無法啟動。首先根據錯誤資訊知道

Zabbix agent on Zabbix server is unreachable for 5 minutes故障!

zabbixZabbix故障現象: Zabbix agent on Zabbix server is unreachable for 5 minutes故障!zabbix版本號:3.0.9zabbix-檢測中-事件 查看如下:查看 more /var/log/zabbix/zabbix_agentd.log2

Zabbix agent on Zabbix server is unreachable for 5 minutes

筆者在維護zabbix服務時,遇到以下報警 Zabbix agent on Zabbix server is unreachable for 5 minutes 在網際網路查詢了相關資料後,更改配置

kubeadm init 卡在 Created API client, waiting for the control plane to become ready

mon issues https res 出現 blog ted col journal 執行 kubeadm init 時出現卡在了 [apiclient] Created API client, waiting for the control plane to beco

Fw: EPM 11.1.2.x – Planning/PBCS Best Practices for BSO Business Rule Optimisation

trigge rec oval sage depend opera manage 1.2 group 1. Introduction This document is intended to provide best practices for Business Rule

使用composer提示[ErrorException ]proc_get_status() has been disabled for security reasons 的解決方法

從錯誤提示資訊中可以看到是因為關閉了PHP的proc_get_status()函式,那麼如何解決這個問題呢? 開啟php.ini檔案,搜尋 disable_functions,找到如下類似內容: disable_functions=passthru,exec,system,chroot

ELK之kibana的web報錯[request] Data too large, data for [<agg [2]>] would be larger than limit of

details 我們 網上 清晰 art 錯誤 上大 9.png 原因 http://blog.51cto.com/11819159/1926411 ELK架構:elasticsearch+kibana+filebeat 版本信息: elasti

has been disabled for security reasons

原因:       由於PHP配置中的php.ini預設設定了禁用了執行系統外部命令函式:exec()、passthru()、system()、shell_exec(), 因為PHP預設php.ini配置檔案中是不允許你呼叫執行外部命令的函式的。

Tensorflow影象通道合併,IndexError: too many indices for array

在讀入多張影象並且在第3維上進行合併時(image[:, :, :]),出現IndexError: too many indices for array錯誤 data1 = imread('E:/dataset/Train_gray/2011_09_26_drive_0001_extrac

快速小目標檢測--Feature-Fused SSD: Fast Detection for Small Objects

Feature-Fused SSD: Fast Detection for Small Objects 本文針對小目標檢測問題,對 SSD 模型進行了一個小的改進,將 contextual information 引入到 SSD 中 幫助SSD檢測小目標。 contextual inf

lnmp -- 解決Warning: scandir() has been disabled for security reasons in…的問題

原因:LNMP 0.9禁用了部分存在危險的PHP函式 LNMP0.9禁用的PHP函式包括:passthru, exec, system, chroot, scandir, chgrp, chown, shell_exec, proc_open, proc_get_status, ini_alte

報錯--》due to a StackOverflowError. Possible root causes include a too low setting for -Xss and illega

報錯-->due to a StackOverflowError. Possible root causes include a too low setting for -Xss and illegal cyclic inheritance depende

mysql 8.x 登陸提示 Access denied for user 'root'@'localhost' (using password: YES)

第一步:修改 /etc/mysql/my.cnf。 在【mysql】下新增skip-grant-table;重啟。 第二步:通過mysql命令登陸;   flush privileges;   use mysql;   alter user 'root'@'localhost' ident

Did your deps make upgrading to React 16.x hard too?

I am struggling not to spout cliches about how the JS community make breaking changes constantly.Up to now I was one of the proponents of how great the eco

論文筆記(6)--(Re-ID)A Pose-Sensitive Embedding for Person Re-Id with Expanded Cross Neighborhood Re-Rank

論文:《A Pose-Sensitive Embedding for Person Re-Identification with Expanded Cross Neighborhood Re-Ranking》 https://arxiv.org/pdf/1711.10378.pdf 這是

論文筆記(5)--(Re-ID)Diversity Regularized Spatiotemporal Attention for Video-based Person Re-id

https://arxiv.org/pdf/1803.09882.pdf 這是一篇video base的Person Re-ID的工作。該論文主要集中在提取時空兩個方向的attention。 輸入一個視訊序列,使用約束的隨機取樣策略選擇一個子序列(6張圖片,見實驗部分),將子序列送入sp

mysql data too long for column xxx解決方案

        最近匯入資料的時候,總是報錯:java.sql.SQLException: Data truncation: Data too long for column '***' at row 1 Query,查詢好久,才發現是資料庫的字符集出錯。整理了一下,解決方案

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'dtdate' 解決方法

建表如下: CREATE TABLE `mh_1485_praise` (   `auto_id` int(11) NOT NULL AUTO_INCREMENT,   `user_id` varc

在thinkPHP專案上線遇到的scandir() has been disabled for security reasons的問題

在thinkPHP專案上傳之後,有的時候會遇到如上的問題。下面就說一下解決上面問題的方法。第一步:找到usr/local/php/etc/php.ini檔案.第二步:編輯php.ini,vi php.ini。第三步:/scandir查詢scandir並刪除它第四步:shift

RSA 解密的時候報錯 而且有亂碼:java.lang.ArrayIndexOutOfBoundsException: too much data for RSA block

報錯: 03-22 10:21:20.805 507-507/? E/AndroidRuntime: FATAL EXCEPTION: main 03-22 10:21:20.805 507-507/? E/AndroidRuntime: java.lang.Runtim