个人工具
登录
查看“Nginx”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“Nginx”的源代码
来自Ubuntu中文
←
Nginx
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
== uwsgi配置 == #cd /home/helios/mysite #vim wsgi.py 写上 import os import sys from django.core.handlers.wsgi import WSGIHandler sys.path.append("/home/helios/mysite") os.environ["DJANGO_SETTINGS_MODULE"] = "mysite.settings" application = WSGIHandler() 完了以后 #vim wsgi.xml 写上 <uwsgi> <socket>127.0.0.1:9000</socket> <listen>80</listen> <master>true</master> <pidfile>/var/run/nginx.pid</pidfile> <processes>8</processes> <pythonpath>/home/helios/mysite</pythonpath> <pythonpath>/home/helios/</pythonpath> <module>wsgi</module> <profiler>true</profiler> <memory-report>true</memory-report> <enable-threads>true</enable-threads> <logdate>true</logdate> #这个是程序占用大小,不能太小,太大暂时还不知道 #在测试过程中,我的电脑300以下目测不行。 #也可以删除这段,因为在测试过程中,如果这段设置太小 #会出现问题libgcc_s.so.1 must be installed for pthread_cancel to work #只有在 ubuntu 12.04测试过,其他系统还不清楚 #为了不容易出错可以删掉,但是这个提示给有需要的朋友 <limit-as>300</limit-as> #自己建立文件夹 然后创建空文件django.log这个灵活的 <daemonize>/home/helios/mysite/log/django.log</daemonize> </uwsgi> ----
返回至
Nginx
。