Home  >  Article  >  Operation and Maintenance  >  How many lines of nginx source code

How many lines of nginx source code

(*-*)浩
(*-*)浩Original
2019-11-02 10:51:456508browse

How many lines of nginx source code

源码目录结构   (推荐学习:nginx教程

├── auto #自动检测系统环境以及编译相关的脚本
│ ├── cc #关于编译器相关的编译选项的检测脚本
│ ├── lib #nginx编译所需要的一些库的检测脚本
│ │ ├── geoip
│ │ ├── google-perftools
│ │ ├── libatomic
│ │ ├── libgd
│ │ ├── libxslt
│ │ ├── openssl
│ │ ├── pcre
│ │ ├── perl
│ │ └── zlib
│ ├── os #与平台相关的一些系统参数与系统调用相关的检测
│ └── types #与数据类型相关的一些辅助脚本
├── conf #存放默认配置文件,在make install后,会拷贝到安装目录中去
├── contrib #存放一些实用工具,如geo配置生成工具(geo2nginx.pl)
│ ├── unicode2nginx
│ └── vim
│ ├── ftdetect
│ ├── ftplugin
│ ├── indent
│ └── syntax
├── docs #一些文档
│ ├── dtd
│ ├── html #存放默认的网页文件,在make install后,会拷贝到安装目录中去
│ ├── man #nginx的man手册
│ ├── text
│ ├── xml
│ │ └── nginx
│ ├── xsls
│ └── xslt
├── misc
└── src #存放nginx的源代码
├── core #nginx的核心源代码,包括常用数据结构的定义,以及nginx初始化运行的核心代码如main函数
├── event#对系统事件处理机制的封装,以及定时器的实现相关代码
│ └── modules #不同事件处理方式的模块化,如select、poll、epoll、kqueue等
├── http #nginx作为http服务器相关的代码
│ ├── modules #包含http的各种功能模块
│ │ └── perl
│ └── v2
├── mail #nginx作为邮件代理服务器相关的代码
├── misc #一些辅助代码,测试c++头的兼容性,以及对google_perftools的支持
├── os #主要是对各种不同体系统结构所提供的系统函数的封装,对外提供统一的系统调用接口
│ ├── unix
│ └── win32
└── stream #stream 模块用于一般的 TCP 代理和负载均衡

源码直接的互相引用比较多,先看独立性比较强的代码

The above is the detailed content of How many lines of nginx source code. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn