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:
- Weblogic Deployment Error: The most likely cause is an error in the network configuration of this machine.
- Common configuration methods of nginx
- Nginx Error: nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /project/api/nginx.conf:
- Nginx error: nginx: [error] invalid PID number ““ in “/run/nginx.pid“
- Nginx configuration 80 can be accessed by forcing jump 443 or not
- [Solved] Nginx Startup Error: directive is not allowed here in
- Nginx Error: Swap file “/etc/nginx/.nginx.conf.swp“ already exists
- [Solved] nginx: [error] open() “/usr/local/nginx/nginx.pid” failed (2: No such file or directory)
- Linux Nagios failed to log in to internal server error (Fixed)
- Nginx Startup Error: “/var/run/nginx/nginx.pid” failed” [How to Solve]
- Linux Ubuntu Django Error: uwsgi: error while loading shared libraries: libpcre.so.1
- The solution to the crash loop back off error of coredns in k8s deployment
- Restart and stop of nginx in Linux service
- Solve the problem of 404 Not Found error in nginx accessing dynamic interface
- Nginx Startup Error: Job for nginx.service failed because the control process exited with error code
- How to Fix No default.conf file in conf.d after Installing Nginx
- [Solved] Nginx Restart Error: /run/nginx.pid failed (2: No such file or directory)
- After Centos installation is complete, ifconfig: command not found
- Server hardware and RAID configuration
- Nginx Error: [emerg] bind() to [::]:80 failed (98: Address already in use)