Nginx compiled nginx - add new module

Nginx compiled nginx - add new module

1. View existing modules

/usr/local/nginx/sbin/nginx -V

Here I installed and configured SSL and wanted to add the FastDFS module


Copy the red area and write it down in a small notebook

./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --add-module=/usr/local/fastdfs-nginx-module/src/

2. Recompile Nginx

Re-execute the above in this location: ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --add-module=/usr/local/fastdfs-nginx-module/src/


Don't make install, otherwise it will be overwritten.

make //Don't make install, otherwise it will be overwritten

Back up first, a spare tire is still needed

/usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak

Copy the compiled files to your original sbin directory

cp ./objs/nginx /usr/local/nginx/sbin/

OK The new module is installed. How to use it is the same as before, just add a new module

This is the end of this article about Nginx compiled nginx-add new module. For more related nginx compilation and adding new modules, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to recompile Nginx and add modules

<<:  Using vue3 to implement counting function component encapsulation example

>>:  Solutions to Mysql index performance optimization problems

Recommend

How to make ApacheBench support multi-url

Since the standard ab only supports stress testin...

Detailed tutorial for installing mysql5.7.21 under Windows

This article shares the installation tutorial of ...

CSS: visited pseudo-class selector secret memories

Yesterday I wanted to use a:visited to change the...

How to use Vue to develop public account web pages

Table of contents Project Background start Create...

A brief discussion on whether CSS animation will be blocked by JS

The animation part of CSS will be blocked by JS, ...

Detailed explanation of the specific use of the ENV instruction in Dockerfile

1. The ENV instruction in the Dockerfile is used ...

Tutorial on migrating mysql from phpstudy to Linux

Project Purpose Migrate the data in MySQL 5.5.53 ...

Analysis of the ideas of implementing vertical tables in two ways in Vue project

Problem Description In our projects, horizontal t...

Summary of commonly used tool functions in Vue projects

Table of contents Preface 1. Custom focus command...

MySQL Optimization: Cache Optimization (Continued)

There are caches everywhere inside MySQL. When I ...

25 CSS frameworks, tools, software and templates shared

Sprite Cow download CSS Lint download Prefixr dow...

Vue+Bootstrap realizes a simple student management system

I used vue and bootstrap to make a relatively sim...

Nginx configuration to achieve multiple server load balancing

Nginx load balancing server: IP: 192.168.0.4 (Ngi...

Analysis of the process of building a cluster environment with Apache and Tomcat

In fact, it is not difficult to build an Apache c...