CN112579189A - Configuration file updating method and device - Google Patents

Configuration file updating method and device Download PDF

Info

Publication number
CN112579189A
CN112579189A CN201910944534.2A CN201910944534A CN112579189A CN 112579189 A CN112579189 A CN 112579189A CN 201910944534 A CN201910944534 A CN 201910944534A CN 112579189 A CN112579189 A CN 112579189A
Authority
CN
China
Prior art keywords
configuration file
update
configuration
updated
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910944534.2A
Other languages
Chinese (zh)
Inventor
郭俊民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201910944534.2A priority Critical patent/CN112579189A/en
Publication of CN112579189A publication Critical patent/CN112579189A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a configuration file updating method and device. Wherein, the method comprises the following steps: detecting whether at least one first configuration file is updated or not, and if yes, sending an update notification for indicating that the first configuration file is updated to target equipment; receiving a downloading request sent by the target device based on the update notification, wherein the downloading request is used for requesting to download a second configuration file, and the second configuration file is a configuration file updated by the first configuration file; and sending the second configuration file to the target equipment based on the downloading request. The method and the device solve the technical problem that in the prior art, the configuration file is modified and updated manually, and the updating efficiency of the configuration file is low.

Description

Configuration file updating method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for updating a configuration file.
Background
In large-scale cluster and distributed application, configuration is not easy to disperse in nodes, centralized management is needed, and uniform configuration management service is provided for various service platforms. As services develop, the configurations in application systems are usually more and more, and some common application configurations generally include data source configurations, data source component configurations, service component configurations, and the like, which are relatively stable and less variable, and are usually published together with applications in a file. However, in practice, some configuration information may change with a certain frequency and rule, and it is desirable to be able to achieve the real-time performance as much as possible, for example, some marketing or activity application systems, and if a traditional configuration file is used, it may be inconvenient to re-publish the application.
In the prior art, an operation and maintenance engineer logs in a target server in a mode of SSH (Secure Shell) or remote login system, and needs to find a configuration file to be modified for backup after logging in; after the backup is finished, manually modifying the file content through a vi command or an sed command, and after the modification is finished, restarting a corresponding service process to enable the modification to be effective; all the operations are manually completed by an operation and maintenance engineer, the efficiency is low, the risk of human errors exists in the manual operation, secondly, when the number of target servers or target files is large, the whole modification process is time-consuming, and the updating efficiency of configuration files is low.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a method and a device for updating a configuration file, which are used for at least solving the technical problem that in the prior art, the updating efficiency of the configuration file is low in a mode of manually modifying and updating the configuration file.
According to an aspect of an embodiment of the present application, there is provided a method for updating a configuration file, including: detecting whether at least one first configuration file is updated or not, and if yes, sending an update notification for indicating that the first configuration file is updated to target equipment; receiving a downloading request sent by the target device based on the update notification, wherein the downloading request is used for requesting to download a second configuration file, and the second configuration file is a configuration file updated by the first configuration file; and sending the second configuration file to the target equipment based on the downloading request.
Optionally, before detecting whether there is at least one first profile update, the method further includes: and acquiring updating information, wherein the updating information is used for indicating to update the first configuration file.
Optionally, before obtaining the update information, the method further includes: acquiring a user instruction; and judging whether the user corresponding to the user instruction has the authority of uploading the update information, if so, starting a program for acquiring the update information.
Optionally, after obtaining the update information, the method further includes: determining application information corresponding to the second configuration file based on the update information, wherein the application information includes at least one of: name information of the application program, version information of the application program and application environment information corresponding to the application program; determining the target device based on the application information.
Optionally, before sending an update notification indicating that the first profile is updated to the target device, the method further includes: the update status of the first configuration file is changed and stored.
Optionally, after sending the second configuration file to the target device based on the download request, the method further includes: and receiving an update completion notification sent by the target device, wherein the update completion notification is used for indicating that the target device has updated the first configuration file in the target device to the second configuration file.
According to an aspect of an embodiment of the present application, there is provided a profile updating apparatus, including: the device comprises a detection module, a configuration module and a configuration module, wherein the detection module is used for detecting whether at least one first configuration file is updated or not, and if yes, sending an update notification for indicating that the first configuration file is updated to target equipment; a receiving module, configured to receive a download request sent by the target device based on the update notification, where the download request is used to request to download a second configuration file, and the second configuration file is a configuration file updated by the first configuration file; a sending module, configured to send the second configuration file to the target device based on the download request.
According to an aspect of the embodiments of the present application, there is provided a storage medium including a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the above-mentioned configuration file updating method.
According to an aspect of the embodiments of the present application, there is provided a processor for executing a program, where the program executes to perform the above-mentioned configuration file updating method.
According to an aspect of an embodiment of the present application, there is provided an electronic device including at least one processor, and at least one memory connected with the processor, a bus; the processor and the memory complete mutual communication through a bus; the processor is used for calling the program instructions in the memory to execute the configuration file updating method.
In the embodiment of the application, whether at least one first configuration file is updated or not is detected, and if yes, an update notification for indicating that the first configuration file is updated is sent to target equipment; receiving a downloading request sent by the target device based on the update notification, wherein the downloading request is used for requesting to download a second configuration file, and the second configuration file is a configuration file updated by the first configuration file; the second configuration file is sent to the target device based on the downloading request, and the updated configuration file is automatically sent to the target device based on the updating request of the target device when the configuration file is updated, so that the aim of automatically updating the configuration file for the target device is fulfilled, the technical effect that the target device can automatically acquire the configuration file when the configuration file is updated is achieved, and the technical problem that in the prior art, the updating efficiency of the configuration file is low due to the mode of manually modifying and updating the configuration file is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic flow chart diagram illustrating an alternative configuration file updating method according to an embodiment of the present application;
FIG. 2 is a block diagram of an alternative profile update system according to an embodiment of the present application;
FIG. 3 is a schematic flowchart of an alternative configuration file update method according to an embodiment of the present application;
FIG. 4 is a block diagram of an alternative configuration file update apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present application, there is provided a method embodiment for profile updating, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a schematic flowchart of a configuration file updating method according to an embodiment of the present application, and as shown in fig. 1, the method at least includes the following steps:
step S102, detecting whether at least one first configuration file is updated, if yes, sending an update notification for indicating that the first configuration file is updated to target equipment;
in some optional embodiments of the present application, the detecting whether there is at least one first profile update may be performed by a server for managing configuration, the target device may be a server for providing an application program for a user, and the number of the target devices may be one or more; the target device may also include a configuration management module, which is configured to uniformly manage the local configuration files and configuration items in the user instance. The first configuration file may include the first configuration file itself and may also include a configuration item corresponding to the first configuration file, and the second configuration file may include the second configuration file itself and may also include a configuration item corresponding to the second configuration file.
Optionally, the sending, by the server for managing configuration, the update notification indicating that the first configuration file is updated to the target device may be further implemented by: the server for managing configuration sends and stores the update state of the first configuration file to the state maintenance module, wherein the state maintenance module may be a single server or may be disposed in the server for managing configuration, and the update state of the first configuration file may include the latest update time of the first configuration file; after storing the update state of the first configuration file, the state maintenance module sends an update notification for indicating that the first configuration file is updated to the target device.
Step S104, receiving a download request sent by the target device based on the update notification, wherein the download request is used for requesting to download a second configuration file, and the second configuration file is a configuration file updated by the first configuration file;
optionally, after receiving the update notification, the one or more target devices send a download request for downloading the second configuration file to the server for managing the configuration, where the one or more target devices may download the second configuration file and/or the configuration item corresponding to the second configuration file in a restful style. In addition, the one or more target devices may further include a monitoring module, configured to monitor the remote first configuration file and a change of the configuration item corresponding to the first configuration file.
Step S106, the second configuration file is sent to the target device based on the downloading request.
Optionally, after the server for managing the configuration obtains the download request sent by the one or more target devices, the server may send the second configuration file to the one or more target devices.
Optionally, before detecting whether there is at least one first profile update, the method further needs to perform the following steps: and acquiring updating information, wherein the updating information is used for indicating to update the first configuration file. Wherein, the update information may further include a second configuration file.
Optionally, before obtaining the update information, the method further needs to perform the following steps: acquiring a user instruction; and judging whether the user corresponding to the user instruction has the authority of uploading the update information, if so, starting a program for acquiring the update information.
In some optional embodiments of the present application, the server for managing the configuration may also include a configuration management module, which is used to support uploading, downloading, and updating of the configuration template (configuration item or configuration file).
Optionally, after receiving the user instruction and receiving the update information uploaded by the user, the server for managing configuration updates the original first configuration file and/or the configuration item corresponding to the first configuration file to obtain the second configuration file and/or the configuration item corresponding to the second configuration file.
Optionally, after obtaining the update information, the method further needs to perform the following steps: determining application information corresponding to the second configuration file based on the update information, wherein the application information includes at least one of: name information of the application program, version information of the application program and application environment information corresponding to the application program; determining the target device based on the application information.
Optionally, the server for managing the configuration may also include a configuration storage module, configured to manage storage and reading of all configurations, and distinguish the project configuration according to name information of the application program, version information of the application program, and application environment information corresponding to the application program.
The server for managing configurations may also include a notification module: and when the first configuration file and/or the configuration item corresponding to the first configuration file are updated, all the instances using the configurations are notified in real time.
Optionally, before sending an update notification indicating that the first configuration file is updated to the target device, the method further needs to perform the following steps: the update status of the first configuration file is changed and stored.
Optionally, before the server for managing the configuration sends the update notification indicating that the first configuration file is updated, the update status of the first configuration file may be stored in the status maintenance module, where the status maintenance module may be a single server or may be disposed in the server for managing the configuration.
Optionally, the update status of the first profile may include a latest update time of the first profile, and is further used to indicate whether the first profile is updated.
Optionally, after storing the update status of the first configuration file, the status maintenance module may send an update notification to the target device, where the update notification indicates that the first configuration file is updated.
Optionally, after sending the second configuration file to the target device based on the download request, the method further needs to perform the following steps: and receiving an update completion notification sent by the target device, wherein the update completion notification is used for indicating that the target device has updated the first configuration file in the target device to the second configuration file.
The method and the device can get rid of low efficiency caused by full-flow manual operation, get rid of risk of accidents caused by human errors caused by the full-flow manual operation, and trace back corresponding records when the records are changed every time.
In the embodiment of the application, whether at least one first configuration file is updated or not is detected, and if yes, an update notification for indicating that the first configuration file is updated is sent to target equipment; receiving a downloading request sent by the target device based on the update notification, wherein the downloading request is used for requesting to download a second configuration file, and the second configuration file is a configuration file updated by the first configuration file; the second configuration file is sent to the target device based on the downloading request, and the updated configuration file is automatically sent to the target device based on the updating request of the target device when the configuration file is updated, so that the aim of automatically updating the configuration file for the target device is fulfilled, the technical effect that the target device can automatically acquire the configuration file when the configuration file is updated is achieved, and the technical problem that in the prior art, the updating efficiency of the configuration file is low due to the mode of manually modifying and updating the configuration file is solved.
According to an embodiment of the present application, there is also provided a profile updating system for implementing the above-mentioned profile updating method, as shown in fig. 2, the system includes: a configuration management server 22, a state maintenance server 24, a service server 26; wherein:
a configuration management server 22, configured to detect whether there is at least one first profile update, and if so, send an update notification to the service server 26, where the update notification indicates that the first profile is updated; the configuration management server 22 is further configured to receive a download request sent by the service server 26 based on the update notification, where the download request is used to request to download a second configuration file, and the second configuration file is a configuration file updated by the first configuration file; the configuration management server 22 is further configured to send the second configuration file to the service server 26 based on the download request.
Optionally, the configuration management server 22 sending an update notification to the service server 26 for indicating that the first configuration file is updated may be further implemented by: sending and storing the update status of the first configuration file to the status maintenance server 24, where the status maintenance server 24 may be a single server, or may be provided in the configuration management server 22, and the update status of the first configuration file may include the latest update time of the first configuration file; after storing the update status of the first profile, the state maintenance server 24 sends an update notification to the traffic server 26 indicating that the first profile is updated.
A state maintenance server 24 for receiving the update state of the first profile and sending an update notification indicating an update of the first profile to the service server 26.
Alternatively, the configuration management server 22 may be a server for managing configuration in the embodiment corresponding to fig. 1, the service server 26 may be a target device in the embodiment corresponding to fig. 1, and the state maintenance server 24 is a state maintenance module in the embodiment corresponding to fig. 1.
A service server 26 for receiving the update notification sent by the configuration management server 22 or the state maintenance server 24, and sending a download request for obtaining the second configuration file to the configuration management server 22, and for downloading the second configuration file from the configuration management server 22. In some optional embodiments of the present application, the configuration management server 22 may detect whether there is at least one first profile update, the service server 26 may provide a server of the application program for the user, and the number of the service servers 26 may be one or more; the service server 26 may also include a configuration management module for uniformly managing local configuration files and configuration items in the user instance. The first configuration file may include the first configuration file itself and may also include a configuration item corresponding to the first configuration file, and the second configuration file may include the second configuration file itself and may also include a configuration item corresponding to the second configuration file.
Optionally, after receiving the update notification, the one or more service servers 26 send a download request for downloading the second configuration file to the configuration management server 22, where the one or more service servers 26 may download the second configuration file and/or the configuration item corresponding to the second configuration file in a restful style. In addition, one or more of the service servers 26 may further include a monitoring module, configured to monitor the remote first configuration file and a change of the configuration item corresponding to the first configuration file.
Alternatively, the configuration management server 22 may send the second configuration file to the one or more service servers 26 after obtaining the download request sent by the one or more service servers 26.
Optionally, before the configuration management server 22 detects whether there is at least one first profile update, update information may be further obtained, where the update information is used to indicate that the first profile is updated.
Optionally, before obtaining the update information, the configuration management server 22 is further configured to obtain a user instruction; and judging whether the user corresponding to the user instruction has the authority of uploading the update information, if so, starting a program for acquiring the update information.
In some optional embodiments of the present application, the configuration management server 22 may also include a configuration management module for supporting uploading, downloading, and updating of configuration templates (configuration items or configuration files).
Optionally, after receiving the user instruction and receiving the update information uploaded by the user, the configuration management server 22 updates the original first configuration file and/or the configuration item corresponding to the first configuration file to obtain the second configuration file and/or the configuration item corresponding to the second configuration file.
Optionally, after obtaining the update information, the configuration management server 22 is further configured to determine, based on the update information, application information corresponding to the second configuration file, where the application information includes at least one of: name information of the application program, version information of the application program and application environment information corresponding to the application program; the service server 26 is determined based on the application information.
Optionally, the configuration management server 22 may also include a configuration storage module for managing storage and reading of all configurations, and the project configurations are distinguished according to name information of the application program, version information of the application program, and application environment information corresponding to the application program.
The configuration management server 22 may also include a notification module: and when the first configuration file and/or the configuration item corresponding to the first configuration file are updated, all the instances using the configurations are notified in real time.
Optionally, the configuration management server 22 is further configured to change and store the update status of the first configuration file before sending an update notification to the service server 26, wherein the update notification indicates that the first configuration file is updated.
Alternatively, before the configuration management server 22 sends the update notification indicating that the first configuration file is updated, the update status of the first configuration file may be stored in the state maintenance server 24, where the state maintenance server 24 may be a single server, or may be provided in the configuration management server 22.
Optionally, the update status of the first profile may include a most recent update time of the first profile.
Alternatively, after storing the update status of the first profile, the status maintenance server 24 may send an update notification to the traffic server 26 indicating that the first profile is updated.
Optionally, after sending the second configuration file to the service server 26 based on the download request, the configuration management server 22 is further configured to receive an update completion notification sent by the service server 26, where the update completion notification is used to indicate that the service server 26 has updated the first configuration file in itself to the second configuration file.
The method and the device can get rid of low efficiency caused by full-flow manual operation, get rid of risk of accidents caused by human errors caused by the full-flow manual operation, and trace back corresponding records when the records are changed every time.
Fig. 3 is a flowchart illustrating a configuration file updating method according to an embodiment of the present application, and as shown in fig. 3, the method involves a service-side module 32, a configuration management server 34, and a state maintenance server 36, where the service-side module 32 and the service-side server 26 in fig. 2 may be the same device, the configuration management server 34 and the configuration management server 22 in fig. 2 may be the same device, and the state maintenance server 36 and the state maintenance server 24 in fig. 2 may be the same device. The method at least comprises the following steps:
step S302, change is submitted;
alternatively, committing the change may involve configuration management server 34 obtaining update information indicating that the first configuration file is to be updated. The update information may further include a second configuration file, where the second configuration file is a configuration file updated by the first configuration file.
Optionally, before obtaining the update information, the configuration management server 34 is further configured to obtain a user instruction; and judging whether the user corresponding to the user instruction has the authority of uploading the update information, if so, starting a program for acquiring the update information.
Step S304, updating the configuration version information;
optionally, after the configuration management server 34 submits the change, that is, after acquiring the update information, the configuration version information is updated, and the configuration version information may be the first configuration file and/or the configuration item of the first configuration file.
Step S306, updating the state information;
optionally, after the configuration management server 34 updates the configuration version information, the update status information of the first configuration file may be sent to and stored in the status maintenance server 36, where the status maintenance server 36 may be a single server, or may be set in the configuration management server 34, and the update status of the first configuration file may include the latest update time of the first configuration file.
Step S308, receiving a change notification;
optionally, after storing the update status of the first configuration file, the status maintenance server 36 sends an update notification to the service-side module 32, where the update notification indicates that the first configuration file is updated, and the service-side module 32 receives the change notification.
Step S310, starting to change;
step S312, obtaining configuration updating information;
optionally, after receiving the change notification, the service-side module 32 will obtain configuration update information from the configuration management server 34, where the configuration update information may include a second configuration file.
Step S314, updating local configuration;
optionally, the service end module 32 obtains a first configuration file in itself and updates the first configuration file into a second configuration file;
step S316, the change result is submitted.
Optionally, the service-side module 32 updates the first configuration file of itself to the second configuration file, and then submits the change result to the configuration management server 34.
According to an embodiment of the present application, there is also provided a configuration file updating apparatus for implementing the above configuration file updating method, as shown in fig. 4, the apparatus includes: a detection module 42, a receiving module 44, a sending module 46; wherein:
a detecting module 42, configured to detect whether there is at least one first configuration file update, and if so, send an update notification indicating that the first configuration file is updated to a target device;
a receiving module 44, configured to receive a download request sent by the target device based on the update notification, where the download request is used to request to download a second configuration file, and the second configuration file is a configuration file updated by the first configuration file;
a sending module 46, configured to send the second configuration file to the target device based on the download request.
Optionally, before detecting whether there is at least one first profile update, the apparatus is further configured to: and acquiring updating information, wherein the updating information is used for indicating to update the first configuration file.
Optionally, before obtaining the update information, the apparatus is further configured to: acquiring a user instruction; and judging whether the user corresponding to the user instruction has the authority of uploading the update information, if so, starting a program for acquiring the update information.
Optionally, after obtaining the update information, the apparatus is further configured to: determining application information corresponding to the second configuration file based on the update information, wherein the application information includes at least one of: name information of the application program, version information of the application program and application environment information corresponding to the application program; determining the target device based on the application information.
Optionally, before sending an update notification to the target device, the apparatus is further configured to: the update status of the first configuration file is changed and stored.
Optionally, after sending the second configuration file to the target device based on the download request, the apparatus is further configured to: and receiving an update completion notification sent by the target device, wherein the update completion notification is used for indicating that the target device has updated the first configuration file in the target device to the second configuration file.
It should be noted that, reference may be made to the description related to the embodiment shown in fig. 1 for a preferred implementation of the embodiment shown in fig. 4, and details are not described here again.
The configuration file updating device comprises a processor and a memory, wherein the detection module 42, the receiving module 44, the sending module 46 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the technical problem that in the prior art, the updating efficiency of the configuration file is low in a mode of manually modifying and updating the configuration file by adjusting the kernel parameters is solved.
An embodiment of the present application provides a storage medium on which a program is stored, which when executed by a processor implements the profile updating method.
The embodiment of the application provides a processor, wherein the processor is used for running a program, and the program executes the configuration file updating method during running.
An embodiment of the present application provides a structure diagram of an electronic device, as shown in fig. 5, the electronic device includes at least one processor 501, at least one memory 502 connected to the processor 501, and a bus 503; the processor 501 and the memory 502 complete communication with each other through the bus 503; the processor 501 is used to call program instructions in the memory 502 to perform the above-described profile update method. The electronic device 50 herein may be a server, a PC, a PAD, a cell phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: detecting whether at least one first configuration file is updated or not, and if yes, sending an update notification for indicating that the first configuration file is updated to target equipment; receiving a downloading request sent by the target device based on the update notification, wherein the downloading request is used for requesting to download a second configuration file, and the second configuration file is a configuration file updated by the first configuration file; and sending the second configuration file to the target equipment based on the downloading request.
Optionally, before detecting whether there is at least one first configuration file update, update information is obtained, where the update information is used to indicate that the first configuration file is updated.
Optionally, before obtaining the update information, obtaining a user instruction; and judging whether the user corresponding to the user instruction has the authority of uploading the update information, if so, starting a program for acquiring the update information.
Optionally, after obtaining the update information, determining, based on the update information, application information corresponding to the second configuration file, where the application information includes at least one of: name information of the application program, version information of the application program and application environment information corresponding to the application program; determining the target device based on the application information.
Optionally, before sending an update notification indicating that the first configuration file is updated to the target device, the update status of the first configuration file is changed and stored.
Optionally, after the second configuration file is sent to the target device based on the download request, an update completion notification sent by the target device is received, where the update completion notification is used to indicate that the target device has updated the first configuration file in itself to the second configuration file.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for updating a configuration file, comprising:
detecting whether at least one first configuration file is updated or not, and if yes, sending an update notification for indicating that the first configuration file is updated to target equipment;
receiving a downloading request sent by the target device based on the update notification, wherein the downloading request is used for requesting to download a second configuration file, and the second configuration file is a configuration file updated by the first configuration file;
and sending the second configuration file to the target equipment based on the downloading request.
2. The method of claim 1, wherein before detecting whether there is at least one first profile update, the method further comprises:
and acquiring updating information, wherein the updating information is used for indicating to update the first configuration file.
3. The method of claim 2, wherein prior to obtaining the update information, the method further comprises:
acquiring a user instruction;
and judging whether the user corresponding to the user instruction has the authority of uploading the update information, if so, starting a program for acquiring the update information.
4. The method of claim 3, wherein after obtaining the update information, the method further comprises:
determining application information corresponding to the second configuration file based on the update information, wherein the application information includes at least one of: name information of the application program, version information of the application program and application environment information corresponding to the application program;
determining the target device based on the application information.
5. The method of claim 4, wherein prior to sending an update notification to a target device indicating that the first profile is updated, the method further comprises:
the update status of the first configuration file is changed and stored.
6. The method of claim 5, wherein after sending the second configuration file to the target device based on the download request, the method further comprises:
and receiving an update completion notification sent by the target device, wherein the update completion notification is used for indicating that the target device has updated the first configuration file in the target device to the second configuration file.
7. A profile update apparatus, comprising:
the device comprises a detection module, a configuration module and a configuration module, wherein the detection module is used for detecting whether at least one first configuration file is updated or not, and if yes, sending an update notification for indicating that the first configuration file is updated to target equipment;
a receiving module, configured to receive a download request sent by the target device based on the update notification, where the download request is used to request to download a second configuration file, and the second configuration file is a configuration file updated by the first configuration file;
a sending module, configured to send the second configuration file to the target device based on the download request.
8. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the configuration file updating method according to any one of claims 1 to 6.
9. A processor, configured to run a program, wherein the program when running performs the configuration file updating method of any one of claims 1 to 6.
10. An electronic device, comprising at least one processor, and at least one memory connected to the processor, a bus; the processor and the memory complete mutual communication through a bus; the processor is configured to call program instructions in the memory to perform the profile update method of any of claims 1 to 6.
CN201910944534.2A 2019-09-30 2019-09-30 Configuration file updating method and device Pending CN112579189A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910944534.2A CN112579189A (en) 2019-09-30 2019-09-30 Configuration file updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910944534.2A CN112579189A (en) 2019-09-30 2019-09-30 Configuration file updating method and device

