栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

uwsgi部署flask项目的报错解决

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

uwsgi部署flask项目的报错解决

场景

在centos7服务器上的容器里,部署uwsgi+flask的项目,uwsgi无法正常启动,报错如下

报错内容
[uWSGI] getting INI configuration from uwsgi.ini
*** WARNING: Can't find section "uwsgi" in INI configuration file uwsgi.ini ***
*** Starting uWSGI 2.0.19.1 (64bit) on [Mon May 30 11:22:35 2022] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-44) on 03 April 2022 05:31:44
os: Linux-5.10.84-10.2.al8.x86_64 #1 SMP Thu Feb 10 15:03:09 CST 2022
nodename: 775d62a05ad1
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /usr/local/nginx/conf/conf.d
detected binary path: /usr/local/bin/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** 
*** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
detected max file descriptor number: 1048576
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** 
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** 
The -s/--socket option is missing and stdin is not a socket.
注意看这一句


他意思说uwsgi.ini文件里面,找不到[uwsgi]这个配置头,但是我的文件里是有的,所以这是uwsgi的一个bug

解决:在原来的[uwsgi]下面重新手写一个[uwsgi],注意不要复制,复制的不行
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/940627.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号