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

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

                                                                         Xlib:connection to “:0.0” refused by server

故障现象:

20130427105832208

故障分析:

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

解决改问题步骤如下:


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

2根据vnc起来的端口,设置export DISPLAY=localhost:11表示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博客 ” ,链接:http://blog.itpub.net/20674423/viewspace-759417/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/20674423/viewspace-759417/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值