一个服务正在我的系统(redhat linux)中运行,它打开了端口9000.当我这样做的时候
# telnet localhost 9000
它说,
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
但是,当我做我的networkingIP相同,
# telnet 172.21.198.62 9000
它说,
Trying 172.21.198.62...
telnet: connect to address 172.21.198.62: Connection refused
telnet: Unable to connect to remote host: Connection refused
这是为什么 ?
我使用service iptables stop
diabled防火墙
而且这种情况只发生在这个端口上, telnet 172.21.198.62 22
工作正常。
进程只侦听127.0.0.0:9000
netstat -an | grep 9000
改变程序conf