ITPub博客

首页 > Linux操作系统 > Linux操作系统 > start调用图形界面,报错。

start调用图形界面,报错。

原创 Linux操作系统 作者:地铁上小虫 时间:2015-08-25 12:56:30 0 删除 编辑

xstart连接linux5,不能弹出图形界面。
提示错误:Can't open display: localhost:10.0
 _X11TransSocketINETConnect() can't get address for localhost:6010: Name or service not known
/usr/bin/xterm Xt error: Can't open display: localhost:10.0
我的 HOSTS文件内容如下:
[root@node202 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               node202.oracle.com node202 
::1             localhost6.localdomain6 localhost6


192.168.1.202    node202.oracle.com    node202
192.168.1.203    node203.oracle.com    node203

将该文件修改成下列内容,xstart就可以正常使用了。
[root@node202 ~]#  /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6


192.168.1.202    node202.oracle.com    node202
192.168.1.203    node203.oracle.com    node203



来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29653765/viewspace-1782031/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-05-12

  • 博文量
    49
  • 访问量
    165806