Question

Nginx, and Gunicorn on CentOS 7 dont work

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 0.0.0.0:8000 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/nginx.pid (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

thanks


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer