程序在redhat下运行正常,但是用户重启redhat后却连不上了,使用telnet命令, 结果是:
[root@tcsd-HP02 ~]# telnet 192.168.1.21 8873
Trying 192.168.1.21...
telnet: connect to address 192.168.1.21: No route to host
telnet: Unable to connect to remote host: No route to host
Trying 192.168.1.21...
telnet: connect to address 192.168.1.21: No route to host
telnet: Unable to connect to remote host: No route to host
而不是(端口没有打开的情况)
[root@tcsd-HP02 ~]# telnet 192.168.1.21 88722
Trying 192.168.1.21...
telnet: connect to address 192.168.1.21: Connection refused
telnet: Unable to connect to remote host: Connection refused
Trying 192.168.1.21...
telnet: connect to address 192.168.1.21: Connection refused
telnet: Unable to connect to remote host: Connection refused
所以
猜测是防火墙的原因
,关闭防火墙后,果然搞定了,原来以前是手动关闭的防火墙,重启后防火墙又打开了。