Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

New modules added to nginx

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Take the module gunzip as an example to describe how to install a new module in nginx

1. First check which modules have been installed in nginx.

Nginx-V

2. Found that there is no gunzip module, install

Enter the nginx installation directory, not the nginx software directory.

Write the module to be installed in the existing module and execute the following command

. / configure\

-- prefix=/usr/local/ywgh/nginx\

-- http-client-body-temp-path=/tmp/clientbody\

-- http-proxy-temp-path=/tmp/proxy\

-- http-fastcgi-temp-path=/tmp/fastcgi\

-- http-uwsgi-temp-path=/tmp/uwsgi\

-- http-scgi-temp-path=/tmp/scgi\

-- user=www\

-- group=www\

-- with-file-aio\

-- with-http_realip_module\

-- with-http_ssl_module\

-- with-openssl=/usr/local/src/software/nginx/openssl\

-- with-http_gunzip_module\

-- with-http_gzip_static_module\

-- with-zlib=/usr/local/src/software/nginx/zlib\

-- with-http_stub_status_module\

-- with-pcre=/usr/local/src/software/nginx/pcre\

3. Then compile and overwrite

Just make directly, there is no need for make install, if you want to reinstall, use make install, just overwrite it.

Then the newly generated executable nginx is located in the objs directory in the installation directory.

Copy the nginx under the objs directory to the nginx in the software location. Just cover it. When overwriting, you need to close nginx first.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report