[oracle@localhost database]$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 2847 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n] y

>>> Ignoring required pre-requisite failures. Continuing...
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-06-05_12-05-20AM. Please wait ...
DISPLAY not set. Please set the DISPLAY and try again.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh: % setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash: $ DISPLAY=192.168.1.128:0.0; export DISPLAY
Use the following command to see what shell is being used:
echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
% <full path to xclock.. see below>
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
Typical path for xclock: /usr/X11R6/bin/xclock

DISPLAY变量是用来设置将图形显示到何处.比如CENTOS,你用图形界面登录进去,DISPLAY自动设置为DISPLAY=:0.0表示显式到本地监视器,那么通过终端工具(例如:xshell)进去,运行图形界面的程序,如果没有设置,系统是不允许程序启动的。
在执行xhost +命令(使得所有客户都可以访问)

正常返回信息为:
access control disabled,clients can connect from any host

如果xhost +不能执行,报错:xhost :  unable to open display ""

可以输入命令export DISPLAY=:0执行一下

再执行xhost +  

就可以安装oracle了,但是如果没有安装成功 重启linux,还会包上面这个错,再重新执行一下就好了

最新文章

  1. Java 配置maven及阿里云镜像
  2. Dom编程
  3. Discuz 7.0版块横排显示版块图标和版块简介的方法
  4. Nde模块篇
  5. 不同的source control下配置DiffMerge
  6. android 根据域名得到IP
  7. 基于Spark环境对比Python和Scala语言利弊
  8. (网页)习惯了CS回车操作人员,操作BS网页表单也是回车666
  9. 睡眠麻痹 CSP HSP
  10. EF Core中Fluent Api如何删除指定数据表中的行
  11. Glace:generator-jhipster, adding User entity enhancement management
  12. 【Java】 剑指offer(68) 树中两个结点的最低公共祖先
  13. Py之zip方法【转载】
  14. 关于在Intellij IDEA工具中配置热加载问题
  15. Codeforces-1084C
  16. Hadoop开发相关问题
  17. rem的计算
  18. mac 下 mysql 安装
  19. [CQOI 2018]社交网络
  20. js搜索算法——二分搜索

热门文章

  1. python的datetime、random和os模块使用方法
  2. 模拟服务容器Ioc
  3. vue-cli 手脚架mock虚拟数据的运用,特别是坑!!!
  4. [经验] Java 使用 netty 框架, 向 Unity 客户端的 C# 实现通信 [1]
  5. [mjpeg @ ...] unable to decode APP fields: Invalid data found when processing input
  6. 定位(left 、right 、top 、 bottom)、padding、margin 值设为百分比值时
  7. 初识Python和使用Python爬虫
  8. A Simple Problem with Integers-POJ3468 区间修改+区间查询
  9. 第1节 storm编程:9、storm与kafka的整合
  10. Day3-G - Task HDU4864