继续打包nginx 精简版,致力于web和反向代理功能持续的深层性能优化。
跟之前的打包相比,主要改进有
1、去掉服务器不常用的auth-basic 和autoindex 模块
2、编译器优化,加入-m64 仅支持64位系统 (LInux服务器64位已经普及,兼容32位没必要)
3、配置文件优化,进程数由CPU数决定
编译参数
./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_auth_basic_module --without-http_autoindex_module --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-google_perftools_module --with-cc-opt="%{optflags} $(pcre-config --cflags) -m64 -mtune=generic" $* make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -m64 -mtune=generic"
为附件上传时直接加了zip后缀,下载后请直接重命名为 nginx-1.4.7-1.el6.lite.src.rpm
本文出自 “Purple_Grape的博客” 博客,请务必保留此出处http://purplegrape.blog.51cto.com/1330104/1386576
【编译打包】nginx-1.4.7-1.el6.lite.src.rpm,布布扣,bubuko.com
【编译打包】nginx-1.4.7-1.el6.lite.src.rpm
原文:http://purplegrape.blog.51cto.com/1330104/1386576