Nginx新增 echo模組

2021-09-26 14:29:49 字數 2077 閱讀 7805

然後複製 --prefix後面的

# ./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-debug --with-http_ssl_module --with-http_realip_module --with-http_image_filter_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_stub_status_module --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --add-module=/usr/local/nginx/echo-nginx-module-0.61/ --add-modure=/usr/local/nginx/sbin/nginx
# make
# mv /usr/local/nginx/sbin/nginx
# find / -name objs

/usr/src/nginx-1.12.0/objs

# cd /usr/src/nginx-1.12.0/objs/

# ls

addon nginx ngx_auto_headers.h src

autoconf.err nginx.8 ngx_modules.c

makefile ngx_auto_config.h ngx_modules.o

# mv /usr/src/nginx-1.12.0/objs/nginx /usr/local/nginx/sbin/

增加模組是這樣的步驟

那麼公升級也是這個步驟

就在配置檔案裡修改location

location / 

location = /abc

# nginx -s reload //重新整理配置檔案

//然後另外開啟乙個終端

# curl

a# curl

a# curl c

b# curl

a

nginx 新增 模組

title nginx 新增 模組 date 2019 10 31 11 21 46 categories tags config nginx 說明 已經安裝好的nginx,需要新增乙個未被編譯安裝的模組 以nginx rtmp module模組為例 則需要重新編譯nginx,而不是像apache一...

Nginx 新增模組

原已經安裝好的 nginx,現在需要新增乙個未被編譯安裝的模組 nginx v 可以檢視原來編譯時都帶了哪些引數 usr local nginx sbin nginx v 原來的引數 新增的引數 步驟如下 可以通過官方檢視模組安裝例子 1.使用引數重新配置 2.編譯 make 不要 make ins...

nginx 新增C 模組

ps 埠改變檔案 安裝目錄的 安裝目錄 conf nginx.comf中 1 configure prefix usr local notifyserver add module usr local src nginx notifyserver module prefix usr local not...