本文主要是介绍Linux:xhost: unable to open display,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Xmanager6的Xstart窗口出现问题:
[root@*** database]# xhost +
xhost: unable to open display ""
解决方法:
[root@*** database]# vncserverYou will require a password to access your desktops.Password:
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Verify:New '***:1 (oracle)' desktop is ***:1Creating default startup script /root/.vnc/xstartup
Creating default config /root/.vnc/config
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/***:1.log
[root@*** database]# export DISPLAY=localhost:1
[root@*** database]# xhost +
access control disabled,clients can connect from any host
如果出现:
[root@*** oracle]# vncserver
bash: vncserver: command not found
请参考:【Linux: bash: vncserver: command not found】
使用xshell时,上面的命令返回也可能是这样的:
[root@*** database]# export DISPLAY=localhost:1
[root@*** database]# xhost +
xhost: unable to open display "localhost:1"
此时,你在重新打开Xstart窗口:
[root@*** ~]# cd /opt/oracle/
[root@*** oracle]# cd database/
[root@*** database]# xhost +
access control disabled, clients can connect from any host
如果有写的不对的地方,请大家多多批评指正,非常感谢!
这篇关于Linux:xhost: unable to open display的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!