项目部署(七)Centos虚拟机安装oracle报错display at least 256colors

在安装Oracle的时候运行./runInstaller 会在产品检查的时候报错。这个错误网上谈论的比较少,我搞了一个晚上才搞定,现在分享给大家。

  • 我们看一下报错信息

1
2
3
Checking monitor: must be configured to display at least 256colors 
>>> Could not execute auto check for display colorsusing command /usr/openwin/bin/xdpyinfo.
Check if the DISPLAYvariable is set. Failed <<<<

解决 要点主要是要运行host +打通。


  • 确认虚拟机安装了可视化页面

如果没有安装可视化页面,请参考我的另一篇文章:


  • 开始解决

1.先进入ROOT内:

1
2
3
4
5
6
7
8
9
su – root
password:xxxxx
DISPLAY=:0.0; export DISPLAY
echo $DISPLAY
cd /usr/openwin/bin
./xhost
access control enabled, only authorized clients can connect
./xhost +
access control disabled, clients can connect from any host

  1. 然后进入ORACLE
1
2
3
4
5
6
7
su - oracle
$ DISPLAY=:0.0; export DISPLAY
$ echo $DISPLAY:0.0
$ ls
doc response stage
install runInstaller welcome.html
$ ./runInstaller

文章目录
|