这个网站可以’;联系不到puma,nginx rails部署

这个网站可以’;联系不到puma,nginx rails部署,nginx,web,config,Nginx,Web,Config,我尝试删除nginx并重新安装它。但当我从IP vps访问时,它总是显示 This site can’t be reached refused to connect. 在我的/etc/nginx/sites enabled/default文件中 ## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order t

我尝试删除nginx并重新安装它。但当我从IP vps访问时,它总是显示

This site can’t be reached
refused to connect.

在我的
/etc/nginx/sites enabled/default
文件中

##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
#
# This file will automatically load configuration files provided by other
# applications, such as Drupal or Wordpress. These applications will be made
# available underneath a path with that package name, such as /drupal8.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

# Default server configuration
#
server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /var/www/html;

    # Add index.php to the list if you are using PHP
    index index.html index.htm index.nginx-debian.html;

    server_name _;

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ =404;
    }

}
nginx状态

● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2021-05-23 01:23:00 UTC; 13min ago
       Docs: man:nginx(8)
    Process: 28124 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 28134 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 28136 (nginx)
      Tasks: 2 (limit: 2280)
     Memory: 2.6M
     CGroup: /system.slice/nginx.service
             ├─28136 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
             └─28137 nginx: worker process

我尝试运行
sudonginx-t
,检查日志

bind() to [::]:80 failed (98: Address already in use)
still could not bind()

所以请帮助我,为什么我在nginx工作时访问IP它总是http,但当我删除并重新安装nginx时,我看到它总是重定向到https

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful