
1 linnchord 2011-09-19 14:24:24 +08:00 细节不清楚……有任何问题可查看uwsgi的log,应该有错误记录。 |
2 bhuztez 2011-09-19 14:25:59 +08:00 uwsgi就是 import 不了的 |
3 linnchord 2011-09-19 14:32:13 +08:00 我还真没有试过import uwsgi,那是C写的吧?wsgi只是一个规范,uwsgi是实现这个规范的一个服务器,他运行以后会按照规范对你提供的程序进行调用,应该只有当运行在wsgi服务下时才能import,直接在shell或其他进程下是无法import的。 |
4 mywaiting 2011-09-19 14:36:37 +08:00 楼猪看看这个吧 http://obmem.info/?p=703 传送门 |
5 est 2011-09-19 14:45:46 +08:00 uwsgi不是用来import的 |
6 ri0day OP thanks all ,现在以及好了。其实不是什么配置问题。我nginx每次改完配置文件都是reload的,这次我stop 然后start ,成功了。 代码如下: start_response('200 OK', [('Content-Type','text/html')]) yield '<h1>FastCGI Environment</h1>' yield '<table>' for k, v in sorted(env.items()): yield '<tr><th>%s</th><td>%s</td></tr>' %(k,v) yield '</table>' yield '<h1>bye</h1>' |