四、nginx入門-Nginx模組
nginx編譯引數
nginx -V 可以看nginx安裝的一些模組,也叫編譯引數
————————————————
configure arguments 配置引數./configure --help查詢幫助
--prefix=/etc/nginx 安裝路徑
--sbin-path=/userr/sbin/nginx 程式檔案
--modeules-path=/usr/lib64/nginx.conf 主配置檔案
--conf-log-path=/var/log/nginx/nginx/error.log 錯誤日誌
--http-log-path=/var/nginx/access.log 訪問日誌
--pid-path=/var/run/nginx.pid 程式id
--lock-path=/var/run/nignx.lock 鎖路徑,防止重複啟動nginx
--http-client-body-temp-path=/var/cache/nginx/client_temp 使用者快取
--http-proxy-temp-path=/var/cache/nginx/proxy_temp 代理快取
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp php快取
--http-uwsgi-temp-path=/var/cache/nginx/uwsgo_temp python快取
--http-scgi-temp-path=/var/cache/nginx/scgi_temp 快取
--with-compat 啟動動態模組相容性
--user=nginx 使用者
--group=nginx 組
--with-file-aio 高併發,非同步非阻塞特性的檔案
--with-threads 多執行緒模組
--with-http_addition_module 相應追加模組
--with-auth_request_module 認證模組
--with-http_dav_module 上傳下載模組
--with-http_flv_module 視訊模組
--with-http_gunzip_module 壓縮模組
--with-http_gzip_static_module 壓縮模組
--with-http_mp4_module 多媒體模組
--with-http_random_index_module 隨機主頁模組
--with-http_realip_module nginx獲取真是ip模組
--with-http_secure_link_module nginx安全下載模組
--with-http_slice_module nginx中文文件
--with-http_ssl_module 安全模組
--with-http_stub_status_module 分支狀態模組,訪問狀態,可以看網站連線的資訊
--with-http_sub_module nginx替換網站相應內容
--with-http_v2_module web2.0技術
--with-mail 郵件模組
--with-stream 反向代理模組
--with-stream_realip_module 反向代理模組
--with-stream_ssl_module 反向代理模組
--with-stream_ssl_realip_module 反向代理模組
--with-stream_ssl_preread_module 反向代理模組
--with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie' CPU優化引數
————————————————