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

推荐订阅源

GbyAI
GbyAI
WordPress大学
WordPress大学
D
DataBreaches.Net
腾讯CDC
小众软件
小众软件
B
Blog RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
U
Unit 42
Y
Y Combinator Blog
V
V2EX
I
InfoQ
D
Docker
量子位
N
Netflix TechBlog - Medium
Recent Announcements
Recent Announcements
A
About on SuperTechFans
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog
阮一峰的网络日志
阮一峰的网络日志
MyScale Blog
MyScale Blog

web 服务器 on 打工人日志

使用TLSv1.3 升级nginx和openssl nginx ssh-key connection exception nginx 编译参数详解 nginx 重写规则 rewrite模块 nginx.conf 配置文件详解 nginx 日志格式整理 nginx 汇总
nginx 配置和编译
作者 · 2023-04-20 · via web 服务器 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服务是否有中断,如果正常则删除备份文件