解决思路:no python application found, check your startup logs for errors

当使用uwsgi部署Python Web项目时,可能会遇到'no python application found'错误。解决方法是仔细检查日志,因为uwsgi的启动错误信息通常会记录在启动日志中。如果是因为Python版本冲突,例如在CentOS7中同时存在Python2和Python3,pip3安装的uwsgi默认使用Python2,可以通过创建软链接将pip3安装的uwsgi指向/usr/bin目录,并替换或重命名原来的uwsgi启动文件。此外,错误还可能是由于应用程序内部的启动写法不正确,需要根据具体报错信息进行调整。
摘要由CSDN通过智能技术生成

uwsgi部署python web项目的时候可能会出现标题报错:

解决思路,看日志:

[root@lovecat uswgi]# uwsgi --http :9090 --wsgi-file /app/uwsgi/start:app
*** Starting uWSGI 2.0.18 (64bit) on [Thu Oct 10 02:28:27 2019] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-36) on 23 September 2019 03:04:11
os: Linux-3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017
nodename: lovecat.liu.com
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /app/uswgi
detected binary path: /usr/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 processes number limit is 15086
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with -
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值