In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces how the gunicorn + nginx+python3 deployment flask project depends on the package, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Gunicorn + nginx+python3 deployment (gevent+gevent)-dependent packages
Bind = ["0.0.0.0 5010"]
Workers = 4
Backlog = 2048
Worker_class = & apos;gevent&apos
Forwarded_allow_ips = "*"
Keepalive = 5
Timeout = 300
Worker_connections = 65535
Loglevel = "info"
Access_log_format = & apos;% (h) s% (l) s% (u) s% (t) s "% (r) s"% (s) s% (b) s "% (f) s"% (a) s "& apos
Accesslog = & apos;/root/tv/tv_api/zhijian_tv_api/gunicorn_access.log&apos
Errorlog = & apos;/root/tv/tv_api/zhijian_tv_api/gunicorn_error.log&apos
Run the command-gunicorn-c gunicorn_conf.py manager:app-D
=
Nginx.conf-do not move
=
Nginx/conf.d
Server {
Listen 80
Server_name max-tv.net.cn, www.max-tv.net.cn
Return 301 https://www.max-tv.net.cn$request_uri;
}
Server {
Listen 443 ssl
Server_name www.max-tv.net.cn
Ssl_certificate / etc/nginx/ssl_h6/2425677_max-tv.net.cn.pem
Ssl_certificate_key / etc/nginx/ssl_h6/2425677_max-tv.net.cn.key
Root / usr/share/nginx/html
Location / {
Root/ root/newProject/h6newproject/dist
Index index.html index.htm list.html MP_verify_zseh73X5od2vmgWX.txt
Try_files $uri $uri/ / index.html
}
Location / api/share/ {
Error_page 404 / 404.html
Proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for
Proxy_set_header X-Forwarded-Proto $scheme
Proxy_set_header Host $http_host
Proxy_redirect off
Proxy_pass http://sharing;
Error_page 500 502 503 504 / 50x.htl;}
}
Upstream sharing {
Server 39.98.188.73:5011 fail_timeout=0
}
About gunicorn + nginx+python3 deployment flask project depends on how the package is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.