更新 nginx 静态编译

This commit is contained in:
xking 2022-09-07 18:19:35 +08:00
parent b488f76ddf
commit 2b6c5cec8f
Signed by: chenkuangwei
GPG Key ID: 931C79A9747F5F82

View File

@ -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 \
```
##### 创建进程守护
```