Out Of Bounds

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Nginx

摘要:uWSGI的主要特点如下,其中一些功能让我感动得泪流满面超快的性能低内存占用(实测为apache2的mod_wsgi的一半左右)多app管理(终于不用冥思苦想下个app用哪个端口比较好了-.-)详尽的日志功能(可以用来分析app性能和瓶颈)高度可定制(内存大小限制,服务一定次数后重启等)总而言之uwgi是个部署用的好东东,正如uWSGI作者所吹嘘的:If you are searching for a simple wsgi-only server, uWSGI is not for you, but if you are building a real (production-ready) 阅读全文
posted @ 2012-06-02 11:30 dexterman 阅读(265) 评论(0) 推荐(0)

摘要:系统环境及版本:OS:centos6python:python2.7nginx:0.8mysql:5.5.3uwsgi:1.0Django:1.3MySQL-python:1.2.3注:Nginx 0.8版本已经内置uwsgi模块,所以不需要重新编译Nginx添加uwsgi模块。本安装过程全部基于源码编译安装,并假设已经安装Nginx、Mysql,如未安装请参考:Nginx与PHP,php-fpm,mysql安装整合CentOS 5环境下Nginx+MySQL+PHP Web服务器环境搭建教程如果不想这么麻烦可以先使用系统自带Python2.6版本,nginx和mysql可通过yum命令安装, 阅读全文
posted @ 2012-06-02 11:28 dexterman 阅读(558) 评论(0) 推荐(0)

摘要:VariablesThe core module supports built-in variables, whose names correspond with the names of variables in Apache.First of all, there are the variables, which represent the lines of the title of the client request, for example, $http_user_agent, $http_cookie, and so forth.Furthermore, there are oth 阅读全文
posted @ 2012-05-30 16:22 dexterman 阅读(253) 评论(0) 推荐(0)

摘要:Nginx官网:http://nginx.org/参考:http://wiki.nginx.org/GettingStarted一、安装依赖包gzip module requireszliblibraryrewrite module requirespcrelibraryssl support requires openssl library 安装pcre库: #./configure #make #sudo make install二、安装Nginx 下载地址:http://nginx.org/en/download.html选择版本 Stable version nginx-1.... 阅读全文
posted @ 2012-05-30 16:20 dexterman 阅读(291) 评论(0) 推荐(0)

摘要:#用户 用户组user www www;#工作进程,根据硬件调整,有人说几核cpu,就配几个,我觉得可以多一点worker_processes 5;#错误日志error_log logs/error.log;#pid文件位置pid logs/nginx.pid;worker_rlimit_nofile 8192;events {#工作进程的最大连接数量,根据硬件调整,和前面工作进程配合起来用,尽量大,但是别把cpu跑到100%就行worker_connections 4096;}http {include conf/mime.types;#反向代理配置,可以打开proxy.conf看看incl 阅读全文
posted @ 2012-05-30 16:19 dexterman 阅读(180) 评论(0) 推荐(0)