搭建 Nginx+FastCGI+Webpy 平台开发Python Web应用
web.py is a web framework for Python that is as simple as it is powerful. web.py is in the public domain; you can use it for whatever purpose with absolutely no restrictions.
webpy相比于django很轻量很容易上手。
需要用到easy_install,flup。假设已经装好了NGINX。
安装web.py:
配置NGINX(如果需要访问静态文件别忘了自己再单独配一下):
webpy相比于django很轻量很容易上手。
需要用到easy_install,flup。假设已经装好了NGINX。
安装web.py:
easy_install web.py
配置NGINX(如果需要访问静态文件别忘了自己再单独配一下):
server { listen 80; server_name webpy.com; root /home/admin/python/webpy; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/local/www/nginx-dist; } location ~* / { fastcgi_pass 127.0.0.1:9002; fastcgi_pass_header Authorization; fastcgi_intercept_errors off; fastcgi_param PATH_INFO $fastcgi_script_name; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param QUERY_STRING $query_string; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SERVER_PORT $server_port;
相关推荐
YENCSDN 2020-11-17
lsjweiyi 2020-11-17
houmenghu 2020-11-17
Erick 2020-11-17
HeyShHeyou 2020-11-17
以梦为马不负韶华 2020-10-20
lhtzbj 2020-11-17
夜斗不是神 2020-11-17
pythonjw 2020-11-17
dingwun 2020-11-16
lhxxhl 2020-11-16
坚持是一种品质 2020-11-16
染血白衣 2020-11-16
huavhuahua 2020-11-20
meylovezn 2020-11-20
逍遥友 2020-11-20
weiiron 2020-11-16