对应问题:产品在Linux成功启动,但是只能从本地访问,不能从外部访问。查看端口情况(80)
# netstat -naltp |grep 80
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1804/master
tcp 0 0 127.0.0.1:13306 127.0.0.1:15870 ESTABLISHED 2800/postgres: post
tcp 0 0 127.0.0.1:13306 127.0.0.1:15874 ESTABLISHED 2803/postgres: post
tcp6 0 0 :::80 :::* LISTEN 2652/java
tcp6 0 0 ::1:25 :::* LISTEN 1804/master
tcp6 0 0 10.64.107.13:20680 10.92.6.51:443 ESTABLISHED 2652/java
没有 绑定到0.0.0.0:80
admin@1092645-NetflowAgentBJ bin]$ sudo iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[admin@1092645-NetflowAgentBJ bin]$ sudo firewall-cmd --statenot running
not running