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

推荐订阅源

The GitHub Blog
The GitHub Blog
M
MIT News - Artificial intelligence
Engineering at Meta
Engineering at Meta
云风的 BLOG
云风的 BLOG
博客园 - 叶小钗
Jina AI
Jina AI
Last Week in AI
Last Week in AI
The Cloudflare Blog
博客园 - 【当耐特】
Stack Overflow Blog
Stack Overflow Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
博客园_首页
I
InfoQ
G
Google Developers Blog
Martin Fowler
Martin Fowler
Recent Announcements
Recent Announcements
H
Help Net Security
U
Unit 42
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog

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服务是否有中断,如果正常则删除备份文件