Chinaunix首页 | 论坛 | 博客
  • 博客访问: 287640
  • 博文数量: 57
  • 博客积分: 965
  • 博客等级: 准尉
  • 技术积分: 736
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-24 10:22
文章分类

全部博文(57)

文章存档

2014年(2)

2013年(22)

2012年(25)

2011年(8)

分类: LINUX

2013-05-30 21:03:20

一、准备工作

        先更新系统,并安装编译环境等等。

二、编译安装uwsgi

         uwsgi的官方网站是

,这里我们下载它的当前稳定版本。

  wget  
  tar -avxf uwsgi-1.9.11.tar.gz
  tar -zvxf uwsgi-1.9.11.tar.gz
  cd uwsgi-1.9.11
  python setup.py build
  make
  cp uwsgi /usr/bin/

三、编译安装nginx

wget
wget
wget
wget
wget
 

 

patch nginx_upload_module-2.0.12/ngx_http_upload_module.c ngx_http_upload_module.c.patch


tar zxvf nginx-1.0.15.tar.gz
cd nginx-1.0.15

./configure --prefix=/usr/local/nginx-1.0.15 --with-http_stub_status_module --with-http_gzip_static_module --with-http_ssl_module --with-http_realip_module --with-openssl=../openssl-1.0.1c --with-pcre=../pcre-8.10 --add-module=../nginx_upload_module-2.0.12 --add-module=../ngx_cache_purge-1.3 --with-http_secure_link_module

make && make install

ln -s /usr/local/nginx-1.0.15/sbin/nginx  /usr/bin/nginx
ln -s /usr/local/nginx-1.0.15/sbin/nginx  /usr/sbin/nginx
ln -s /usr/local/nginx-1.0.15/sbin/nginx  /usr/local/sbin/nginx
cd ..
cp nginx /etc/init.d/
chmod +x /etc/init.d/nginx

 

阅读(1377) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~