Skip to content

Commit 0b475ec

Browse files
committed
修正文档
1 parent 9efae2d commit 0b475ec

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
[简体中文](http://git.oschina.net/wujunze/nginx_module_echo/blob/master/README_zh.md)
2-
# nginx_module_echo
1+
# Practical development Nginx
2+
**[简体中文](http://git.oschina.net/wujunze/nginx_module_echo/blob/master/README_zh.md)**
3+
## nginx_module_echo
34
echo string
45

5-
# Nginx Version
6+
## Nginx Version
67
Nginx1.0.10 https://github.com/nginx/nginx/releases/tag/release-1.0.10
78
![image](https://wx1.sinaimg.cn/large/005LOzcmly1fgimmvpk3sj30mi04p3z9.jpg)
89

9-
# The development environment configuration
10+
## The development environment configuration
1011
```shell
1112
OS : CentOS Linux release 7.2.1511 (Core)
1213
```
1314
![image](https://wx4.sinaimg.cn/large/005LOzcmly1fgimnlvhh0j30s106imxw.jpg)
1415
![image](https://wx4.sinaimg.cn/large/005LOzcmly1fgimnlwy1fj315u0dwdhn.jpg)
1516

16-
# Install a clean compile Nginx
17+
## Install a clean compile Nginx
1718
1. Download a Nginx10.10 and unpack it
1819
![image](http://wx2.sinaimg.cn/large/005LOzcmly1fgimq77ahwj30pw05et9n.jpg)
1920

@@ -29,7 +30,7 @@ OS : CentOS Linux release 7.2.1511 (Core)
2930
![image](https://wx3.sinaimg.cn/large/005LOzcmly1fgimy3dkk5j30rr05ddh5.jpg)
3031
![image](https://ws1.sinaimg.cn/large/005LOzcmly1fgimyc58d3j31vk0qsq9y.jpg)
3132

32-
# Definition module configuration structure
33+
## Definition module configuration structure
3334
```C
3435
typedef struct {
3536
ngx_str_t ed; //该结构体定义在这里 https://github.com/nginx/nginx/blob/master/src/core/ngx_string.h
@@ -40,13 +41,13 @@ typedef struct {
4041
#Define Nginx instruction and parameter conversion function
4142
![image](https://wx1.sinaimg.cn/large/005LOzcmly1fgjdis37udj30xj0bktan.jpg)
4243

43-
# definition module Context
44+
## definition module Context
4445
1. Define the type of ngx_http_module_t structure variables
4546
![image](https://wx3.sinaimg.cn/large/005LOzcmly1fgjer4wtrxj313u09igo7.jpg)
4647
2. Initialize a configuration structure
4748
![image](https://wx1.sinaimg.cn/large/005LOzcmly1fgjerqnq71j30zd08fmyd.jpg)
4849
3. Will the father block configuration information incorporated into this structure Implement the configuration of inheritance
4950
![image](https://wx3.sinaimg.cn/large/005LOzcmly1fgjes12fy5j30ya08qgn7.jpg)
5051

51-
#
52+
## Write the Handler really work part of the module
5253
![image](https://ws2.sinaimg.cn/large/005LOzcmly1fgjfosnvf5j31hy0q6wlb.jpg)

README_zh.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
# nginx_module_echo
1+
# 实战开发一个Nginx拓展
2+
## nginx_module_echo
23
使用echo指令输出一个字符串
34

4-
# Nginx 版本
5+
## Nginx 版本
56
Nginx1.0.10 https://github.com/nginx/nginx/releases/tag/release-1.0.10
67
![image](https://wx1.sinaimg.cn/large/005LOzcmly1fgimmvpk3sj30mi04p3z9.jpg)
78

8-
# 开发环境
9+
## 开发环境
910
```shell
1011
OS : CentOS Linux release 7.2.1511 (Core)
1112
```
1213
![image](https://wx4.sinaimg.cn/large/005LOzcmly1fgimnlvhh0j30s106imxw.jpg)
1314
![image](https://wx4.sinaimg.cn/large/005LOzcmly1fgimnlwy1fj315u0dwdhn.jpg)
1415

15-
# 安装一个干净的 Nginx
16-
1. Download a Nginx10.10 and unpack it
16+
## 安装一个干净的 Nginx
17+
1. 下载 Nginx10.10 并且解压它
1718
![image](http://wx2.sinaimg.cn/large/005LOzcmly1fgimq77ahwj30pw05et9n.jpg)
1819

1920
2. 安装gcc和Nginx需要的lib
@@ -28,7 +29,7 @@ OS : CentOS Linux release 7.2.1511 (Core)
2829
![image](https://wx3.sinaimg.cn/large/005LOzcmly1fgimy3dkk5j30rr05ddh5.jpg)
2930
![image](https://ws1.sinaimg.cn/large/005LOzcmly1fgimyc58d3j31vk0qsq9y.jpg)
3031

31-
# 定义模块配置结构
32+
## 定义模块配置结构
3233
```C
3334
typedef struct {
3435
ngx_str_t ed; //该结构体定义在这里 https://github.com/nginx/nginx/blob/master/src/core/ngx_string.h
@@ -39,13 +40,13 @@ typedef struct {
3940
#定义echo模块的指令和参数转化函数
4041
![image](https://wx1.sinaimg.cn/large/005LOzcmly1fgjdis37udj30xj0bktan.jpg)
4142

42-
# 定义模块Context
43+
## 定义模块Context
4344
1. 定义ngx_http_module_t类型的结构体变量
4445
![image](https://wx3.sinaimg.cn/large/005LOzcmly1fgjer4wtrxj313u09igo7.jpg)
4546
2. 初始化一个配置结构体
4647
![image](https://wx1.sinaimg.cn/large/005LOzcmly1fgjerqnq71j30zd08fmyd.jpg)
4748
3. 将其父block的配置信息合并到此结构体 实现了配置的继承
4849
![image](https://wx3.sinaimg.cn/large/005LOzcmly1fgjes12fy5j30ya08qgn7.jpg)
4950

50-
# Write the Handler really work part of the module
51+
## 编写Handler 模块真正干活儿的部分
5152
![image](https://ws2.sinaimg.cn/large/005LOzcmly1fgjfosnvf5j31hy0q6wlb.jpg)

0 commit comments

Comments
 (0)