Nginx載入模組

2022-08-16 19:45:21 字數 1019 閱讀 4983

1. /usr/local/nginx/sbin/nginx -v 檢視nginx版本與編譯安裝了哪些模組

nginx version: nginx/1.10.3

built by gcc 4.4.7 20120313 (red hat 4.4.7-18) (gcc)

built with openssl 1.0.1e-fips 11 feb 2013

tls sni support enabled

configure arguments:

3. 執行make ,千萬不要make install 否則會覆蓋現有的nginx

4. 關閉nginx

5. copy ~/download/nginx-1.10.3/objs/nginx 到現有的/usr/local/nginx/sbin/nginx

6. /usr/local/nginx/sbin/nginx -v 檢視編譯安裝的模組

7. 修改nginx.conf檔案

server

error_page 500 502 503 504 /50x.html;

location = /50x.html

}###########################80埠的處理###############################

server

ngx_http_auth_basic_module 模組實現讓使用者只有輸入正確的使用者名稱密碼才允許訪問web內容

nginx載入動態模組

不使用動態模組時 使用動態模組 不是所有的nginx模組都可以以動態模組方式加入nginx 載入方式參見nginx模組載入 需要注意的是 with http image filter module dynamic 如果採用動態模組的載入方式,那麼需要將 usr local src nginx 1.8...

載入helloworld模組

include include if config modversions 1 define modversions include endif include include include module license gpl static int hello init void static ...

Odoo模組載入

odoo的啟動是通過openerp server指令碼完成,它是系統的入口。然後載入配置檔案openerp server.conf 或者 openerp serverrc openerp server.conf的主要內容 這個檔案預設是沒有的,odoo系統會有乙個預設值,但是一般情況我們都需配置這個...