oracle中xhost报错
一.命令找不到xhost:command not foundyum whatprovides "*/xhost" Loaded plugins: product-id,security,subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. base/filelists_db | 3.4 MB 00:00 ... xorg-x11-server-utils-7.7-2.el6.x86_64 : X.Org X11 X server utilities Repo : base Matched from: Filename : /usr/bin/xhost yum -y install xorg-x11-server-utils-7.7-2.el6.x86_64 ? 二.安装oracle11g时出现xhost:? unable to open display "192.168.1.10:0.0"、打不开图形化界面等。终极解决方法: 注意:这块是0.0还是1.0查看xmanage左上角就可以看到,这里点击Xmanager - Broadcast 使用“xhost +”命令; a.用root用户登录修改 ?id:5:initdefault: ? ?#意思是从图形界面启动 ? 打开的图形化界面是乱码 ?export LANG=en_US.UTF-8?切记使用oracle用户,先执行这个,在执行./runInstaller ? ? 还有一种方法: 使用vnc远程安装工具 vnc配置 vncserver 在root用户下启动,我们采用默认配置即可。 ? ,在使用VNC远程安装时提示以下错误:>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set.? ? Failed <<<<解决办法,检查是否设置了DISPLAY变量:1.在root下执行#xdpyinfo,记录下name of display:后的字符串,如? :392.在root下执行 #xhost +返回信息为: access control disabled,clients canconnect from any host3.切换到Oracle用户:#su – oracle4.在Oracle用户下执行命令:export DISPLAY=:395.在Oracle下执行xdpyinfo命令,如果能正常显示,说明设置成功重新安装即可。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |