主要转自“轩脉刃de刀光剑影”的博客之“nginx源码学习资源”
http://www.cnblogs.com/yjf512/archive/2012/06/13/2548515.html
(1)注释版的nginx源码链接:
https://github.com/jianfengye/nginx-1.0.14_comment
(2)nginx的main函数在哪?
src/core/nginx.c
(3)nginx启动的时候都做了哪些事情呢?参考下面两篇文章:
http://www.pagefault.info/?p=188
http://www.pagefault.info/?p=201&cpage=1
(4)nginx启动的命令是nginx,重启的命令是nginx -s reload, nginx有master和worker进程,他们之间是怎么通信的呢?可以参考下面的文章:
http://simohayha.iteye.com/blog/467940
(5)nginx进行调试
你是Linux程序员? 使用gdb调试吧。
nginx如何调试 http://doyoueat.iteye.com/blog/1291164
gdb调试nginx:
http://www.cnblogs.com/yjf512/archive/2012/05/10/2494635.html
(6)如何编写nginx的第三方模块?miller的文章很好,codinglabs的文章也不错,推荐
http://www.codinglabs.org/html/intro-of-nginx-module-development.html
http://www.evanmiller.org/nginx-modules-guide.html
(7)nginx的基本类型有非常多,推荐几个人的博客:
http://blog.youkuaiyun.com/livelylittlefish/article/details/7262750
http://blog.youkuaiyun.com/dingyujie/article/details/7162919
(8)nginx开发从入门到精通 http://tengine.taobao.org/book/
注:淘宝一批大牛做的,很多东西讲的非常详细。也很系统,强烈推荐
nginx模块开发入门 http://www.162cm.com/p/ngx_ext.html
注:入门教程
教程书:
《深入理解Nginx – 模块开发与架构解析》 陶辉
注:非常系统的讲了nginx的模块开发与架构
《深入剖析Nginx》 高群凯