Inspired by this article: https://www.cnblogs.com/zhangjpn/p/6876412.html?utm_source=itdadao& utm_medium=referral
Uwsgi official documentation configuration configuration 】 【 reference Flask: https://uwsgi-docs-zh.readthedocs.io/zh_CN/latest/WSGIquickstart.html

Customize a UWSGI.ini file and add the following
Uwsgi official documentation configuration configuration 】 【 reference Flask: https://uwsgi-docs-zh.readthedocs.io/zh_CN/latest/WSGIquickstart.html

Customize a UWSGI.ini file and add the following
[uwsgi]
# socket=Extranet ip: port (sockets are used for nginx connections, sockets are not supported for normal http connections)
http=0.0.0.0:8099
chdir=/root/uniapp-Flask/
wsgi-file=/root/uniapp-Flask/test.py
# must be parameterized, otherwise it will report Internal Server Error
callable=app
processes=4
threads=2
master=True
pidfile=uwsgi.pid
daemonize=uswgi.log
stop: uwsgi — stop uwsgi. Pid [if it cannot be stopped, use the kill command]
restart: uwsgi — reload uwsgi. Pid
USES the HTTP protocol to check the operation of the website, it works normally, but the static file cannot be loaded
// Command Line Run
uwsgi --http 0.0.0.0:8099 --wsgi-file main.py --callable app --processes 4 --threads 2
Read More:
- Solve the problem of 404 Not Found error in nginx accessing dynamic interface
- Solution of device eth0 does not see to be present, delaying initialization. Error in network card under Linux
- Git initializes the local existing project
- See system logs and ‘systemctl status docker.service‘ for details
- linux yum Error: PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’”
- The prefix “mvc” for element “mvc:view-controller” is not bound
- Nginx configuration 80 can be accessed by forcing jump 443 or not
- Installation and configuration of redis in Linux
- Nginx Error: [emerg] bind() to [::]:80 failed (98: Address already in use)
- Nginx realizes the same background service for portal and business
- How to Skip testing when Maven is packaged
- Linux changing password enter new UNIX password: passwd: authentication token manipulation error
- Linux: Configure Network address through Netplan
- How to Use Apt get Command Under Mac OSX
- Hadoop 3.2.0 idea development environment construction and HDFS read write API operation
- How to Solve Ubuntu “Failed to fetch” Error
- How to Fix xterm Xt error: Can’t open display: xterm: DISPLAY is not set
- Linux Nagios failed to log in to internal server error (Fixed)
- PM2 user defined Log, PID and other Log File Locations
- Vue implements page caching with keep alive