ITPub博客

首页 > 数据库 > Oracle > linux解决xhost: unable to open display

linux解决xhost: unable to open display

原创 Oracle 作者:ws121230 时间:2015-06-08 22:42:29 0 删除 编辑
linux解决xhost: unable to open display
实用技巧:在Linux下设置xhost方法步骤
第一步:用root登陆linux,启动vnc服务;
第二步:根据vnc起来的端口,设置export DISPLAY=localhost:1(1表示vnc在第一个tty上启动的;
第三步:执行xhost +,并且提示“access control disabled, clients can connect from any host”才正确。
linux下的操作日志如下:
[root@sztech ~]# vncserver
New 'sztech:1 (root)' desktop is sztech:1
Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/sztech:1.log
[root@sztech ~]# export DISPLAY=localhost:1
[root@sztech ~]# xhost +
access control disabled, clients can connect from any host
在设置xhost时,出现了unable的问题。使用上诉方法就可以搞定。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29831645/viewspace-1692207/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-08-28

  • 博文量
    25
  • 访问量
    68243