Amazon web services 未在AWS EC2上加载NGINX默认页面

Amazon web services 未在AWS EC2上加载NGINX默认页面,amazon-web-services,nginx,amazon-ec2,Amazon Web Services,Nginx,Amazon Ec2,去部署一个项目-通过EC2租了一个AmazonLinux2AMI。SSH已安装到计算机中,通过sudo-yum-update应用更新,然后通过sudo-amazon-linux-extras安装nginx1安装NGINX。用sudo systemctl start NGINX启动了NGINX,我看到了这一点 ● nginx.service - The nginx HTTP and reverse proxy server Loaded: loaded (/usr/lib/systemd/s

去部署一个项目-通过EC2租了一个AmazonLinux2AMI。SSH已安装到计算机中,通过
sudo-yum-update
应用更新,然后通过
sudo-amazon-linux-extras安装nginx1
安装NGINX。用sudo systemctl start NGINX启动了NGINX,我看到了这一点

● nginx.service - The nginx HTTP and reverse proxy server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2021-06-02 04:36:12 UTC; 1min 16s ago
  Process: 7635 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
  Process: 7631 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
  Process: 7629 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
 Main PID: 7637 (nginx)
   CGroup: /system.slice/nginx.service
           ├─7637 nginx: master process /usr/sbin/nginx
           └─7638 nginx: worker process
到目前为止还不错。转到我的实例的安全组,并将HTTP协议设置为ANYWHERE作为选项。重新启动NGINX,当我转到我的实例公共IPv4地址时,它不会加载我期望从NGINX加载的默认页面。它只是拒绝连接并超时。我继续卷曲了我的IPv4地址,它确实显示了我期望的默认NGINX页面的HTML。我只是不知道为什么我不能连接时,我去的IP地址