linux - 检查监视器 : must be configured to display at least 256 colors. 未设置显示环境变量。失败<<<<

标签 linux weblogic centos7 weblogic12c

在安装 weblogic 服务器时,出现此错误。我已经尝试了很多,但无法解决。

我尝试了下面的命令,

#xhost +

yum 安装 xorg-x11-xauth

我按照此处给出的步骤操作。 https://superuser.com/questions/119792/how-to-use-x11-forwarding-with-putty

我在安装 weblogic 服务器时遇到这个错误,

[oracle@minint-mkhp6g3 oracle]$ $JAVA_HOME/bin/java -jar /software/fmw_12.2.1.3.0_wls.jar
Launcher log file is /tmp/OraInstall2019-10-10_02-49-57AM/launcher2019-10-10_02-49-57AM.log.
Extracting the installer . . . . . . . . . . . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2593.996 MHz    Passed
Checking monitor: must be configured to display at least 256 colors.  DISPLAY environment variable not set.    Failed <<<<
Checking swap space: must be greater than 512 MB.   Actual 2047 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 18959 MB    Passed

Some system prerequisite checks failed.
You must fulfill these requirements before continuing.

Continue? (yes [y] / no [n]) [n]
y
You have confirmed that the product can be installed on this platform.
Continuing with the installation.


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2019-10-10_02-49-57AM
DISPLAY is not set.  Please set the DISPLAY environment variable 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
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
        at java.awt.Window.<init>(Window.java:536)
        at java.awt.Frame.<init>(Frame.java:420)
        at java.awt.Frame.<init>(Frame.java:385)
        at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1763)
        at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1838)
        at javax.swing.JDialog.<init>(JDialog.java:272)
        at javax.swing.JDialog.<init>(JDialog.java:206)
        at javax.swing.JDialog.<init>(JDialog.java:154)
        at oracle.as.install.engine.modules.presentation.ui.common.dialogs.SpecifyInventoryDirectoryDialog.<init>(SpecifyInventoryDirectoryDialog.java:248)
        at oracle.as.install.engine.modules.presentation.ui.common.dialogs.SpecifyInventoryDirectoryDialog.showDialog(SpecifyInventoryDirectoryDialog.java:781)
        at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:643)

The log(s) can be found here: /tmp/OraInstall2019-10-10_02-49-57AM.

我正在寻找这个错误的解决方案。

最佳答案

更好的是我们可以尝试使用 mobaXterm 而不是 PUTTY

mobaXterm 中,获取 Xserver 值并使用以下命令运行。

例如, export DISPLAY=192.168.0.106:0.0

然后,试试这个 xclock 命令。您可以在屏幕上显示时钟。收到时钟后,然后运行安装命令。

最后,将安装 webLogic 服务器。

关于linux - 检查监视器 : must be configured to display at least 256 colors. 未设置显示环境变量。失败<<<<,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58324449/

相关文章:

c - 在带有数学库的 Windows 上的 Ubuntu Bash 上出现 gcc 问题

c++ - 64位Unix时间戳转换

c++ - getsockopt(...,SO_ORIGINAL_DST,...) 偶尔会返回客户端地址

java - 上一个命令完成执行后批处理文件运行命令

python - WLST - 节点管理器命令 : "nmStart" can it start many weblogic servers at the same time?

linux - 为文件传输提供 ETA

java - 在weblogic管理控制台>部署中,stop命令有什么作用?

shell - GNU shell 函数在意外标记 `(' 附近出现语法错误

linux - centOS上/var/lib/jenkins目录下的空文件

docker - 无法让流量进入 docker 容器