首页 > 为什么uwsgi会修改python home呢?

为什么uwsgi会修改python home呢?

RT. 使用nginx+django+uwsgi搭建一个小网站, 不知道为啥uwsgi会调整python home:

[uWSGI] parsing config file forum/uwsgi.xml * Starting uWSGI 2.0.1 (64bit) on [Tue Feb 11 10:42:47 2014] * compiled with version: 4.7.3 on 11 February 2014 09:35:41 os: Linux-2.6.35-32-server #64 SMP Fri Jan 13 06:36:08 CST 2012 nodename: AY120826095xxxx machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 1 current working directory: /home/foo/git/project detected binary path: /home/foo/git/software/uwsgi-2.0.1/uwsgi * WARNING: you are running uWSGI without its master process manager * 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 --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8630 fd 3 Python version: 2.7.4 (default, Sep 26 2013, 03:23:21) [GCC 4.7.3] Set PythonHome to /home/foo/software/uwsgi-2.0.1 ImportError: No module named site

在开发机部署的时候出现这问题,本地uwsgi没啥问题.


你的uwsgi的配置不对吧。。


这个大部分原因是,你在写那个uwsgi的入口文件的时候,加入或者修改了不当的 路径值。

【热门文章】
【热门文章】