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

推荐订阅源

Recent Announcements
Recent Announcements
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
Engineering at Meta
Engineering at Meta
Stack Overflow Blog
Stack Overflow Blog
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
I
InfoQ
B
Blog
WordPress大学
WordPress大学
Jina AI
Jina AI
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
阮一峰的网络日志
阮一峰的网络日志
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
Google Developers Blog
C
Check Point Blog
月光博客
月光博客
L
LangChain Blog
GbyAI
GbyAI

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