惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - Franky
云风的 BLOG
云风的 BLOG
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Engineering at Meta
Engineering at Meta
Vercel News
Vercel News
Y
Y Combinator Blog
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Check Point Blog
M
MIT News - Artificial intelligence
Jina AI
Jina AI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
Stack Overflow Blog
Stack Overflow Blog
F
Fortinet All Blogs
博客园 - 司徒正美
I
InfoQ
Google DeepMind News
Google DeepMind News
GbyAI
GbyAI
U
Unit 42

linux on 打工人日志

使用TLSv1.3 升级nginx和openssl nginx ssh-key connection exception centos7.9 网络配置 nginx 编译参数详解 nginx 重写规则 rewrite模块 nginx.conf 配置文件详解 nginx 日志格式整理 linux系统开启root权限 nginx 汇总
nginx 配置和编译
作者 · 2023-04-20 · via linux on 打工人日志

本页内容


nginx 自编译

nginx官网

下载nginx->Configure->编译->安装

下载nginx

1wget https://nginx.org/download/nginx-1.24.0.tar.gz

解压目录

1tar -zxvf nginx-1.24.0.tar.gz

编译最新的 nginx,并备份旧的二进制文件

1cd nginx-1.24.0
2./configure && make
3mv /path/to/nginx /path/to/nginx.bak

覆盖旧的二进制文件

1cp /path/to/nginx /path/to/nginx

执行平滑重启

观察nginx服务是否有中断,如果正常则删除备份文件