Ubuntu下nginx編譯安裝參數(shù)配置
更新時(shí)間:2015年06月26日 11:26:52 投稿:junjie
這篇文章主要介紹了Ubuntu下nginx編譯安裝參數(shù)配置,本文總結(jié)了一些依賴(lài)庫(kù)的安裝以及編碼配置參數(shù),需要的朋友可以參考下
安裝依賴(lài)庫(kù):
sudo apt-get install libgd2-xpm sudo apt-get install libgd2-xpm-dev sudo apt-get install libgeoip-dev sudo apt-get install libpcre3 sudo apt-get install libpcre3-dev sudo apt-get install libssl-dev sudo apt-get install openssl sudo apt-get install libxslt-dev
編譯配置:
./configure \ --prefix=/data/service/nginx \ --sbin-path=/data/service/nginx/sbin/nginx \ --conf-path=/data/service/nginx/conf/nginx.conf \ --pid-path=/data/service/nginx/logs/nginx.pid \ --lock-path=/data/service/nginx/lock/nginx.lock \ --error-log-path=/data/service/nginx/logs/error.log \ --http-log-path=/data/service/nginx/logs/access.log \ --http-scgi-temp-path=/data/service/nginx/scgi \ --http-uwsgi-temp-path=/data/service/nginx/uwsgi \ --http-proxy-temp-path=/data/service/nginx/proxy \ --http-fastcgi-temp-path=/data/service/nginx/fastcig \ --http-client-body-temp-path=/data/service/nginx/body \ --user=www-data \ --group=www-data \ --with-ipv6 \ --with-debug \ --with-file-aio \ --with-rtsig_module \ --with-http_ssl_module \ --with-http_flv_module \ --with-http_mp4_module \ --with-http_sub_module \ --with-http_dav_module \ --with-http_xslt_module \ --with-http_geoip_module \ --with-http_realip_module \ --with-http_addition_module \ --with-http_gzip_static_module \ --with-http_secure_link_module \ --with-http_degradation_module \ --with-http_stub_status_module \ --with-http_random_index_module \ --with-http_image_filter_module
編譯安裝:
make && make install
相關(guān)文章
在Debian11上安裝Openresty服務(wù)(Nginx+Lua)的詳細(xì)教程
OpenResty 是一個(gè)基于 Nginx 與 Lua 的高性能 Web 平臺(tái),其內(nèi)部集成了大量精良的 Lua 庫(kù)、第三方模塊以及大多數(shù)的依賴(lài)項(xiàng),這篇文章主要介紹了在Debian11上安裝Openresty服務(wù)(Nginx+Lua)?,需要的朋友可以參考下2022-10-10HipChat上傳文件報(bào)未知錯(cuò)誤的原因分析及解決方案
HipChat的功能類(lèi)似于Campfire、Sazneo等在線協(xié)同工具,并且和Yammer以及Salesforce的Chatter等企業(yè)社交平臺(tái)有一定相似之處。你可以為單個(gè)項(xiàng)目或者小組搭建自有的聊天室,也可以很方便的發(fā)起一對(duì)一聊天2016-01-01Nginx的location的常見(jiàn)規(guī)則優(yōu)先級(jí)問(wèn)題
Nginx是反向代理和負(fù)載均衡的首選工具,nginx的location配置有許多細(xì)節(jié)內(nèi)容在網(wǎng)上不容易找到資料,或者解釋不清。本文對(duì)Nginx location規(guī)則優(yōu)先級(jí)介紹,需要的朋友參考下吧2021-08-08Nginx開(kāi)啟Brotli壓縮算法實(shí)現(xiàn)過(guò)程詳解
這篇文章主要介紹了Nginx開(kāi)啟Brotli壓縮算法實(shí)現(xiàn)過(guò)程詳解,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下2020-11-11Nginx 出現(xiàn) 403 Forbidden 最終解決方法
這篇文章給大家介紹了Nginx 出現(xiàn) 403 Forbidden 最終解決方法,下面分步驟給大家介紹的非常詳細(xì),感興趣的的朋友一起看看吧2017-08-08使用nginx+tomcat實(shí)現(xiàn)靜態(tài)和動(dòng)態(tài)頁(yè)面的分離
這篇文章主要介紹了使用nginx+tomcat實(shí)現(xiàn)靜態(tài)和動(dòng)態(tài)頁(yè)面的分離,小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧。2017-01-01