设置Nginx:端口显示为未打开

Setting up Nginx: port appears as not opened

我已经获得了 CentOS 8 机器的访问权限,该机器在端口 80 上已经有一个网络 运行。我检查过没有防火墙 运行(firewalld 和 ufw 都没有)。我的想法是在端口 55555 上设置一个 Django web 运行。因此,我想要实现的第一件事是从机器外部显示默认的 Nginx 页面。

目前我的Nginx配置如下:

    include             /etc/nginx/mime.types;
    default_type        application/octet-stream;

    # Load modular configuration files from the /etc/nginx/conf.d directory.
    # See http://nginx.org/en/docs/ngx_core_module.html#include
    # for more information.
    include /etc/nginx/conf.d/*.conf;

    server {
        listen       55555 default_server;
        listen       [::]:55555 default_server;
        server_name  _;
        root         /usr/share/nginx/html;

        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;

        location / {
        }

        error_page 404 /404.html;
            location = /40x.html {
        }

        error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }
    }

# Settings for a TLS enabled server.
#
#    server {
#        listen       443 ssl http2 default_server;
#        listen       [::]:443 ssl http2 default_server;
#        server_name  _;
#        root         /usr/share/nginx/html;
#
#        ssl_certificate "/etc/pki/nginx/server.crt";
#        ssl_certificate_key "/etc/pki/nginx/private/server.key";
#        ssl_session_cache shared:SSL:1m;
#        ssl_session_timeout  10m;
#        ssl_ciphers PROFILE=SYSTEM;
#        ssl_prefer_server_ciphers on;
#
#        # Load configuration files for the default server block.
#        include /etc/nginx/default.d/*.conf;
#
#        location / {
#        }
#
#        error_page 404 /404.html;
#            location = /40x.html {
#        }
#
#        error_page 500 502 503 504 /50x.html;
#            location = /50x.html {
#        }
#    }

}

此外,端口 55555 显示为已打开:

本地访问时显示Nginx默认页面,但尝试从另一台机器访问网页(192.XXX.XXX.XXX:55555)时,我发现80端口已打开并且可以访问但是端口 55555 未打开。

为了配置 Nginx 以在从外部访问时检索默认网页,我遗漏了什么线索?

如果您可以在本地访问端口 55555,则 Nginx 似乎已正确设置,所以我会更仔细地查看网络,可能与您连接的机器有关或阻止该端口允许的东西入站连接