1. graphical interface if connectionrefused (10061) is prompted when you log on from vncview, it is because of a linux firewall problem. log on to centos and select System? & Gt; Preferences? & Gt; RemoteDesktop: check the two items in sharing. the Security items are not checked. click close and re-use vn.
1. graphic interface
If connection refused (10061) is prompted when you log on from the vnc view, it is because of a linux firewall problem. log on to the centos System and select System?> Preferences?> For Remote Desktop, check the two items in sharing. if Security is not checked, click close and log on again with vnc view.
2. modify the command line:
When using the firewall to connect to a remote system, Port 5901 must be enabled.
Add the following red parts and restart the iptables service.
[Root @ localhost. vnc] # more/etc/sysconfig/iptables
-A RH-Firewall-1-INPUT-m state? State NEW-m tcp-p tcp? Dport 5901-j ACCEPT
#/Sbin/service iptables restart
-