我正在尝试运行uwsgi deamon。我在亚马逊Linux上使用EPEL。对于安装,我已经完成了
sudo yum install uwsgi uwsgi-plugin-python
这是我的uwsgi ini
[uwsgi]
plugins = python
socket = /tmp/project.sock
#socket = :9050
chmod-socket = 666
uid = nginx
gid = nginx
master = true
enable-threads = true
processes = 2
home = /srv/project-live
virtualenv = /srv/project-live
chdir = /srv/project-live
pythonpath = /srv/project-live
module = project.wsgi
pidfile = /srv/project-live/uwsgi/live.pid
daemonize = /srv/project-live/logs/uwsgi.log
touch-reload = /srv/project-live/uwsgi/touch.py
vacuum = true
做
sudo service uwsgi restart
服务启动但日志文件提供
*** Operational MODE: preforking ***
added /srv/project-live/ to pythonpath.
Traceback (most recent call last):
File "./project/__init__.py", line 1, in <module>
from __future__ import absolute_import
ImportError: No module named __future__
我哪里出错?
答案 0 :(得分:0)
它正在为uwsgi寻找python插件,但是没有安装。安装插件后,一切正常。