装Linux时出现Can't connect to X11 window server using ':0.0'

By | 04月20日
Advertisement

装Linux时出现Can't connect to X11 window server using ':0.0' as the value of the DISPLAY

[[email protected] 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 ...[[email protected] 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````试下,这样一般是可以把图形界面调出来了

本文出自 “技术博客” 博客,请务必保留此出处http://marlon617.blog.51cto.com/5299256/1048040

Similar Posts:

Tags: