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博客 ” ,链接:http://blog.itpub.net/29653765/viewspace-1782031/,如需转载,请注明出处,否则将追究法律责任。