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 +

  

 

posted @ 2017-09-30 10:04  hahsuu  阅读(2160)  评论(0编辑  收藏  举报