VNC Viewer:The connection was refused by host computer

Posted 微wx笑

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VNC Viewer:The connection was refused by host computer相关的知识,希望对你有一定的参考价值。

VNC Viewer:The connection was refused by host computer

CentOS 6.5 修改IP后VNC链接失败,提示:The connection was refused by host computer


这种情况应该是服务器IP变了,而vnc还在监听原来的IP上的数据;


最简单的方式就是重新启动服务器,我没有试过;

我尝试重启 vncserver

# service vncserver restart
关闭 VNC 服务器:                                          [确定]
正在启动 VNC 服务器:1:root A VNC server is already running as :1
                                                           [失败]
尝试失败了!

后来重新初始化了一下就好了:

# vncserver

New '192.168.1.33:8 (root)' desktop is 192.168.1.33:8

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/192.168.1.33:8.log
虽然我的IP已经改了,但是这里显示的还是原来的IP,不过没关系,客户端已经可以连接了。


以上是关于VNC Viewer:The connection was refused by host computer的主要内容,如果未能解决你的问题,请参考以下文章

VNC Connect远程工具使用-使用体验极高

PowerShell Install VNC-Server & VNC-Viewer

PowerShell Install VNC-Server & VNC-Viewer

VNC-Server Install Windows Linux

VNC-Server Install Windows Linux

如何查vnc连接记录