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

推荐订阅源

博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
Stack Overflow Blog
Stack Overflow Blog
Jina AI
Jina AI
Vercel News
Vercel News
H
Help Net Security
Martin Fowler
Martin Fowler
美团技术团队
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
MyScale Blog
MyScale Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
宝玉的分享
宝玉的分享
小众软件
小众软件
T
Tailwind CSS Blog
WordPress大学
WordPress大学

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