V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ffx0s  ›  全部回复第 2 页 / 共 2 页
回复总数  24
1  2  
2015-02-20 15:38:21 +08:00
回复了 ffx0s 创建的主题 Python django+uwsgi+nginx 出现问题
主机是阿里云的。奇怪的是把磁盘快照回滚到环境部署好的。还是会出现这个问题。
2015-02-20 15:32:37 +08:00
回复了 ffx0s 创建的主题 Python django+uwsgi+nginx 出现问题
@dingyaguang117
<uwsgi>
<socket>127.0.0.1:8000</socket>
<listen>80</listen>
<master>true</master>
<pidfile>/var/run/nginx.pid</pidfile>
<processes>8</processes>
<pythonpath>/mydata/www</pythonpath>
<module>wsgi</module>
<profiler>true</profiler>
<memory-report>true</memory-report>
<enable-threads>true</enable-threads>
<logdate>true</logdate>
<limit-as>300</limit-as>
<daemonize>/mydata/www/log/django.log</daemonize>
</uwsgi>
2015-02-20 15:29:56 +08:00
回复了 ffx0s 创建的主题 Python django+uwsgi+nginx 出现问题
server {

listen 80;
server_name 121.40.90.156;
access_log /mydata/www/log/access.log;
error_log /mydata/www/log/error.log;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
root /mydata/www;
include uwsgi_params;
# uwsgi_pass 127.0.0.1:9090;
uwsgi_pass 127.0.0.1:8000;
# uwsgi_param UWSGI_PYHOME /mydata/www/;
# uwsgi_param UWSGI_SCRIPT /mydata/www/;
# uwsgi_param UWSGI_CHDIR /mydata/www/;
}

#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

location /static/ {
alias /mydata/www/kisspy/static/;
index index.html index.htm;
}

location /media/ {
alias /mydata/www/kisspy/static/media/;
}
}
2015-02-20 15:28:36 +08:00
回复了 ffx0s 创建的主题 Python django+uwsgi+nginx 出现问题
@surefire 开了。
tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   861 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 21:20 · PVG 05:20 · LAX 14:20 · JFK 17:20
Developed with CodeLauncher
♥ Do have faith in what you're doing.