System and method for dynamically changing Nginx configuration based on Java
A dynamic change, java application technology, applied in the direction of program control device, program loading/starting, instrument, etc., can solve the problems of not elegant user experience, potential safety hazards, high development and learning costs, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] combined with figure 1 , the present embodiment proposes a system for dynamically changing Nginx configuration based on Java, which includes:
[0041] Java application module 1 is used to provide a Restful API interface for reading configuration information of Nginx, and generate Nginx configuration files based on the read configuration information, and the generated configuration files are uniformly stored in the Nginx configuration file directory. The format of the configuration file is .conf or .stream;
[0042] Nginx configuration module 2 is used to configure the configuration file generated by Java application module 1;
[0043] The data storage module 3 is used to persistently store the configuration information of Nginx;
[0044] Timing task module 4, built in Java application module 1, is used to regularly scan the configuration file of Nginx, and poll to detect whether the configuration file of Nginx changes. If there is a change, call the command of the sys...
Embodiment 2
[0053] combined with figure 2 , the present embodiment proposes a method for dynamically changing Nginx configuration based on Java, and its implementation process includes:
[0054] The database persistently stores the configuration information of Nginx;
[0055] The Java application reads the configuration information of Nginx from the database, generates an Nginx configuration file in the format of .conf or .stream, and stores it in the Nginx configuration file directory;
[0056] The Nginx application reads and configures the Nginx configuration file;
[0057] The Java application provides a Restful API interface through which external applications can be accessed;
[0058] The Java application has a built-in timing task to regularly scan the Nginx configuration file, and poll to detect whether the Nginx configuration file has changed. If there is a change, the command of the system where the Java application is located is called to execute the Nginx hot loading command...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com