天天看點

執行DBCA,NETCA報Xlib:connection to “:0.0” refused by server錯誤故障處理

                                                                         執行DBCA,NETCA報如下錯誤故障處理

                                                                         Xlib:connection to “:0.0” refused by server

故障現象:

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

繼續閱讀