echo string
Nginx1.0.10 https://github.com/nginx/nginx/releases/tag/release-1.0.10 nginx1.0.10.png
OS : CentOS Linux release 7.2.1511 (Core)
Server_info.png Server_CPU_info.png
-
Download a Nginx10.10 and unpack it nginx1.0.10.png
-
Install the GCC and the lib Nginx need install_GCC.png Nginx_lib.png
-
./configure --prefix=/usr/local/nginx && make && make install configure_ok.png make && make install.png nginx_install_ok.png
-
Nginx run start_nginx.png nginx_install_ok.png
typedef struct { ngx_str_t ed; //该结构体定义在这里 https://github.com/nginx/nginx/blob/master/src/core/ngx_string.h } ngx_http_echo_loc_conf_t;
- Define the type of ngx_http_module_t structure variables 定义注入点结构体.png
- Initialize a configuration structure 初始化一个配置结构体.png
- Will the father block configuration information incorporated into this structure Implement the configuration of inheritance 合并父block的配置信息.png
ngx_addon_name=ngx_http_echo_module HTTP_MODULES="$HTTP_MODULES ngx_http_echo_module" NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/src/ngx_http_echo_module.c"
./configure --prefix=/usr/local/nginx/ --add-module=/root/ngx_dev && make && make install