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