之前安装uwsgi的时候编译一步有出错,因为比较早,部分错误代码已经找不到了,网上找了部分错误信息, 现把解决方式共享出来。环境:CentOS release 6.4 Python 2.7.3报类似下面的错误代码,多半因为setuptools没有安装,安装setuptools就好了bash-3.2....
分类:
编程语言 时间:
2015-04-15 10:55:00
阅读次数:
436
一.下面先交代一下测试云主机cpu:root@alexknight:/tmp/webbench-1.5# cat /proc/cpuinfo |grep modelmodel : 69model name : Intel(R) Core(TM) i5-4260U CPU @ 1....
分类:
其他好文 时间:
2015-04-11 01:14:08
阅读次数:
249
安装nginx 配置 nginx配置文件 usr/local/nginx/conf/nginx.conf location / { root html; index index.html index.htm; uwsgi_pass 45.64.1...
分类:
其他好文 时间:
2015-03-30 16:15:30
阅读次数:
133
前言 新公司的第一个项目,服务器端打算用python作为restful api。所以需要在Centos上搭建nginx+fastcgi+python的开发环境,但后面网上很多言论都说uwsgi比fastcgi在很多方面存在优势,推荐用uwsgi而不是fastcgi,详见:http://sunxiu....
分类:
编程语言 时间:
2015-03-17 21:38:31
阅读次数:
146
安装教程多了就不多写了,写一下如何嵌入应用,这里我使用django+uwsgi+nginx的架构,其实和架构没什么关系啦第一步:链接gateone.js(默认在/opt/gateone/static/)到web应用的主页第二步:嵌入网页<div style="width: 60em; heigh...
分类:
Web程序 时间:
2015-03-09 19:12:05
阅读次数:
3272
nginx工作原理:nginx用于处理静态文件,动态部分经由fastcgi 、scgi或uwsgi交给django处理!1、在站点目录下执行:manage.py runfcgi host=127.0.0.1 port=8051 protocol=fcgi method=threaded2、在D:\n...
http://perlmaven.com/deploying-pyton-with-uwsgi-on-ubuntu-13-10The following is a tutorial on how to set up uWSGI with an Nginx front end to server si...
分类:
编程语言 时间:
2015-03-06 16:11:58
阅读次数:
344
1、nginx: nginx 是一个 http 服务器,与 apache、lighttpd、Microsoft IIS 等属于同类产品.2、uWSGI: uWSGI 是一个快速的、纯C语言开发的、自维护的、对开发者友好的 WSGI 服务器,旨在提供专业的 Python web应用发布和开发. ...
分类:
编程语言 时间:
2015-02-27 11:50:25
阅读次数:
220
Install uwsgi and nginx.If you want uwsgi support python,you must install "uwsgi-plugin-python"
sudo apt-get update
sudo apt-get install uwsgi uwsgi-plugin-python nginx
First,We create a simple pyt...
分类:
Web程序 时间:
2015-01-28 22:39:17
阅读次数:
199
原文链接:http://localhost:8090/search/142294.html环境:centos x64 6.6nginx 1.6.2python 2.7.9uwsgi 2.0.9virtualenv 12.0.5flask 0.10.1正文:1、安装nginx相关网站1.1 配置yum...
分类:
其他好文 时间:
2015-01-24 18:41:42
阅读次数:
276