CentOS 6.8安装Oracle 11 g 解决xhost: unable to open display

CentOS 6.8最小安装

1. 安装tigervnc-server

[root@localhost]$ yum install -y tigervnc-server

2. 启动vncserver

3. 设置DISPLAY环境变量

[oracle@localhost]$ export DISPLAY=:1.0

 注意:后面的桌面号要根据vncserver启动时的信息来设置

4. 执行xhost命令

[oracle@localhos]$ xhost +

  

原文地址:https://www.cnblogs.com/panchong/p/7613832.html