Use nginx, uwsgi not django project on linux

Reference: https: //www.django.cn/article/show-4.html#buzhou

Precautions:

Operating in a virtual environment, the virtual environment to install Nginx, uwsgi outside the virtual environment to be installed uwsgi

- temporarily turn off the firewall: systemctl STOP firewalld.service
- permanently turn off the firewall: systemctl disable firewalld.service

Start nginx or uwsgi unsuccessful:
- start in centos nginx appears Failed to start nginx.service: unit not found :

The cause of the error is not added nginx service, it failed to start:
https://www.cnblogs.com/ansibee/p/8087476.html


- port is occupied or already have processes running:

# View Uwsgi process 
PS -ef | grep uwsgi  # uwsgi process with the kill method to kill, then start uwsgi 
killall -9 uwsgi

Guess you like

Origin www.cnblogs.com/yangyangming/p/11915462.html