Giter VIP home page Giter VIP logo

tian617 / nginx-1.16.0 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vaynedu/nginx-1.16.0

0.0 1.0 0.0 1.99 MB

学习nginx架构设计与实现,翻译nginx的源码,写nginx的测试代码, 在issue中记录nginx的精妙设计及其常见问题https://github.com/vaynedu/nginx-1.16.0/issues 。 myexercise内存池、哈希表、链表、md5、crc测试代码,mymodule中有hello自定义模块代码。通过nginx将自己整个知识体系连接起来

Home Page: https://github.com/vaynedu/nginx-1.16.0/issues

License: BSD 2-Clause "Simplified" License

Perl 0.13% Vim Script 2.48% HTML 0.02% C 95.56% C++ 1.16% XS 0.40% Makefile 0.10% Lua 0.07% Shell 0.08%

nginx-1.16.0's Introduction

nginx-1.16.0

nginx-1.16.0源码分析及其注释--记录心路历程,有问题随时沟通交流,一起学习

调试练习ngx_pool.c的代码

调试练习ngx_hash.c的代码

调试练习ngx_list.c的代码

调试练习ngx_md5.c的代码, ngx_sha1.c亦是如此

调试练习ngx_crc.c的代码

1.ngx_http_myhello_module

自己编写的一些hello模块,用来熟悉和掌握nginx

./configure --prefix=/usr/local/nginx --with-cc-opt="-O0" --add-module=./third-module/tmp/echo-nginx-module-0.61 --with-debug --add-module=./mymodule/ngx_http_myhello_module/ && make -j8 && make install

三.已翻译代码

1.HTTP模块

a) HTTP的11个阶段入口 src/http/ngx_http_core_module.c -- 特别重要

b) 待添加

2.配置相关

a) 模块上下文结构体 --- 待完成

b) 模块结构体 --待完成

c) ngx_command_t 配置指令结构体 -- 待完成

3.数据结构

a) ngx_pool_t 内存池--src/core/ngx_palloc.c、src/os/unix/ngx_alloc.c

b) ngx_hash_elt_t nginx哈希表 -- src/core/ngx_hash.c

c) ngx_array_t 动态数组 -- src/core/ngx_array.c

d) ngx_list_t 链表 -- src/core/ngx_list.c

e) ngx_md5_t && ngx_sha1_t 生成md5, 增加封装 -- src/core/ngx_md5.c src/core/ngx_sha1.c

f) ngx_crc32 crc使用 -- src/core/ngx_crc32.c

1.echo-nginx-module

nginx.conf中通过echo等指令直接输出包体, 类似于nginx的命令,方便调试配置

./configure --prefix=/data4/nginx/nginx --add-module=./third-module/echo-nginx-module-0.61 && make -j8 && make install

1. nginx

a) 《深入理解nginx》--陶辉

b) 《深入剖析nginx》

2. http

a) 《图解HTTP》

b) 《图解TCP/IP》

3.git

a) git color着色初始化脚本

4.gcc

《如何处理linux库的同名函数》

1. ab 压测工具

yum install httpd-tools

直接上手ab -n 1000 -c 5 http://1.1.1.1/1.mp4

2. stress

待添加

记录一些常用的初始化脚本

待补充

八.联系方式

3.QQ二维码

3.QQ二维码

nginx-1.16.0's People

Contributors

vaynedu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.