Publications (1)

Publication Number Publication Date
CN112579189A true CN112579189A (en) 2021-03-30

Family

ID=75116885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910944534.2A Pending CN112579189A (en) 2019-09-30 2019-09-30 Configuration file updating method and device

Country Status (1)

Country Link
CN (1) CN112579189A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312072A (en) * 2021-06-11 2021-08-27 北京百度网讯科技有限公司 Configuration file updating method and device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IN2015CH02762A (en) * 2015-06-01 2015-07-17 Wipro Ltd
CN105871649A (en) * 2016-06-21 2016-08-17 上海帝联信息科技股份有限公司 Node server, service side and configuration file updating method thereof and updating control method
CN106603281A (en) * 2016-12-07 2017-04-26 乐视控股(北京)有限公司 Configuration file management method and system
CN109101381A (en) * 2018-08-02 2018-12-28 Oppo(重庆)智能科技有限公司 Configuration file update method, system, electronic equipment and storage medium
CN109697075A (en) * 2017-10-20 2019-04-30 北京京东尚科信息技术有限公司 File updating method, system and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IN2015CH02762A (en) * 2015-06-01 2015-07-17 Wipro Ltd
CN105871649A (en) * 2016-06-21 2016-08-17 上海帝联信息科技股份有限公司 Node server, service side and configuration file updating method thereof and updating control method
CN106603281A (en) * 2016-12-07 2017-04-26 乐视控股(北京)有限公司 Configuration file management method and system
CN109697075A (en) * 2017-10-20 2019-04-30 北京京东尚科信息技术有限公司 File updating method, system and device
CN109101381A (en) * 2018-08-02 2018-12-28 Oppo(重庆)智能科技有限公司 Configuration file update method, system, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312072A (en) * 2021-06-11 2021-08-27 北京百度网讯科技有限公司 Configuration file updating method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN107040578B (en) Data synchronization method, device and system
US9535754B1 (en) Dynamic provisioning of computing resources
CA3092722A1 (en) Data retention handling for data object stores
CN107294750B (en) Cloud cluster energy self-identification distributed configuration management method and device
CN109561128B (en) Data transmission method and device
CN106339273A (en) Application program restoration method, terminal and server
CN110888922A (en) Method and device for creating target table during data synchronization
CN111222592B (en) Method and device for acquiring two-dimensional code of equipment
CN113190286B (en) MES system, loading method, terminal and medium for dynamically and remotely loading functional plug-ins
CN113987401A (en) Recording method and device of network general log, storage medium and processor
CN112579189A (en) Configuration file updating method and device
CN112559118A (en) Application data migration method and device, electronic equipment and storage medium
CN114090268B (en) Container management method and container management system
CN110968421A (en) Cluster management method, device and system
CN115080309A (en) Data backup system, method, storage medium, and electronic device
CN113792275A (en) Password updating method and device, storage medium and electronic equipment
CN114327835A (en) Distributed task scheduling method and device, processor and electronic equipment
CN113656378A (en) Server management method, device and medium
CN109426559B (en) Command issuing method and device, storage medium and processor
CN111324374A (en) Application program registration method and device based on application performance management system
CN111307197B (en) Information recording method and management equipment
CN110633181B (en) Visual display method and device
US8825610B1 (en) System management based on goals relevant to a current state of a managed system
CN115599625A (en) Safety protection method, equipment and medium for small data center
CN110858848B (en) Correction method and device for task resources of cluster system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination