Ubuntu下nginx編譯安裝參數(shù)配置
更新時間:2015年06月26日 11:26:52 投稿:junjie
這篇文章主要介紹了Ubuntu下nginx編譯安裝參數(shù)配置,本文總結(jié)了一些依賴庫的安裝以及編碼配置參數(shù),需要的朋友可以參考下
安裝依賴庫:
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 是一個基于 Nginx 與 Lua 的高性能 Web 平臺,其內(nèi)部集成了大量精良的 Lua 庫、第三方模塊以及大多數(shù)的依賴項,這篇文章主要介紹了在Debian11上安裝Openresty服務(wù)(Nginx+Lua)?,需要的朋友可以參考下2022-10-10Nginx的location的常見規(guī)則優(yōu)先級問題
Nginx是反向代理和負(fù)載均衡的首選工具,nginx的location配置有許多細(xì)節(jié)內(nèi)容在網(wǎng)上不容易找到資料,或者解釋不清。本文對Nginx location規(guī)則優(yōu)先級介紹,需要的朋友參考下吧2021-08-08Nginx 出現(xiàn) 403 Forbidden 最終解決方法
這篇文章給大家介紹了Nginx 出現(xiàn) 403 Forbidden 最終解決方法,下面分步驟給大家介紹的非常詳細(xì),感興趣的的朋友一起看看吧2017-08-08使用nginx+tomcat實現(xiàn)靜態(tài)和動態(tài)頁面的分離
這篇文章主要介紹了使用nginx+tomcat實現(xiàn)靜態(tài)和動態(tài)頁面的分離,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧。2017-01-01