VNC Viewer:The connection was refused by host computer

简介: VNC Viewer:The connection was refused by host computerCentOS 6.5 修改IP后VNC链接失败,提示:The connection was refused by host computer这种情况应该是服务器IP变了,而vnc还在...

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,不过没关系,客户端已经可以连接了。


目录
相关文章
链接远程服务器出现 Connection closed by foreign host
链接远程服务器出现 Connection closed by foreign host
|
Arthas 测试技术 网络安全
The telnet port 3658 is used by process
是否在本地使用Arthas的时候,遇到The telnet port 3658 is used by process 34725 instead of target process 44848, you will connect to an unexpected process的异常,其实解决方法很简单。
2133 0
The telnet port 3658 is used by process
|
9月前
|
分布式计算 Hadoop 网络安全
[m1pro ] ssh: connect to host localhost port 22: Connection refused
[m1pro ] ssh: connect to host localhost port 22: Connection refused
100 1
mac安装homebrew失败:Failed to connect to raw.githubusercontent.com port 443: Connection refused
mac安装homebrew失败:Failed to connect to raw.githubusercontent.com port 443: Connection refused
|
应用服务中间件 网络安全
xshell 连接报错 Disconnected from remote host
xshell 连接报错 Disconnected from remote host
528 0
|
网络安全
ssh到图形界面时报:X11 forwarding request failed on channel 0
在本地主机sshd的配置文件/etc/ssh/sshd_config加两行
403 0
|
弹性计算 Linux 网络安全
Disconnected: No supported authentication methods available)FileZilla通过SSH连接Linux服务器( CentOS)
Disconnected: No supported authentication methods available)FileZilla通过SSH连接Linux服务器( CentOS)
673 0
Disconnected: No supported authentication methods available)FileZilla通过SSH连接Linux服务器( CentOS)
|
Shell Ruby
mac 安装brew报错 Failed to connect to raw.githubusercontent.com port 443: Connection refused解决办法...
mac 安装brew报错 Failed to connect to raw.githubusercontent.com port 443: Connection refused解决办法...
756 0
|
网络安全
mac下 ssh: connect to host localhost port 22: Connection refused
mac下 ssh: connect to host localhost port 22: Connection refused
887 0
mac下 ssh: connect to host localhost port 22: Connection refused