1. Project introduction In September 2023, I successfully deployed a Django project on Alibaba Cloud. The specific environment is as follows: Server: Ubuntu Server 22.04 LTS 64bit (Linux) Reverse proxy server: Nginx WEB server: uwsgi Project framework: Django (version 4.2) Project running environment: Python3 2. The relationship between nginx, uwsgi and ubuntu 1. First, the […]
Tag: wsgi
docker+mysql+flask+redis+vue3+uwsgi+docker deployment
First pull the mysql image, the mysql5.7.6 used here docker pull mysql:5.7.6 Start after the image pull is completed: docker run –name my-mysql -d -p 3306:3306 -v /usr/local/my-mysql/conf:/etc/mysql/conf.d -v /usr/local/my-mysql/ data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7.6 Use dockerfile to build python3.9.11 + uwsgi + nginx FROM python:3.9.11 # Add tags to the image LABEL version=”v1″ description=”Docker deploy […]
Python uWSGI installation configuration
Python uWSGI installation configuration This article mainly introduces how to deploy simple WSGI applications and common web frameworks. Taking Ubuntu/Debian as an example, first install the dependency packages: apt-get install build-essential python-dev Python installation uWSGI 1. Through pip command: pip install uwsgi 2. Download the installation script: curl http://uwsgi.it/install | bash -s default /tmp/uwsgi Install […]
Django+Nginx+uWSGI+Supervisor actual combat
Hello everyone, I haven’t updated the article for a long time. I miss it very much. I have a lot of things going on recently, including family matters and work matters. I really don’t have much time to write articles. In fact, I have shelved some articles and haven’t organized them yet. Taking advantage of […]
uwsgi deploys multi-process django apscheduler and troubleshoots
About the author: Hello everyone, I am Zeeland, an open source builder and high-quality creator in the full-stack field. CSDN homepage: Zeeland My blog: Zeeland Github homepage: Undertone0809 (Zeeland) Support me: Like + Collection + Leave a message Introduction: The mixture of software dev + Iot + ml + anything Introduction The apscheduler that was […]
Django + Vue deployment server nginx + uwsgi
Django + Vue deployment server, nginx + uwsgi Premise: Make sure that the running environment of the server Django + Vue is normal, and you can manually run the front-end and back-end projects Description: Use Django to access the dict file of the front-end compilation product. The entire web service runs on port 82, the […]
Deploy Django with nginx+uwsgi under centos
Try to use centos nginx + uwsgi to deploy a previous django project. The process of solving the problem is long and arduous, but it turns out to be worthwhile. If you are deploying a Django project, I hope it can help you Prerequisites What I use: python3.6 mysql5.7 django project 3.2 First, download python […]
nginx uwsgi configuration django
uwsgi-file [uwsgi] # Service port number, no IP value is set here, the default is the IP address of the loading server #http = :5000 socket=:8000 # flask project address chdir = /pyprogram/electric # wsgi file /home/flask_project/mange.py #module = app:app wsgi-file=/pyprogram/electric/electric/wsgi.py # number of processes processes = 3 # main process master = true # […]
Python project deployment process in CentOS-8.5 environment (Python, Nginx, MySQL, uwsgi)
Table of Contents 1. Install Python3.6.7 in CentOS-8.5 environment 1. Download the Python installation package 2. Unzip 3. Compile the installation package 3. Recompile and install 4. Add environment variables 5. Check whether it is successful, execute the following code 6. Replace the domestic pip source 7. Uninstall Python (if necessary) 8. Create a virtual […]
Nginx+Uwsgi+Django+Mysql deployment project
Chapter 1, Preparations Section 1, Create a project directory Prepare the project code and upload the code to myproject mkdir myproject Section 2, install python3 cd /usr/local/ mkdir Python wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz tar -zxvf Python-3.8.0.tgz mkdir /usr/local/Python/py3_project cd Python-3.8.0 ./configure –prefix=/usr/local/python3 –enable-shared make & amp; & amp; make install ln -s /usr/local/python3/bin/python3 /usr/bin/python vim ~/.bash_profile PATH=$PATH:$HOME/bin:/usr/local/python3/bin […]