​http://inthirties.com:90/thread-1243-1-1.html​



发现vncserver不能连接了。

检查vncserver的服务启动没有,已经启动。

然后确定防火墙已经关闭,

现在的症状是只能本地连接,remote的都连接不了

ps了一下
[root@redflag1 ~]# ps -ef | grep vnc
oracle 8204 1 0 23:09 ? 00:00:03 Xvnc :1 -desktop redflag1:1 (oracle) -auth /home/oracle/.Xauthority -geometry 800x600 -depth 16 -rfbwait 30000 -rfbauth /home/oracle/.vnc/passwd -rfbport 5901 -pn -nolisten tcp -localhost
oracle 8211 8210 0 23:09 ? 00:00:00 vncconfig -iconic

发现可疑的地方tcp -localhost

是不是这个影响的。

打开/etc/sysconfig/vncservers
VNCSERVERS="1:oracle"
VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"

配置的上面有句话
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.


看来是原因找到了,去掉-localhost,然后重启vnc,

客户端连接OK