乖兔博客

乖兔 > 系统工具 > VNC Timed out waiting for a response from the computer

VNC Timed out waiting for a response from the computer

乖兔 更新于: 2020-02-16 分类:系统工具

VNC Timed out waiting for a response from the computer.png

问题状况:

Centos上安装好X Window System GNOME图形界面以后一切都配置好了,并且过程总也没有任何报错。但是当用VNC Viewer客户端来连接的时候,却怎么也连接不上。一开始以为是安装时候出了问题,于是反复安装,安装三次后,问题依旧。确定应该不是安装的问题。

网上查资料,换其他客户端连接,均无法解决。最后发现,是linux服务器防火墙的端口没有配置好。

解决方法:

①配置防火墙端口

sudo /sbin/iptables -I INPUT 1 -p TCP --dport 5901:5910 -j ACCEPT

②安装iptables.service文件,(如果系统里已经有此文件则可以忽略这一步

yum install iptables-services

③重启iptables服务:

service iptables restart

这时候再使用VNC Viewer客户端来连接GNOME桌面,发现问题解决了。

打赏