国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > Nginx > 正文

Nginx之為已安裝nginx動態添加模塊的方法

2024-08-30 12:21:45
字體:
來源:轉載
供稿:網友
本篇文章主要介紹了Nginx之為已安裝nginx動態添加模塊的方法,小編覺得挺不錯的,現在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧

說明:

已經安裝好的nginx,需要添加一個未被編譯安裝的模塊,需要怎么弄呢?

具體:

這里以安裝第三方ngx_http_google_filter_module模塊為例

nginx的模塊是需要重新編譯nginx,而不是像apache一樣配置文件引用.so

1. 下載第三方擴展模塊ngx_http_google_filter_module

# cd /data/software/# git clone https://github.com/cuber/ngx_http_google_filter_module

2. 查看nginx編譯安裝時安裝了哪些模塊

# nginx -Vnginx version: nginx/1.8.0built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) built with OpenSSL 1.0.1e-fips 11 Feb 2013TLS SNI support enabledconfigure arguments: --prefix=/usr/local/nginx --with-http_ssl_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module --add-module=/data/software/ngx_http_substitutions_filter_module

可以看出編譯安裝使用了--prefix=/usr/local/nginx --with-http_ssl_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module --add-module=/data/software/ngx_http_substitutions_filter_module這些參數。--add-module=/data/software/ngx_http_substitutions_filter_module是之前編譯添加ngx_http_substitutions_filter_module模塊時添加

3. 加入需要安裝的模塊,重新編譯,如這里添加

主站蜘蛛池模板: 鹤壁市| 蕉岭县| 两当县| 巧家县| 搜索| 商水县| 湄潭县| 兴义市| 黄骅市| 新干县| 保亭| 沐川县| 娱乐| 高清| 余干县| 醴陵市| 西宁市| 玉龙| 襄汾县| 永安市| 瑞金市| 红原县| 清水县| 北流市| 新安县| 丽水市| 嘉祥县| 涡阳县| 安新县| 沅陵县| 银川市| 东台市| 饶河县| 玉环县| 望都县| 信丰县| 陆良县| 凌源市| 阿鲁科尔沁旗| 阳谷县| 安西县|