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


目录
相关文章
|
7月前
|
分布式计算 Hadoop 网络安全
[m1pro ] ssh: connect to host localhost port 22: Connection refused
[m1pro ] ssh: connect to host localhost port 22: Connection refused
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
488 0
|
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解决办法...
693 0
|
关系型数据库 MySQL 数据安全/隐私保护
Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错
Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错
615 0
Client does not support authentication protocol requested by server 解决Navicat连接不上MySql服务器报错
|
网络安全
mac下 ssh: connect to host localhost port 22: Connection refused
mac下 ssh: connect to host localhost port 22: Connection refused
748 0
mac下 ssh: connect to host localhost port 22: Connection refused
|
Linux 网络安全
ssh连接提示 "Connection closed by remote host"
ssh连接提示 "Connection closed by remote host" ** 如果原来是可以用ssh连接的, 突然连接不上通常是连接数过多导致的.
17417 0
|
Linux 测试技术 网络安全
VNC connect:Connection refused(10061)
在Windows机器上使用VNC Viewer访问Linux服务器,有时候会遇到"connect:Connection refused(10061)"这个错误,导致这个错误出现的原因有多重,下面总结一下:     1:使用VNC Viewer时忘记加桌面号(一般为IP:桌面号,桌面号要看你自己的配置而定。
4589 0