【Nginx】Nginx-1.28.1版本已恢复对CentOS 7的兼容性

2025年12月23日,Nginx-1.28.1最新稳定社区版发布,经过在虚拟机中测试,发现该版本可以在CentOS 7.9系统中成功编译、安装和运行。

objectivec 复制代码
[root@vm-localsystem sbin]# ./nginx -V
nginx version: nginx/1.28.1
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) 
configure arguments: --prefix=/usr/local/nginx1

[root@vm-localsystem sbin]# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)

[root@vm-localsystem sbin]# uname -a
Linux vm-localsystem 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

[root@vm-localsystem conf]# ../sbin/nginx -t
nginx: the configuration file /usr/local/nginx1/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx1/conf/nginx.conf test is successful

[root@vm-localsystem conf]# ../sbin/nginx -s reload

[root@vm-localsystem conf]# ps -ef| grep nginx| grep -v grep
root       4387      1  0 15:19 ?        00:00:00 nginx: master process ./nginx
nobody     4536   4387  0 15:32 ?        00:00:00 nginx: worker process
nobody     4537   4387  0 15:32 ?        00:00:00 nginx: worker process

但是,官方的change文档中,并未提及"修复了1.28.0版本在CentOS 7版本中编译报错的问题"。该稳定版的上一个版本(1.28.0)在CentOS 7.9系统中编译失败。

Nginx-1.28.1官方下载地址:

Stable version

|-----------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
| CHANGES-1.28 | nginx-1.28.1 pgp | nginx/Windows-1.28.1 pgp |

适配el8、el9系统的rpm包下载地址:

复制代码
nginx-1.28.1-1.el8.ngx.x86_64.rpm                 23-Dec-2025 19:57             1006424
复制代码
nginx-1.28.1-1.el9.ngx.x86_64.rpm                 23-Dec-2025 19:57             1042731
相关推荐
原来是猿4 小时前
MySQL 在 Centos 7环境安装
数据库·mysql·centos
wanhengidc4 小时前
跨境云手机适用于哪些场景
大数据·运维·服务器·数据库·科技·智能手机
sky wide4 小时前
[特殊字符] Docker 安装指南 (CentOS)
docker·容器·centos
Honeyeagle4 小时前
无线移动在线复合式多合一气体检测仪:工业安全监测的革新利器
运维·网络·安全
桌面运维家5 小时前
网络运维:防火墙异常流量监控与安全配置优化
运维·网络·安全
zhuyan1085 小时前
【AI编程】aider安装记录
linux·运维·ai编程
书山有鹿5 小时前
MaxKB v2.7.0 Rocky Linux 9 部署手册
linux·运维·maxkb·rockylinux 9
Elastic 中国社区官方博客6 小时前
使用 ES|QL 变量控件将仪表板转变为调查工具
大数据·运维·服务器·数据库·elasticsearch·搜索引擎·全文检索
feng68_6 小时前
Ansible还原数据库节点
linux·运维·数据库·ansible
司南-70496 小时前
claude初探- 国内镜像安装linux版claude
linux·运维·服务器·人工智能·后端