码迷,mamicode.com
首页 > 系统相关 > 详细

linux服务器init 5启动图形界面,报错Retrigger failed udev events

时间:2015-06-11 16:27:07      阅读:840      评论:0      收藏:0      [点我收藏+]

标签:

今天因工作需要开启linux系统的桌面环境,使用startx未成功,报如下错误:

[root@5201351 /]# startx
xauth:  creating new authority file /root/.serverauth.2002

xinit:  No such file or directory (errno 2):  no server "/usr/bin/X" in PATH

Use the -- option, or make sure that /usr/bin is in your path and
that "/usr/bin/X" is a program or a link to the right type of server
for your display.  Possible server names include:

    Xorg        Common X server for most displays
    Xvfb        Virtual frame buffer
    Xfake       kdrive-based virtual frame buffer
    Xnest       X server nested in a window on another X server
    Xephyr      kdrive-based nested X server

giving up.
xinit:  No such file or directory (errno 2):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.

再继续使用init 5命令进行切换时,同样报错Retrigger failed udev events,如下图所示:

技术分享

静下心来仔细一想、init 5执行的条件是得linux操作系统得有图形环境,因此很可能是未安装桌面环境

解决方法,安装Gnome桌面环境即可:

[root@5201351 ~]yum groupinstall "Desktop"  -y
[root@5201351 ~]yum groupinstall "X Window System"  -y

 

尊重别人的劳动成果 转载请务必注明出处:http://www.cnblogs.com/5201351/p/4568969.html

linux服务器init 5启动图形界面,报错Retrigger failed udev events

标签:

原文地址:http://www.cnblogs.com/5201351/p/4568969.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!