一、configure命令
构建是使用 configure命令配置的,它定义了系统的各个方面,包括 nginx 允许用于链接处理的方法。最后,它会创建一个 Makefile
configure支持很多参数,具体内容看官网吧,参数的使用如下:(参数都写在一行上)
./configure--sbin-path=/usr/local/nginx/nginx--conf-path=/usr/local/nginx/nginx.conf--pid-path=/usr/local/nginx/nginx.pid--with-http_ssl_module--with-pcre=../pcre2-10.39--with-zlib=../zlib-1.2.11
二、参考链接
从源码构建 nginx:https://nginx.org/en/docs/configure.html
