Nginx相关技术资料梳理

柳仲卿
2023-12-01

Nginx

  http://nginx.org/en/
   http://tengine.taobao.org/nginx_docs/cn/
   nginx和openresty的使用 https://blog.csdn.net/sxl47/article/details/105210701


 Tengine 


   http://tengine.taobao.org/documentation_cn.html
   http://tengine.taobao.org/
   Nginx开发从入门到精通 http://tengine.taobao.org/book/


openresty


   http://openresty.org/cn/
   
   Lua语言编写的模块 https://github.com/openresty/lua-nginx-module/blob/master/README.markdown
   https://blog.openresty.com.cn/cn/tags/tutorial/
   在终端上用restydoc查看OpenResty文档: https://blog.openresty.com.cn/cn/restydoc/
   openresty-best-practices: https://www.kancloud.cn/caiwenhao/openresty-best-practices/751824
   openresty中文api https://www.kancloud.cn/qq13867685/openresty-api-cn
   nginx-lua-module https://gitee.com/oorun/nginx-lua-module-zh-wiki/tree/master
   nginx-lua-module-zh-wiki https://gitee.com/oorun/nginx-lua-module-zh-wiki/tree/master/doc
   OpenResty 最佳实践: https://moonbingbing.gitbooks.io/openresty-best-practices/content/index.html
   OpenResty开发系列 https://www.cnblogs.com/reblue520/category/1535368.html
   https://www.cnblogs.com/reblue520/category/987239.html

   See Also
       openresty https://github.com/openresty
       https://github.com/openresty/lua-nginx-module/#readme
   Note that at least ngx_lua 0.5.14 <https://github.com/chaoslawful/lua-
       nginx-module/tags> or OpenResty 1.2.1.14
       o   the ngx_lua module: https://github.com/openresty/lua-nginx-module/#readme
       o   the lua-resty-redis https://github.com/openresty/lua-resty-redis
       o   the redis wired protocol specification: http://redis.io/topics/protocol
       o   the lua-resty-memcached <https://github.com/openresty/lua-resty-memcached>
       o   the lua-resty-mysql <https://github.com/openresty/lua-resty-mysql>
       10 Nginx 扩展模块Lua实践  https://www.cnblogs.com/weicunqi/p/15667502.html
 

单元测试

   Openresty测试框架--Test::Nginx  https://blog.csdn.net/wuchunlai_2012/article/details/100059067
     Test::Nginx是一个由Perl编写的nginx测试组件,继承自Test::Base

性能分析

 valgrind C/C++ 内存泄漏分析工具  Valgrind Home

编译参数

 $:openresty -V

nginx version: openresty/1.21.4.1
built by clang 13.0.0 (clang-1300.0.29.30)
built with OpenSSL 1.1.1n  15 Mar 2022
TLS SNI support enabled
configure arguments: 
   --prefix=/usr/local/Cellar/openresty/1.21.4.1_1/nginx 
   --with-cc-opt='-O2 -I/usr/local/include -I/usr/local/opt/pcre/include -I/usr/local/opt/openresty-openssl111/include' 
   --add-module=../ngx_devel_kit-0.3.1 
   --add-module=../echo-nginx-module-0.62 
   --add-module=../xss-nginx-module-0.06 
   --add-module=../ngx_coolkit-0.2 
   --add-module=../set-misc-nginx-module-0.33 
   --add-module=../form-input-nginx-module-0.12 
   --add-module=../encrypted-session-nginx-module-0.09 
   --add-module=../srcache-nginx-module-0.32 
   --add-module=../ngx_lua-0.10.21 
   --add-module=../ngx_lua_upstream-0.07 
   --add-module=../headers-more-nginx-module-0.33 
   --add-module=../array-var-nginx-module-0.05 
   --add-module=../memc-nginx-module-0.19 
   --add-module=../redis2-nginx-module-0.15 
   --add-module=../redis-nginx-module-0.3.9 
   --add-module=../ngx_stream_lua-0.0.11 
   --with-ld-opt='-Wl,-rpath,/usr/local/Cellar/openresty/1.21.4.1_1/luajit/lib -L/usr/local/lib -L/usr/local/opt/pcre/lib -L/usr/local/opt/openresty-openssl111/lib' 
   --pid-path=/usr/local/var/run/openresty.pid 
   --lock-path=/usr/local/var/run/openresty.lock 
   --conf-path=/usr/local/etc/openresty/nginx.conf 
   --http-log-path=/usr/local/var/log/nginx/access.log 
   --error-log-path=/usr/local/var/log/nginx/error.log 
   --with-pcre-jit 
   --with-ipv6 
   --with-stream 
   --with-stream_ssl_module 
   --with-stream_ssl_preread_module 
   --with-http_v2_module 
   --without-mail_pop3_module 
   --without-mail_imap_module 
   --without-mail_smtp_module 
   --with-http_stub_status_module 
   --with-http_realip_module 
   --with-http_addition_module 
   --with-http_auth_request_module 
   --with-http_secure_link_module 
   --with-http_random_index_module 
   --with-http_geoip_module 
   --with-http_gzip_static_module 
   --with-http_sub_module 
   --with-http_dav_module 
   --with-http_flv_module 
   --with-http_mp4_module 
   --with-http_gunzip_module 
   --with-threads 
   --with-stream 
   --with-http_ssl_module


 

 类似资料: