为了满足定制的需求,修改了nginx官方的deb源码包,重新发布出来。


编译参数

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
. /configure  \
                 --prefix= /etc/nginx  \
                 --sbin-path= /usr/sbin/nginx  \
                 --conf-path= /etc/nginx/nginx .conf \
                 --error-log-path= /var/log/nginx/error .log \
                 --http-log-path= /var/log/nginx/access .log \
                 --pid-path= /var/run/nginx .pid \
                 --lock-path= /var/run/nginx .lock \
                 --http-client-body-temp-path= /var/cache/nginx/client_temp  \
                 --http-proxy-temp-path= /var/cache/nginx/proxy_temp  \
                 --http-fastcgi-temp-path= /var/cache/nginx/fastcgi_temp  \
                 --user=nginx \
                 --group=nginx \
                 --without-http_memcached_module \
                 --without-http_scgi_module \
                 --without-http_uwsgi_module \
                 --with-http_ssl_module \
                 --with-http_realip_module \
                 --with-http_gunzip_module \
                  --with-http_gzip_static_module \
                 --with-http_random_index_module \
                 --with-http_secure_link_module \
                 --with-http_stub_status_module \
                 --with-http_auth_request_module \
                 --with- file -aio \
                 --with-google_perftools_module \
                 --with-ipv6


另外,配置文件参数也进行了适度优化。


简易安装编译教程

1
2
3
4
5
6
7
8
9
10
11
apt-get update
apt-get  install  dpkg-dev devscripts build-essential wget 
mkdir  build
cd  build
wget http: //nginx .org /packages/ubuntu/pool/nginx/n/nginx/nginx_1 .6.2.orig. tar .gz
wget http: //192 .168.0.1 /nginx_1 .6.2-1~precise.debian. tar .gz
tar  zxvf nginx_1.6.2.orig. tar .gz
tar  zxvf nginx_1.6.2-1~precise.debian. tar .gz -C nginx-1.6.2
cd  nginx-1.6.2
dpkg-buildpackage -us -uc
dpkg -i .. /nginx_1 .6.2-1~precise_amd64.deb


如果在 dpkg-buildpackage -us -uc 时提示依赖问题,请直接apt-get 解决。