Nginx 添加扩展模块

Nginx 添加扩展模块

--add-module=../echo-nginx-module
  1. 查看当前nginx的编译
[root@test01 nginx-1.17.10]# /usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.17.10
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) 
built with OpenSSL 1.0.2k-fips  26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --with-http_v2_module --with-http_ssl_module --with-http_sub_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre --with-http_realip_module
  1. 上传并解压第三发扩展模块
tar zxvf echo-nginx-module-0.61.tar.gz
mv echo-nginx-module-0.61  echo-nginx-module
  1. 进入编译目录重新编译
cd nginx-1.17.10
./configure --prefix=/usr/local/nginx --with-http_v2_module --with-http_ssl_module --with-http_sub_module
--with-http_stub_status_module --with-http_gzip_static_module --with-pcre --with-http_realip_module 
--add-module=../echo-nginx-module
  1. 安装更新
make && make install
make upgrade
  1. 查看new nginx 编码情况
[root@test01 nginx-1.17.10]# /usr/local/nginx/sbin/nginx -V
posted @   IT_baibai  阅读(485)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
点击右上角即可分享
微信分享提示