安裝數據庫Typical path for xclock: /usr/X11R6/bin/xclock 錯誤問題

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

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 <<<<shell

Some requirement checks failed. You must fulfill these requirements beforebash

continuing with the installation,session

Continue? (y/n) [n] yoracle


>>> 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 +命令(使得全部客戶均可以訪問)ui

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

若是xhost +不能執行,報錯:xhost :  unable to open display ""server

能夠輸入命令export DISPLAY=:0執行一下rem

再執行xhost +  

就能夠安裝oracle了,可是若是沒有安裝成功 重啓linux,還會包上面這個錯,再從新執行一下就行了

 

若是啓動圖形界面顯示錯誤 能夠執行 xhost + 來解決

這是由於Xserver默認狀況下不答應別的用戶的圖形程序的圖形顯示在當前屏幕上. 假如須要別的用戶的圖形顯示在當前屏幕上, 則應以當前登錄的用戶, 也就是切換身份前的用戶執行以下命令

xhost +

這個命令將答應別的用戶啓動的圖形程序將圖形顯示在當前屏幕上. 

相關文章
相關標籤/搜索