Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Nginx dynamic module loading method and device

A technology of dynamic modules and loading devices, which is applied in the direction of program control devices, program loading/starting, instruments, etc., can solve the problems of reducing the compatibility of Nginx dynamic modules, and achieve the effect of improving compatibility

Active Publication Date: 2020-09-29
BEIJING DIGITAL UNION WEB SCI & TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the conservative attitude of the Nginx developer towards dynamic modules, technical restrictions have been added to the loading of dynamic modules. It must be ensured that the system calling the dynamic module is consistent with the underlying environment of the system where the dynamic module is generated, so that the use of Nginx dynamic modules is relatively normal. The compatibility of the dynamic modules of Nginx adds a layer of compatibility constraints, and this constraint makes most Nginx dynamic modules unable to be used by Nginx other than its production environment, which greatly reduces the compatibility of Nginx dynamic modules

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Nginx dynamic module loading method and device
  • Nginx dynamic module loading method and device
  • Nginx dynamic module loading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The embodiment of the present invention provides a kind of Nginx dynamic module loading method and device, aim at the compatibility checking mechanism when Nginx execution file loads dynamic module, improve the compatibility of Nginx dynamic module, for being recorded by Nginx outside its generation environment.

[0024] figure 1 It is a schematic block diagram of the Nginx system in the Nginx dynamic module loading device 100 according to an embodiment of the present invention. As shown in the figure, in the current dynamic module loading mechanism of Nginx, the Nginx source code and the module source code need to be built together by the Nginx system Compile to get the Nginx execution file and dynamic module respectively. Create an independent shared object for each dynamic module, and enable and disable loading shared objects at runtime through commands in the Nginx configuration file. In traditional Nginx, if dynamic modules are not supported, the Nginx source code...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an Nginx dynamic module loading method and device. The Nginx dynamic module loading method comprises the following steps of reading a compatibility judgment character string in an Nginx executable file as a first judgment character string; obtaining a compatibility judgment character string of a loaded dynamic module as a second judgment character string; comparing the first judgment character string and the second judgment character string; and modifying the second judgment character string in the loaded dynamic module under the condition that the first judgment character string and the second judgment character string are not identical in order to make the first judgment character string and the second judgment character string be identical to guarantee the loaded dynamic module to meet a compatibility check condition of the Nginx executable file. Through research of a compatibility check mechanism for the Nginx executable file to load the dynamic module, the dynamic module is guaranteed to meet the compatibility check condition of the Nginx executable file, so that the dynamic module is loaded in the environments except for the generation environment of the dynamic module, and thus the compatibility of an Nginx dynamic library is improved.

Description

technical field [0001] The invention relates to a Web server-side program, in particular to a method and a device for loading an Nginx dynamic module. Background technique [0002] Nginx is a performance-oriented HTTP server, which has the advantages of less memory and high stability. As an efficient Web server-side program, it is widely used in various Internet fields. [0003] In order to ensure the stable operation of the program, Nginx did not support dynamic modules (dynamic libraries) for a long period of time. It was not until version 1.9.11 in 2015 that the dynamic module loading function was added. With dynamic modules, third-party or Nginx official modules can be selectively loaded at runtime. However, due to the conservative attitude of the Nginx developer towards dynamic modules, technical restrictions have been added to the loading of dynamic modules. It must be ensured that the system that calls the dynamic module is consistent with the underlying environment...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445
CPCG06F9/44521
Inventor 饶平杨从安张宇平
Owner BEIJING DIGITAL UNION WEB SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products