Проблемы с использованием ngix и uwsgi

Я пытаюсь подключить django uwsgi и nginx, но столкнулся с некоторыми проблемами, описанными ниже.

  1. when I start nginx, I got an error as below nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)

  2. whenever I access 127.0.0.1:8080 which is configured in nginx conf file, I got 504 Gateway Time-out. But I can access 127.0.0.1:80 and can see Welcome to nginx! html page.

Я поделился своим nginx conf файлом и прошу помочь мне подключить uwsgi(127.0.0.1:8000) и nginx(127.0.0.1:8080)

upstream django{
    server 127.0.0.1:8000;
}
server{
    listen 8080 default_server;
    server_name 127.0.0.1 default;
    charset utf-8;

    location / {

        uwsgi_pass django;
        include /etc/nginx/uwsgi_params;
        root /home/bigdata/Django_Web;
    
    }

    location =/favicon.ico {
        return 204;
        access_log  off;
        log_not_found   off;
    }

    location /static {
        alias /home/bigdata/Django_Web/staticfiles;
    }

}

Заранее благодарю!

Вернуться на верх