Nginx+uwsgi+web.py
2014-02-27 21:38
337 查看
import web urls = ( '/', 'index' ) app = web.application(urls, globals()) class index: def GET(self): return "Hello, world!" application = app.wsgifunc()
application = app.wsgifunc()
application = app.wsgifunc()
save as hello.py
配置/etc/nginx/nginx.conf
user nginx nginx; worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; client_max_body_size 20m; server { listen 80; server_name localhost location / { include uwsgi_params; uwsgi_pass 127.0.0.1:3031; } # location /static/ { alias PROJECT_ROOT/static/; } } }
uwsgi setting:
uwsgi -s 127.0.0.1:3031 --processes 2 --enable-threads —-pythonpath /var/www/ --wsgi-file /var/www/hello.py
uwsgi.ini#sthash.hHJNQo0q.dpuf
uwsgi.ini#sthash.hHJNQo0q.dpuf
/etc/nginx/
相关文章推荐
- Nginx + uWSGI + web.py 搭建示例
- mac下安装nginx+uwsgi+webpy出错解决
- Cenots下nginx+uwsgi+web.py环境部署总结
- nginx+uwsgi+web.py的部署
- (转)Nginx + uwsgi + web.py + MySQLdb
- uwsgi+web.py+nginx on Ubuntu14.04 LTS
- uwsgi+nginx+web.py备忘
- nginx + uwsgi+web.py
- 部署ubuntu + Nginx + uWSGI + web.py
- linux下搭建nginx+uwsgi+web.py的python web服务器
- centos7简单搭建nginx+uwsgi+web.py的Python web环境(记录)
- nginx连接uwsgi使用web.py框架构造pythonweb项目
- Nginx + uWSGI + web.py 搭建示例
- nginx+uwsgi部署python web(web.py)
- webpy+nginx+uwsgi安装配置
- web.py运行于nginx的uwsgi上
- python3.x +django + nginx + uwsgi 搭建web服务
- 使用uWSGI Web服务器和Nginx部署Python WSGI应用
- django+nginx+uwsgi+supervisor+daphne+docker deploying websocket