`
zscomehuyue
  • 浏览: 420428 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Xlib: connection to ":0.0" refused by server

阅读更多
Xlib: connection to ":0.0" refused by server解决方法(转)

Linux 2010-03-25 11:07:41 阅读653 评论0   字号:大中小 订阅

本文来自:http://hi.baidu.com/erazy0/blog/item/83796c3e45deffe655e72331.html

在linux系统中用Oracle帐号执行DBCA或其他JAVA图形界面程序时,报错:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: :0.0

解决办法:用root登陆,在#提示符后输入:

xhost local:oracle non-network local connections being added to access control list

敲回车运行后出现:

non-network local connections being added to access control list
xhost: bad hostname "non-network"
xhost: bad hostname "local"
xhost: bad hostname "connections"
xhost: bad hostname "being"
xhost: bad hostname "added"
xhost: bad hostname "to"
xhost: bad hostname "access"
xhost: bad hostname "control"
xhost: bad hostname "list"

此时再 su - oracle 切换到Oracle用户执行图形界面任务就可以了

man xhost中有这样一段

       A complete name has the syntax ‘‘family:name’’ where the families are as follows:

       inet      Internet host (IPv4)
       inet6     Internet host (IPv6)
       dnet      DECnet host
       nis       Secure RPC network name
       krb       Kerberos V5 principal
       local     contains only one name, the empty string
       si        Server Interpreted

其中local那个是用来解决同一台机器的不同用户访问X的问题的。
分享到:
评论

相关推荐

    linux安装oracle图形化界面问题处理

    一、错误描述:xlib connection to ":0.0" refused by server 解决方案:此错误是由于用户身份问题引起的,可以通过切换到root用户,然后执行xhost +命令解决。此命令需要在安装Oracle的电脑中运行,例如远程安装...

    linux-JAVA图形处理

    linux-JAVA图形处理 错误信息1: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable. ...Xlib: connection to ":0.0" refused by server Xlib: No protocol specified

    Virtualbox安装centos 图解

    常见问题:./runInstaller前缺包报错:Xlib: connection to ":0.0" refused by server 169 常见问题:./runInstaller前权限报错:/oracle/product/10.2.0/db_1.. 170 常见问题:通过命令给Linux(CentOS)分区.... ...

    linux系统安装oracle数据库详解

    第二个错误是:“#Xlib: connection to ":0.0" refused by server Xlib: No protocol specified”。这通常与图形环境有关,可能是因为没有正确配置X11转发或者X服务未运行。你可以检查X服务的状态并尝试重启,或者在...

    Linux下刪除Oracle Instance

    Xlib: connection to "192.168.8.157:0.0" refused by server Xlib: No protocols specified java.lang.NoClassDefFoundError ``` 解决方法是: 1. 在root用户下执行 `xhost +`,以允许其他主机连接。 2. 使用 `su ...

Global site tag (gtag.js) - Google Analytics