ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 执行DBCA,NETCA报Xlib:connection to “:0.0” refused by server错误故障处理

执行DBCA,NETCA报Xlib:connection to “:0.0” refused by server错误故障处理

原创 Linux操作系统 作者:wuweilong 时间:2013-04-27 11:07:01 0 删除 编辑

                                                                         执行DBCA,NETCA报如下错误故障处理

                                                                         Xlib:connection to “:0.0” refused by server

故障现象:

故障分析:

从故障现象来看是由于xhost问题导致,通常是需要远程执行弹出窗口的时候将会发生该错误,例如,我们通过命令行输入dbca命令的时候由xmanger来输出图形界面的时候会弹出该错误。

解决改问题步骤如下:


1、用root登陆linux,启动vnc服务;

2、根据vnc起来的端口,设置export DISPLAY=localhost:1(1表示vnc在第一个tty上启动的),vnc的启动信息如下:

[root@localhost ~]# vncserver   
   
New 'localhost:1 (root)' desktop is localhost:1   
   
Starting applications specified in /root/.vnc/xstartup   
Log file is /root/.vnc/localhost:1.log   
   
[root@localhost ~]# export DISPLAY=localhost:1     
[root@localhost ~]# xhost     
access control disabled, clients can connect from any host   
[root@localhost ~]# vncserver New 'localhost:1 (root)' desktop is localhost:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/localhost:1.log [root@localhost ~]# export DISPLAY=localhost:1 [root@localhost ~]# xhost access control disabled, clients can connect from any host


3、执行xhost ,并且提示“access control disabled, clients can connect from any host”才正确。 

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

请登录后发表评论 登录
全部评论
Oracle ACE Associate; 12cOCM;11gOCM;MySQL OCP;PGCA;PGCE;KCA; KCP; 本人拥有十年以上运营商,广电传媒,能源,制造等行业DBA从业经验; 有着丰富的管理及运维经验,经历过国家级重点项目,省级标杆项目,新型试点项目

注册时间:2010-01-08

  • 博文量
    779
  • 访问量
    4931672