Nginx, and Gunicorn on CentOS 7 dont work

June 14, 2018 160 views
Nginx Django CentOS

I followed the tutorial and could not publish my application with django. I performed all the procedures described in the tutorial including let SELINUX permissive. Is there any more procedure I can do to make it work correctly?

Work !!!
gunicorn --bind myproject.wsgi:application
[root@nxpython ~]# sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@nxpython ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: active (running) since Qui 2018-06-14 06:44:03 UTC; 4s ago
  Process: 1394 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
  Process: 1391 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
  Process: 1390 ExecStartPre=/usr/bin/rm -f /run/ (code=exited, status=0/SUCCESS)
 Main PID: 1396 (nginx)
   CGroup: /system.slice/nginx.service
           ├─1396 nginx: master process /usr/sbin/nginx
           └─1397 nginx: worker process


Be the first one to answer this question.