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

Detailed explanation of the role of brackets in AngularJS

1. The role of brackets 1.1 Square brackets [ ] W...

Detailed explanation of the use of redux in native WeChat applet development

premise In complex scenarios, a lot of data needs...

Implement 24+ array methods in JavaScript by hand

Table of contents 1. Traversal Class 1. forEach 2...

How to limit the number of records in a table in MySQL

Table of contents 1. Trigger Solution 2. Partitio...

Summary of 4 methods of div+css layout to achieve 2-end alignment of css

The div+css layout to achieve 2-end alignment is ...

4 solutions to mysql import csv errors

This is to commemorate the 4 pitfalls I stepped o...

A detailed tutorial on how to install Jenkins on Docker for beginners

Jenkins is an open source software project. It is...

Analysis of MySQL general query log and slow query log

The logs in MySQL include: error log, binary log,...

MySQL 8.0.11 MSI version installation and configuration graphic tutorial

This article shares the installation and configur...

Four practical tips for JavaScript string operations

Table of contents Preface 1. Split a string 2. JS...

Docker installation and configuration image acceleration implementation

Table of contents Docker version Install Docker E...

8 powerful techniques for HTML web page creation

<br />Although there are many web page creat...