裝Linux時出現Can't connect to X11 window server using ':0.0' as the value of the DISPLAY

  裝Linux時出現Can't connect to X11 window server using ':0.0' as the value of the DISPLAY

[oracle@localhost database]$ ./runInstaller 

Starting Oracle Universal Installer...

 

Checking installer requirements...

 

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

                                      Passed

 

 

All installer requirements met.

 

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-11-02_11-23-33AM. Please wait ...[oracle@localhost database]$ Xlib: connection to ":1.0" refused by server

Xlib: No protocol specified

 

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.

        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

        at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Unknown Source)

        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)

        at java.awt.Window.init(Unknown Source)

        at java.awt.Window.<init>(Unknown Source)

        at java.awt.Frame.<init>(Unknown Source)

        at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)

        at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)

        at oracle.sysman.oio.oioc.OiocOneClickInstaller.<init>(OiocOneClickInstaller.java:378)

        at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2091)

 

解決辦法:


在root用戶下執行#:xhost +
然後切換成oracle用戶:su - oracle
在執行:./run````試下,這樣一般是可以把圖形界面調出來了

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章