版本:CentOS Linux release 7.6.1810 (Core) 
firewall-cmd --version 0.5.3
防火墙开启的情况下,
nginx 反向代理 访问报 502
selinux是disable的状态防火墙端口已加入80 443端口但是8080 8090端口 我本机wget都是访问不了,关闭防火墙就可以访问了,这点是最奇怪的,本机访问本机都访问不了--2019-01-09 15:09:01--  (try:16)  http://x.x.x.x:8080/api
Connecting to x.x.x.x:8080... failed: Connection timed out.
Retrying.nginx配置如下     location /api {
                        root   html;
                        proxy_pass  http://x.x.x.x:8080/api;
                        proxy_set_header           Host $host;
                        proxy_set_header  X-Real-IP  $remote_addr;
                        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
                        proxy_connect_timeout 500s;
                        proxy_read_timeout 500s;
                        proxy_send_timeout 6s;
                        client_max_body_size  100m;
                        index  index.html index.htm;
        }怀疑是防火墙配置问题?