/****************************************************/
1. 目录结构
    在文件夹下执行“tree”命令,没有该命令则安装:sudo apt install tree
     .
     ├── app    //用来存放主应用程序的.c文件及核心文件
     │   ├── dep  //存放依赖文件,每个.c文件都对应一个.dep文件,由makefile创建。修改了.h文件将会重新编译关联的.c文件
     │   │   ├── nginx.d
     │   │   ├── ngx_c_conf.d
     │   │   ├── ngx_c_crc32.d
     │   │   ├── ngx_c_memory.d
     │   │   ├── ngx_c_slogic.d
     │   │   ├── ngx_c_socket_accept.d
     │   │   ├── ngx_c_socket_conn.d
     │   │   ├── ngx_c_socket.d
     │   │   ├── ngx_c_socket_inet.d
     │   │   ├── ngx_c_socket_request.d
     │   │   ├── ngx_c_socket_time.d
     │   │   ├── ngx_c_threadpool.d
     │   │   ├── ngx_daemon.d
     │   │   ├── ngx_event.d
     │   │   ├── ngx_log.d
     │   │   ├── ngx_printf.d
     │   │   ├── ngx_process_cycle.d
     │   │   ├── ngx_setproctitle.d
     │   │   ├── ngx_signal.d
     │   │   └── ngx_string.d
     │   ├── link_obj   //临时文件,该目录由makefile创建
     │   │   ├── nginx.o
     │   │   ├── ngx_c_conf.o
     │   │   ├── ngx_c_crc32.o
     │   │   ├── ngx_c_memory.o
     │   │   ├── ngx_c_slogic.o
     │   │   ├── ngx_c_socket_accept.o
     │   │   ├── ngx_c_socket_conn.o
     │   │   ├── ngx_c_socket_inet.o
     │   │   ├── ngx_c_socket.o
     │   │   ├── ngx_c_socket_request.o
     │   │   ├── ngx_c_socket_time.o
     │   │   ├── ngx_c_threadpool.o
     │   │   ├── ngx_daemon.o
     │   │   ├── ngx_event.o
     │   │   ├── ngx_log.o
     │   │   ├── ngx_printf.o
     │   │   ├── ngx_process_cycle.o
     │   │   ├── ngx_setproctitle.o
     │   │   ├── ngx_signal.o
     │   │   └── ngx_string.o
     │   ├── makefile
     │   ├── nginx.cxx    //主文件,mian函数在此    
     │   ├── ngx_c_conf.cxx   
     │   ├── ngx_log.cxx
     │   ├── ngx_printf.cxx
     │   ├── ngx_setproctitle.cxx
     │   └── ngx_string.cxx
     ├── common.mk   //
     ├── config.mk   //
     ├── error.log
     ├── _include    //头文件
     │   ├── ngx_c_conf.h
     │   ├── ngx_c_crc32.h
     │   ├── ngx_c_lockmutex.h
     │   ├── ngx_c_memory.h
     │   ├── ngx_comm.h
     │   ├── ngx_c_slogic.h
     │   ├── ngx_c_socket.h
     │   ├── ngx_c_threadpool.h
     │   ├── ngx_func.h
     │   ├── ngx_global.h
     │   ├── ngx_logiccomm.h
     │   └── ngx_macro.h
     ├── logic
     │   ├── makefile
     │   └── ngx_c_slogic.cxx
     ├── logs
     ├── makefile  //起总体控制作用
     ├── misc    //存放各种不好分类的
     │   ├── makefile
     │   ├── ngx_c_crc32.cxx   
     │   ├── ngx_c_memory.cxx   
     │   └── ngx_c_threadpool.cxx 
     ├── net        //网络处理相关
     │   ├── makefile
     │   ├── ngx_c_socket_accept.cxx 
     │   ├── ngx_c_socket_conn.cxx  
     │   ├── ngx_c_socket.cxx     
     │   ├── ngx_c_socket_inet.cxx   
     │   ├── ngx_c_socket_request.cxx
     │   └── ngx_c_socket_time.cxx  
     ├── nginx      //生成的可执行程序
     ├── nginx.conf //配置文件
     ├── proc       //存放和进程处理相关的
     │   ├── makefile
     │   ├── ngx_daemon.cxx
     │   ├── ngx_event.cxx
     │   └── ngx_process_cycle.cxx
     └── signal     //存放和信号处理相关的
         ├── makefile
         └── ngx_signal.cxx
     
/****************************************************/

 

原文地址:http://www.cnblogs.com/dkhlaojogo/p/16886637.html

1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长! 2. 分享目的仅供大家学习和交流,请务用于商业用途! 3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入! 4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解! 5. 如有链接无法下载、失效或广告,请联系管理员处理! 6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需! 7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员! 8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载 声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性