虚拟化容器,大数据,DBA,中间件,监控。

Centos6.5 linux解决xhost: unable to open display

23 06月
作者:admin|分类:系统运维

Centos6.5 linux解决xhost: unable to open display 



实用技巧:在Linux下设置xhost方法步骤

第一步:用root登陆linux,启动vnc服务;

第二步:根据vnc起来的端口,设置exportDISPLAY=localhost:1(1表示vnc在第一个tty上启动的),vnc的启动信息见附件1;

第三步:执行xhost +,并且提示“access controldisabled, clients can connect from any host”才正确。

linux下的操作日志如下:

[root@localhost ~]# vncserver

New'localhost:1 (root)' desktop is localhost:1

Startingapplications specified in /root/.vnc/xstartupLog file is/root/.vnc/localhost:1.log

[root@localhost ~]# exportDISPLAY=localhost:1

[root@localhost ~]# xhost +

accesscontrol disabled, clients can connect from anyhost 

在设置xhost时,出现了unable的问题。使用上诉方法就可以搞定。

浏览2183 评论0
返回
目录
返回
首页
Axis2的下载和安装 CentOS下httpd动态增加编译module_file_cache