wutuo2048 2019-08-11 20:23 采纳率: 0%
浏览 2969

uWSGI uwsgi uwsgi.ini 启动报错怎么办

[root@VM_0_15_centos ~]# cd /www
[root@VM_0_15_centos www]# uwsgi uwsgi.ini
[uWSGI] getting INI configuration from uwsgi.ini
*** Starting uWSGI 2.0.18 (64bit) on [Sun Aug 11 20:18:39 2019] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-36) on 11 August 2019 11:49:00
os: Linux-3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018
nodename: VM_0_15_centos
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 1
current working directory: /www
detected binary path: /usr/local/bin/uwsgi
setgid() to 1000
setuid() to 1000
chdir() to /www
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 3882
your memory page size is 4096 bytes
detected max file descriptor number: 100001
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address 127.0.0.1:9000 fd 3
Python version: 3.7.0 (default, Aug 11 2019, 19:03:29)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
Python main interpreter initialized at 0x1ef25f0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 333504 bytes (325 KB) for 8 cores
*** Operational MODE: preforking+threaded ***
added /www/ to pythonpath.
ModuleNotFoundError: No module named 'www'
unable to load app 0 (mountpoint='') (callable not found or import error)
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x1ef25f0 pid: 26222 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (pid: 26222, cores: 2)
spawned uWSGI worker 2 (pid: 26223, cores: 2)
spawned uWSGI worker 3 (pid: 26224, cores: 2)
spawned uWSGI worker 4 (pid: 26225, cores: 2)

启动报错已经解决了一个,但是其他的实在没办法
大神,怎么解决
之前没这个问题,出现之后不管怎么重新装系统都解决不了

以下是配置文件

[uwsgi]
uid = www
gid = www
socket = 127.0.0.1:9000

chdir = /www

module=www.wsgi

wsgi-file = /www/hello.py

callable = app

processes = 4

threads = 2

pythonpath = /www

十分感激,实在是找不到方法了,网络上的都找了

  • 写回答

2条回答 默认 最新

  • 战渣渣 2019-08-12 09:21
    关注
    added /www/ to pythonpath.
    ModuleNotFoundError: No module named 'www'
    

    这是报的错误信息,你的配置是

    module=www.wsgi
    

    你在www目录下,创建一个__init__.py的文件试试

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。