Nginx安装echo模块echo-nginx-module
https://github.com/openresty/echo-nginx-module
这个模块不包含在 Nginx 源码中,安装方法:
1. 首先下载模块源码:https://github.com/agentzh/echo-nginx-module/tags
2. 解压到某个路径,假设为 /path/to/echo-nginx-module
3. 使用下面命令编译并安装 Nginx
$ wget 'http://nginx.org/download/nginx-1.9.7.tar.gz' $ tar -xzvf nginx-1.9.7.tar.gz $ cd nginx-1.9.7/ # 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
同时添加debug模块
./configure --with-debug --add-module=/Users/loull/Documents/nginx/echo-nginx-module-0.58
mac默认安装在/usr/local/nginx
make -j2
make install