centos服务器错误提示
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 2850)
...
*** Stats server enabled on 127.0.0.1:9191 fd: 15 ***
Traceback (most recent call last):
File "/home/LR/flask/hah.py", line 1, in
from flask import Flask
ImportError: No module named flask
uwsgiconfig.ini
[uwsgi]
socket = 127.0.0.1:8001
chdir = /home/LR/flask
venv= /home/LR/flask/venv
wsgi-file = hah.py
callable = app
processes = 4
threads = 2
stats = 127.0.0.1:9191
nginx.conf
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name ~~~~~~~~~;
#charset koi8-r;
access_log /home/LR/flask/logs/access.log;
error_log /home/LR/flask/logs/error.log;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:8001;
uwsgi_param UWSGI_PYHOME /home/LR/flask/venv;
uwsgi_param UWSGI_CHDIR /home/LR/flask;
uwsgi_param UWSGI_SCRIPT hah:app;
}
}
项目路径
/home
--/LR
----/flask
-------uwsgiconfig.ini
-------hah.py
-------/logs
---------access.log
---------error.log
-------/venv
---------...