执行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”才正确。