ORACLE 11g安装中出现xhost: unable to open display问题解决步骤
一、Xhosts报错
安装好vncserver,本地pc笔记本能通过vncviewer远程连接Oracle服务器,但是在执行xhost+报错,尝试过localhost,尝试过127.0.0.1,也试过本机ip地址,都是unabletoopendispla,如下所示
[root@orcltest~]#exportDISPLAY=localhost:1 [root@orcltest~]#xhost xhost:unabletoopendisplay"localhost:1" [root@orcltest~]# [root@orcltest~]#exportDISPLAY=127.0.0.1:1 [root@orcltest~]#xhost xhost:unabletoopendisplay"127.0.0.1:1" [root@orcltest~]#xhost+ xhost:unabletoopendisplay"127.0.0.1:1" [root@orcltest~]#xhost+192.51.3.12 xhost:unabletoopendisplay"192.51.3.12:1"
二、去查看后台的vnc日志信息,日志信息,看到vnc日志信息正常,没有啥异常信息
[root@orcltest~]#vim/root/.vnc/orcltest:1.log XvncTigerVNC1.1.0-builtMay11201613:01:55 Copyright(C)1999-2011TigerVNCTeamandmanyothers(seeREADME.txt) Seehttp://www.tigervnc.orgforinformationonTigerVNC. UnderlyingXserverrelease11704000,TheX.OrgFoundation TueMar1403:23:262017 vncext:VNCextensionrunning! vncext:ListeningforVNCconnectionsonallinterface(s),port5901 vncext:createdVNCserverforscreen0 GNOME_KEYRING_SOCKET=/tmp/keyring-jRupIx/socket SSH_AUTH_SOCK=/tmp/keyring-jRupIx/socket.ssh GNOME_KEYRING_PID=7358 Cleaned21files7stilllive Failedtoplaysound:Notavailable (polkit-gnome-authentication-agent-1:7380):GLib-GObject-WARNING**:cannotregisterexistingtype`_PolkitError' (polkit-gnome-authentication-agent-1:7380):GLib-CRITICAL**:g_once_init_leave:assertion`initialization_value!=0'failed **(gnome-user-share:7381):WARNING**:gnome-user-sharecannotbestartedasrootforsecurityreasons. Initializingnautilus-gduextension **(gnome-panel:7372):WARNING**:panel-applet-frame.c:1288:failedtoloadappletOAFIID:GnoteApplet: (null) **(gnome-panel:7372):WARNING**:panel-applet-frame.c:1288:failedtoloadappletOAFIID:GNOME_FastUserSwitchApplet: (null)
三、试试xdyinfo
Google到了一些资料,有准备安装xdyinfo成功的,这里也试试看,先安装xdpyinfo
[root@orcltest~]#xdpyinfo -bash:xdpyinfo:commandnotfound [root@orcltest~]#yuminstall-yxdpyinfo Loadedplugins:refresh-packagekit,security SettingupInstallProcess ResolvingDependencies -->Runningtransactioncheck --->Packagexorg-x11-utils.x86_640:7.5-14.el6willbeinstalled -->ProcessingDependency:libdmx.so.1()(64bit)forpackage:xorg-x11-utils-7.5-14.el6.x86_64 -->ProcessingDependency:libXxf86dga.so.1()(64bit)forpackage:xorg-x11-utils-7.5-14.el6.x86_64 -->Runningtransactioncheck --->PackagelibXxf86dga.x86_640:1.1.4-2.1.el6willbeinstalled --->Packagelibdmx.x86_640:1.1.3-3.el6willbeinstalled -->FinishedDependencyResolution DependenciesResolved =============================================================================================================================================================================================================================================================================== PackageArchVersionRepositorySize =============================================================================================================================================================================================================================================================================== Installing: xorg-x11-utilsx86_647.5-14.el6base101k Installingfordependencies: libXxf86dgax86_641.1.4-2.1.el6base18k libdmxx86_641.1.3-3.el6base15k TransactionSummary =============================================================================================================================================================================================================================================================================== Install3Package(s) Totaldownloadsize:133k Installedsize:270k DownloadingPackages: (1/3):libXxf86dga-1.1.4-2.1.el6.x86_64.rpm|18kB00:00 (2/3):libdmx-1.1.3-3.el6.x86_64.rpm|15kB00:00 (3/3):xorg-x11-utils-7.5-14.el6.x86_64.rpm|101kB00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total252kB/s|133kB00:00 Runningrpm_check_debug RunningTransactionTest TransactionTestSucceeded RunningTransaction Installing:libXxf86dga-1.1.4-2.1.el6.x86_641/3 Installing:libdmx-1.1.3-3.el6.x86_642/3 Installing:xorg-x11-utils-7.5-14.el6.x86_643/3 Verifying:libdmx-1.1.3-3.el6.x86_641/3 Verifying:xorg-x11-utils-7.5-14.el6.x86_642/3 Verifying:libXxf86dga-1.1.4-2.1.el6.x86_643/3 Installed: xorg-x11-utils.x86_640:7.5-14.el6 DependencyInstalled: libXxf86dga.x86_640:1.1.4-2.1.el6libdmx.x86_640:1.1.3-3.el6 Complete! [root@orcltest~]#
之后再执行xdpyinfo,可以xhsot+成功,如下所示,就可以启动./runInstaller安装oracle了。
[root@orcltest~]#xdpyinfo xdpyinfo:unabletoopendisplay"localhost:1". [root@orcltest~]#xhost+192.51.3.12 Xhost:unabletoopendisplay"localhost:1" [root@orcltest~]#exportDISPLAY=:1.0 [root@orcltest~]#xhost+ accesscontroldisabled,clientscanconnectfromanyhost [root@orcltest~]#
总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作能带来一定的帮助,如果有疑问大家可以留言交流,谢谢大家对毛票票的支持。