一、configure命令

构建是使用 configure命令配置的,它定义了系统的各个方面,包括 nginx 允许用于链接处理的方法。最后,它会创建一个 Makefile

configure支持很多参数,具体内容看官网吧,参数的使用如下:(参数都写在一行上)

  1. ./configure
  2. --sbin-path=/usr/local/nginx/nginx
  3. --conf-path=/usr/local/nginx/nginx.conf
  4. --pid-path=/usr/local/nginx/nginx.pid
  5. --with-http_ssl_module
  6. --with-pcre=../pcre2-10.39
  7. --with-zlib=../zlib-1.2.11

二、参考链接

从源码构建 nginx:https://nginx.org/en/docs/configure.html