–with-http_ssl_module \ –with-http_v2_module \ –with-http_stub_status_module \ –without-http_ssi_module \ –without-http_charset_module \ –without-http_access_module \ –without-http_auth_basic_module \ –without-http_autoindex_module \ –without-http_geo_module \ –without-http_split_clients_module \ –without-http_proxy_module \ –without-http_fastcgi_module \ –without-http_uwsgi_module \ –without-http_scgi_module \ –without-http_memcached_module \ –without-http_empty_gif_module \ –without-http_browser_module \ –without-http_upstream_hash_module \ –without-http_upstream_ip_hash_module \ –without-http_upstream_least_conn_module \ –without-http_upstream_keepalive_module \ –without-http_upstream_zone_module \ –http-client-body-temp-path=/opt/websuite/nginx/temp/client \ –without-mail_pop3_module \ –without-mail_imap_module \ –without-mail_smtp_module \ –with-google_perftools_module \ –with-pcre=/tmp/nginx/pcre-8.41 \ –with-pcre-jit \ –with-openssl=/tmp/nginx/openssl-1.0.2j \ –with-openssl-opt=”threads shared no-zlib no-comp no-ssl2 no-ssl3 no-ssl3-method” 经由过程以上的编译参数编译生成的Nginx可履行文件是很小的,启动时载入的动态链接库也起码,在并发较高时,单个worker占用的内存资本是很小的。
2、Nginx拜访日记优化
4、Nginx层面
拜访日记的优化主如果3个方面:
- 增长buffer
- 应用map过滤不须要的日记
- 制订合适的log_format
例如:

- map $uri $expanded_name {
-
- ~^(.*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$) 0;
推荐阅读
为什么云服务器上存储的数据更安全
Tech Neo技巧沙龙 | 11月25号,九州云/ZStack与您一路商量云时代收集界线治理实践
企业收集体系遭受恶意进击事>>>详细阅读
本文标题:应用场景深度解析:Nignx性能优化指南
地址:http://www.17bianji.com/lsqh/39182.html
1/2 1