返回列表 发帖

桌面装好后,vnc无法连接上

按照教程  CentOS 安装桌面,CentOS 6.0下vncserver安装配置、(xfce桌面)进行远程管理 这个教程操作到最后,一直没有遇到错误,但是到了用vnc连接的时候,却提示“failed to connect to server” 教程看过好几遍,都没发现问题出在哪里,呵呵,求教啊!
分享到: QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友

回复 3# idc886


   我的是centos 6的,安装教程也是那个帖子里面6系的安装方法,重启过几次,刚才也重启了,看到两个ok了,但就是连接不上,还是那个提示。   这种桌面,应该跟本机的远程连接什么的组件没关系吧?360老是优化我远程组件

TOP

回复 5# idc886

这个文档的代码是这样的    我的ip是 81.209.164.147
  
  1. # The VNCSERVERS variable is a list of display:user pairs.
  2. #
  3. # Uncomment the lines below to start a VNC server on display :2
  4. # as my 'myusername' (adjust this to your own).  You will also
  5. # need to set a VNC password; run 'man vncpasswd' to see how
  6. # to do that.  
  7. #
  8. # DO NOT RUN THIS SERVICE if your local area network is
  9. # untrusted!  For a secure way of using VNC, see this URL:
  10. # http://kbase.redhat.com/faq/docs/DOC-7028

  11. # Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.

  12. # Use "-localhost" to prevent remote VNC clients connecting except when
  13. # doing so through a secure tunnel.  See the "-via" option in the
  14. # `man vncviewer' manual page.

  15. # VNCSERVERS="2:myusername"
  16. # VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
  17. # VNCSERVERS="1:root"
  18. # VNCSERVERARGS[1]="-geometry 1024x768
  19. VNCSERVERS="1:root"
  20. VNCSERVERARGS[1]="-geometry 1024x768"
复制代码

TOP

本帖最后由 376567284 于 2012-9-19 22:33 编辑

回复 7# idc886


   清楚防火墙后,登录成功,呵呵,看来就是防火墙问题了,应该怎么修改这个规则呢
   呃,弱弱的问一句,我全屏了,不会退出全屏模式了,汗。。。。

TOP

回复 9# idc886


   嗯,我摸索摸索,非常感谢啊,呵呵

TOP

回复 11# idc886


  我是后来直接重启了一次vps,然后重新连接上去,全屏,这时候就有提示了,貌似是4个键的组合,很麻烦。
好像是ctrl+alt+shift+f

TOP

返回列表