Debian+nginx+uWSGI+Django配置

来源:互联网 发布:广联达预算软件培训 编辑:程序博客网 时间:2024/05/21 21:40

在真机和VMWARE里面都配置了一遍,贴下配置过程:

 

系统Debian 5.0.6,只安装base system.

网络源用的是网易的Debian-backports镜像:

deb http://mirrors.163.com/debian-backports/ lenny-backports main contrib non-free

deb http://mirrors.163.com/debian lenny main non-free contrib
deb http://mirrors.163.com/debian lenny-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security lenny/updates main contrib non-free

deb-src http://mirrors.163.com/debian lenny main non-free contrib
deb-src http://mirrors.163.com/debian lenny-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian-security lenny/updates main contrib non-free

deb http://http.us.debian.org/debian lenny main contrib non-free
deb http://non-us.debian.org/debian-non-US lenny/non-US main contrib non-free
deb http://security.debian.org lenny/updates main contrib non-free

配置文件在这里:http://mirrors.163.com/.help/sources.list.lenny-backports

 

 

nginx:

软件库带的是nginx (0.6.32-3+lenny3),比较老,于是从官方http://www.nginx.org/下载了nginx-0.8.53。

wget http://www.nginx.org/download/nginx-0.8.53.tar.gz

 

编译nginx之前,先把系统编译环境装上。

apt-get install make g++

 

编译nginx时,如果用到url_rewrite功能,则需要装pcre库,如果要用到https,还需要装openssl,对应Debian的包分别是libpcre3-dev和libssl-dev,忘了也没关系,configure的时候会报,缺哪个补哪个。

configure参数

 

 

原创粉丝点击