1. 首先下载模块源码:https://github.com/agentzh/echo-nginx-module/tags
2. 解压到某个路径,假设为 /path/to/echo-nginx-module
3. 使用下面命令编译并安装 Nginx
$ wget 'http://sysoev.ru/nginx/nginx-1.0.11.tar.gz' $ tar -xzvf nginx-1.0.11.tar.gz $ cd nginx-1.0.11/# Here we assume you would install you nginx under /opt/nginx/. $ ./configure --prefix=/opt/nginx \ --add-module=/path/to/echo-nginx-module$ make -j2 $ make install
转载于:https://www.cnblogs.com/water-sky/p/4460460.html