From 2b6c5cec8f8c963c5840f46764f2b530f5a32e02 Mon Sep 17 00:00:00 2001 From: xking Date: Wed, 7 Sep 2022 18:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20nginx=20=E9=9D=99=E6=80=81?= =?UTF-8?q?=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian 11 安装 编译nginx.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/debian 11 安装 编译nginx.md b/debian 11 安装 编译nginx.md index b0b1d74..5e9e12d 100644 --- a/debian 11 安装 编译nginx.md +++ b/debian 11 安装 编译nginx.md @@ -115,6 +115,20 @@ https://nginx.org/download/nginx-1.22.0.tar.gz + + +##### 静态编译 + +在运行 `make`之前 + +修改`objs/Makefile`文件, 搜索`link`关键字, 在 link `objs/nginx` 的时候补充上 `-static`参数静态编译 + +```sh +objs/ngx_modules.o -static \ +``` + + + ##### 创建进程守护 ```