1. ./configure --prefix=/Users/ysnows/var/nginx

  2. 默认配置文件:

nginx path prefix: “~/var/nginx” nginx binary file: “~/var/nginx/sbin/nginx” nginx modules path: “~/var/nginx/modules” nginx configuration prefix: “~/var/nginx/conf” nginx configuration file: “~/var/nginx/conf/nginx.conf” nginx pid file: “~/var/nginx/logs/nginx.pid” nginx error log file: “~/var/nginx/logs/error.log” nginx http access log file: “~/var/nginx/logs/access.log” nginx http client request body temporary files: “client_body_temp” nginx http proxy temporary files: “proxy_temp” nginx http fastcgi temporary files: “fastcgi_temp” nginx http uwsgi temporary files: “uwsgi_temp” nginx http scgi temporary files: “scgi_temp”

1
2
3
4
5

3. 在`objs/ngx_modules.c`文件中是要安装的模块
4. 执行`make&&make install`