Xlib:connection to ":1.0" refused by server解决方法

连接vncserver使用dbca新建数据库实例报错

报错:Xlib:connection to ":1.0" refused by server

1. 用root登录linux,启动vnc服务

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

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

猜你喜欢

转载自guanning.iteye.com/blog/2216079
今日推荐