2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Table of contents
4. Nginx configuration static files
5. Nginx load balancing configuration
uWSGI is a web server that can be used to deploy Python web applications. It is a high-performance general-purpose web server that can run on a variety of operating systems and supports a variety of web service protocols.
Official documentation:The uWSGI project — uWSGI 2.0 documentation
pip install uwsgi==2.0.21
- [uwsgi]
- # 使用nginx作为web服务器
- #socket = 127.0.0.1:8000
- # 直接做web服务器
- http=192.168.0.182:8000
- # 指定项目的根目录
- chdir = /opt/django_deploy12
- # 指定项目的wsgi文件
- wsgi-file = django_deploy12/wsgi.py
- # 指定启动的工作进程数
- processes = 4
- # 指