【编译打包】nginx 1.4.4 SRPM (最小化打包)

仿照debian的nginx-light 打包了一个nginx 的SRPM 包,分享给大家。


为了精简,去掉了很多默认模块,仅保留了核心的web,proxy,fastcgi,limit_conn等模块。


编译参数如下,仅供参考


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
. /configure  \
         --prefix=%{_sysconfdir} /nginx  \
         --sbin-path=%{_sbindir} /nginx  \
         --conf-path=%{_sysconfdir} /nginx/nginx .conf \
         --error-log-path=%{_localstatedir} /log/nginx/error .log \
         --http-log-path=%{_localstatedir} /log/nginx/access .log \
         --pid-path=%{_localstatedir} /run/nginx .pid \
         --lock-path=%{_localstatedir} /run/nginx .lock \
         --http-client-body-temp-path=%{_localstatedir} /cache/nginx/client_temp  \
         --http-proxy-temp-path=%{_localstatedir} /cache/nginx/proxy_temp  \
         --http-fastcgi-temp-path=%{_localstatedir} /cache/nginx/fastcgi_temp  \
         --user=%{nginx_user} \
         --group=%{nginx_group} \
         --without-http_browser_module \
         --without-http_geo_module \
         --without-http_memcached_module \
         --without-http_scgi_module \
         --without-http_uwsgi_module \
         --with-http_realip_module \
         --with-http_gzip_static_module \
         --with-http_stub_status_module \
         --with-cc-opt= "%{optflags} $(pcre-config --cflags)"  \


下载附件后,请直接将名字改为 nginx-1.4.4-2.el6.lite.src.rpm


(when download finished,plz directly rename the file to “nginx-1.4.4-2.el6.lite.src.rpm”)










本文转自 紫色葡萄 51CTO博客,原文链接:http://blog.51cto.com/purplegrape/1339012,如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值