开发者社区> 问答> 正文

阿里云上安装oracle遇到Check if the DISPLAY variable is set怎么解决?

系统使用的是centos 6.8,用了Oracle官方的rmp提前把依赖包都安装好了。


但是到了runInstaller这一步就是调用不出图形界面,出现错误:


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


我本地使用的是xshell连到ECS上,xshell上也做了xmanager的转发,ECS上也安装了xorg-x11-server-utils-7.7-14.el6.x86_64这个包。


我本地用virtualbox也安装了centos68这个系统,通过上面这种方法是可以调出图形界面的,而且能够正常安装。


登录root,执行xhost +,此时系统调出了xmanager passive窗口。
两行执行export DISPLAY=192.168.1.172:10.0
上面IP的话是我的本机的本地IP
su - oracle切换到oralce用户,再切换到程序解压的目录
执行runInstaller,就出现上面那个错误了,调用不出图形界面。


我试过直接用oracle进行登录,然后再执行也不行。


请问有大神知道是什么原因吗?






展开
收起
XYZ 2017-06-12 17:51:22 3366 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
阿里云云原生Serverless产品手册 立即下载
阿里云认证的解析与实战-云计算ACP认证 立即下载
阿里云认证的解析与实战-数据仓库ACP认证 立即下载

相关镜像