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

简介:                                                                          执行DBCA,NETCA报如下错误故障处理                          ...

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

                                                                         Xlib:connection to “:0.0” refused by server

故障现象:

故障分析:

从故障现象来看是由于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”才正确。 

目录
相关文章
|
2天前
|
SQL
SQL Server2008 安装报错Restart computer failed的解决办法
SQL Server2008 安装报错Restart computer failed的解决办法
5 0
|
9月前
emqtt 启动报错 Erlang closed the connection 查看状态报错
emqtt 启动报错 Erlang closed the connection 查看状态报错 Node 'emq@192.168.*.*' not responding to pings.
122 0
|
5月前
|
安全 关系型数据库 MySQL
java.sql.SQLException: null,message server: Host ora-rac2 is blocked because of many
java.sql.SQLException: null,message server: Host ora-rac2 is blocked because of many
|
9月前
emqtt 启动报错 Erlang closed the connection 查看状态报错
emqtt 启动报错 Erlang closed the connection 查看状态报错 Node 'emq@192.168.*.*' not responding to pings.
176 0
|
分布式计算 安全 Hadoop
DataNode连接错误Retrying connect to server
在Hadoop分布式模式部署完成后,通过start-dfs.sh启动NameNode、DataNode、SecondaryNameNode,在master节点通过jps命令查看,看到NameNode、SecondaryNameNode已启动,在slave节点通过jps命令查看,DataNode也已经启动。(此时颇为欣喜,首次完全分布式部署即成功,但是。。。)
773 0
|
SQL Oracle 网络协议
SQL Developer 连接 oracle数据库 报错 Io 异常 The Network Adapter could not establish the connection的三种解决方法
SQL Developer 连接 oracle数据库 报错 Io 异常 The Network Adapter could not establish the connection的三种解决方法
1191 0
SQL Developer 连接 oracle数据库 报错 Io 异常 The Network Adapter could not establish the connection的三种解决方法
|
SQL 存储 网络协议
故障解决:Sql Server 2008 error 40出现连接错误的解决方法
经常会有小伙伴反馈连接错误,今天就给大家重现一下这个错误和解决方法吧,下次如果哪个小伙伴也遇到类似问题可以直接转发这篇文章给他。好了我们开始实验。
故障解决:Sql Server 2008 error 40出现连接错误的解决方法
|
SQL BI 数据库
SQL Server 2012 The report server cannot open a connection to the report server database
案例环境:        操作系统版本:    Windows Server 2012 R2 Standard        数据库版本  :    SQL SERVER 2012 SP2 案例介绍:         今天进入一台新安装的SQL Server服务器的Reporting S...
1356 0