本文共 1441 字,大约阅读时间需要 4 分钟。
某台服务器频繁报出如下错误,经调查xwindows被改动,导致X窗口远程服务不能启动.报错的图示如下:
解决此报错的方法如下:
一. 调整 grub.conf 和xorg.conf 两个文件 1) Grub.conf 文件调整一处 /boot/grub/grub.conf title Red Hat Enterprise Linux Server (2.6.18-194.el5) root (hd0,0) kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.18-194.el5.img ********************************************************* #调整方法:去掉rhgb quiet 参数,添加nofb 参数,更改为 kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ nofb ********************************************************* 2) Xorg.conf 文件调整两处。 /etc/X11/xorg.conf Section "Device" Identifier "Videocard0" Driver "mga" EndSection ********************************************************* #调整方法:将mga 显卡驱动更改为vesa,并添加参数ShadowFB。 Section "Device" Identifier "Videocard0" Driver "vesa" Option "ShadowFB" "0" EndSection ********************************************************* 需要调整的第二处 /etc/X11/xorg.conf Section "Screen" Identifier "Screen0" Device "Videocard0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection ********************************************************* #调整方法:添加参数NoMTRR。 Section "Screen" Identifier "Screen0" Device "Videocard0" DefaultDepth 24 Option "NoMTRR" SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection ********************************************************* 二. 验证调整结果 配置文件调整完毕之后,重启服务器使配置生效,然后登录系统使用命令 #cat /var/log/Xorg.0.log | grep combining 验证,执行命令之后没有输出 wirte-combining 任何的成功和失败,表示配置成功。转载地址:http://awghl.baihongyu.com/