用vnc viewer 远程访问centos 报错unable connected to socket 111

最近在用vnc view 访问centos6.4 vncserver 时报错 centos  unable connected to socket 111

用下面到方法就可以解决:

1,用root用户登录

2,vi /etc/sysconfig/vncservers

 

VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"

改成即可

VNCSERVERARGS[2]="-geometry 800x600"

 

3.重启vncserver

service vncserver restart

你可能感兴趣的:(centos6.4,Vnc Viewer)