Restart Django+uWSGI+Nginx
作者:XD / 发表: 2023年4月10日 22:11 / 更新: 2023年4月10日 22:16 / 编程笔记 / 阅读量:974
Restart Django+uWSGI+Nginx
1. Check Django
python manage.py runserver
2. Start uWSGI
killall -s INT uwsgi #kill uwsgi
ps -ef |grep uwsgi # check uwsgi process
cd ./script
uwsgi --ini uwsgi.ini # start uwsgi
uwsgi --stop uwsgi.pid # stop uwsgi
2. Start uWSGI
/etc/init.d/nginx start
/etc/init.d/nginx restart
/etc/init.d/nginx stop
systemctl status nginx
ps -ef |grep uwsgi # check nginx process