CN110928598A - System configuration method, device, computer equipment and storage medium - Google Patents

System configuration method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110928598A
CN110928598A CN201911095222.5A CN201911095222A CN110928598A CN 110928598 A CN110928598 A CN 110928598A CN 201911095222 A CN201911095222 A CN 201911095222A CN 110928598 A CN110928598 A CN 110928598A
Authority
CN
China
Prior art keywords
configuration
configuration information
center
server
item
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.)
Granted
Application number
CN201911095222.5A
Other languages
Chinese (zh)
Other versions
CN110928598B (en
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.)
Southern Power Grid Digital Grid Research Institute Co Ltd
CSG Finance Co Ltd
Original Assignee
Southern Power Grid Digital Grid Research Institute Co Ltd
CSG Finance 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 Southern Power Grid Digital Grid Research Institute Co Ltd, CSG Finance Co Ltd filed Critical Southern Power Grid Digital Grid Research Institute Co Ltd
Priority to CN201911095222.5A priority Critical patent/CN110928598B/en
Publication of CN110928598A publication Critical patent/CN110928598A/en
Application granted granted Critical
Publication of CN110928598B publication Critical patent/CN110928598B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to a system configuration method, a system configuration device, a computer device and a storage medium. The method further comprises the following steps: sending a query request to a configuration center; the query request comprises an identifier of a system to be configured; receiving configuration information sent by a configuration center; the method comprises the steps that a configuration center inquires from a configuration information table according to identifiers, and in the method, the corresponding relations between the identifiers of a plurality of systems and corresponding configuration information are stored in the configuration information table in advance; and configuring the system to be configured according to the configuration information. By adopting the method, the time cost of system configuration can be reduced, and the configuration efficiency is improved.

Description

System configuration method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a system configuration method and apparatus, a computer device, and a storage medium.
Background
With the development of internet technology, financial systems are integrated into the aspects of our lives, and great convenience is brought to the lives. In order to meet more demands of users, the financial system needs to configure new financial subsystems to provide more financial services.
The traditional method for configuring the system is that a configurator configures according to configuration files or parameters of the program and the system, or directly solidifies and defines the configuration files or parameters of the program and the system in a system program, and determines a required data source/component or other services according to the configuration files.
However, the conventional configuration method is inefficient in configuration.
Disclosure of Invention
In view of the above, it is necessary to provide a system configuration method, apparatus, computer device and storage medium capable of improving system configuration efficiency.
In a first aspect, the present application provides a system configuration method, including:
sending a query request to a configuration center; the query request comprises an identifier of a system to be configured;
receiving configuration information sent by a configuration center; the configuration information is obtained by inquiring a configuration center from a configuration information table according to the identification, and the configuration information table stores the corresponding relation between the identifications of the multiple systems and the corresponding configuration information in advance;
and configuring the system to be configured according to the configuration information.
In one embodiment, before sending the query request to the configuration center, the method further includes:
sending a broadcast signal carrying a system attribute data packet; the system attribute data packet at least comprises a port address, an IP address and path information of a system to be configured;
receiving a response signal sent by a configuration center; the response signal is a response signal returned by the configuration center after receiving the broadcast signal, and the response signal is used for indicating that the system to be configured and the configuration center are connected.
In one embodiment, the response signal is a reply signal returned by the configuration center through the ACT protocol.
In one embodiment, the configuration center includes a plurality of sub-configuration centers, and the configuration information table is stored in each of the sub-configuration centers.
In one embodiment, the configuration information includes a plurality of configuration items and corresponding configuration values, wherein one configuration item corresponds to at least one configuration value.
In one embodiment, configuring the system to be configured according to the configuration information includes:
inquiring whether a configuration item exists in a system to be configured or not to obtain an inquiry result;
and configuring the system to be configured according to the query result.
In one embodiment, configuring a system to be configured according to a query result includes:
if the query result is that the configuration item exists in the system to be configured, updating the configuration value corresponding to the configuration item;
and if the query result indicates that no configuration item exists in the system to be configured, increasing the configuration item and the corresponding configuration value.
In a second aspect, the present application provides a system configuration method, comprising:
receiving a query request sent by a server; the query request comprises an identifier of a system to be configured;
inquiring configuration information from a configuration information table according to the identification; the configuration information table pre-stores the corresponding relationship between the identifications of a plurality of systems and the corresponding configuration information;
sending the configuration information to a server; the configuration information is used for indicating the server to configure the system to be configured.
In one embodiment, before receiving the query request sent by the server, the method further includes:
receiving a broadcast signal which is sent by a server and carries a system attribute data packet; the system attribute data packet at least comprises a port address, an IP address and path information of a system to be configured;
sending a response signal to the server according to the broadcast signal; the response signal is used for indicating that the system to be configured and the configuration center have established connection.
In one embodiment, the response signal is a reply signal sent to the server via the ACT protocol.
In one embodiment, the configuration center includes a plurality of sub-configuration centers, and the configuration information table is stored in each of the sub-configuration centers.
In one embodiment, the configuration information includes a plurality of configuration items and corresponding configuration values, wherein one configuration item corresponds to at least one configuration value.
In one embodiment, the configuration information is used to instruct the system to be configured to perform configuration according to the configuration information, and includes:
if the system to be configured has the configuration item, the configuration information is used for indicating the system to be configured to update the configuration value corresponding to the configuration item;
and if the system to be configured does not have the configuration item, the configuration information is used for indicating the system to be configured to increase the configuration item and the corresponding configuration value.
In a third aspect, the present application provides a system configuration apparatus, comprising:
the first sending module is used for sending a query request to the configuration center; the query request comprises an identifier of a system to be configured;
the first receiving module is used for receiving configuration information sent by the configuration center; the configuration information is obtained by inquiring a configuration center from a configuration information table according to the identification, and the configuration information table stores the corresponding relation between the identifications of the multiple systems and the corresponding configuration information in advance;
and the configuration module is used for configuring the system to be configured according to the configuration information.
In a fourth aspect, the present application provides a system configuration apparatus, comprising:
the first receiving module is used for receiving the query request sent by the server; the query request comprises an identifier of a system to be configured;
the query module is used for querying the configuration information from the configuration information table according to the identification; the configuration information table pre-stores the corresponding relationship between the identifications of a plurality of systems and the corresponding configuration information;
the first sending module is used for sending the configuration information to the server; the configuration information is used for indicating the server to configure the system to be configured.
In a fifth aspect, the present application provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any one of the embodiments of the first or second aspect when executing the computer program.
In a sixth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the embodiments of the first or second aspects.
The system configuration method, the device, the computer equipment and the storage medium have the advantages that:
the server sends a query request to the configuration center, wherein the query request comprises an identifier of a system to be configured; and the server receives configuration information which is obtained by the configuration center according to the identification and inquired from the configuration information table, and configures the system to be configured according to the configuration information. In the method, the corresponding relation between the identifications of the systems and the corresponding configuration information is pre-stored in the configuration information table, the corresponding configuration information is obtained for configuration according to the identification of the system to be configured, manual participation is not needed in the configuration process, the error probability is reduced, and the success rate of system configuration is improved. And the server performs configuration according to the configuration information background without influencing the normal operation of the system, and the server can be put into use without shutdown and restart after the configuration is finished, so that the time cost of system configuration is reduced, and the configuration efficiency is improved.
Drawings
FIG. 1 is a diagram of an application environment of a system configuration method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a system configuration method provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of another system configuration method provided in an embodiment of the present application;
FIG. 4 is a schematic flow chart diagram of another system configuration method provided in an embodiment of the present application;
FIG. 5 is a schematic flow chart diagram of another system configuration method provided in an embodiment of the present application;
FIG. 6 is a schematic flow chart diagram illustrating another system configuration method provided in an embodiment of the present application;
fig. 7 is a block diagram of a system configuration apparatus provided in an embodiment of the present application;
FIG. 8 is a block diagram of another system configuration apparatus provided in an embodiment of the present application;
FIG. 9 is a block diagram of another system configuration apparatus provided in an embodiment of the present application;
FIG. 10 is a block diagram of another system configuration apparatus provided in an embodiment of the present application;
FIG. 11 is a block diagram of another system configuration apparatus provided in an embodiment of the present application;
FIG. 12 is a block diagram of another system configuration apparatus provided in an embodiment of the present application;
fig. 13 is an internal structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The system configuration method provided by the application can be applied to the application environment shown in fig. 1, and the application environment comprises a system to be configured and a configuration center. The system to be configured and the configuration center may be deployed on the same computer device, or may be deployed on different computer devices, respectively, where the computer devices may be servers or terminals, and fig. 1 provides an application environment in which the system to be configured and the configuration center are deployed on the same computer device. The system to be configured may include a processor, a memory, a network interface, and a database connected by a system bus, the configuration center may also include a processor, a memory, a network interface, and a database connected by a system bus, and the system to be configured and the configuration center may share one database.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The following describes in detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by embodiments and with reference to the drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. It should be noted that, in the system configuration method provided in the embodiments of fig. 2 to fig. 6 of the present application, the execution subject may be a system to be configured, or may be a configuration center. The system to be configured may also become part or all of the system configuration server through software, hardware, or a combination of software and hardware, and the configuration center may become part or all of the system configuration server through software, hardware, or a combination of software and hardware. The system to be configured and the configuration center can be deployed in the same system configuration server.
In one embodiment, as shown in fig. 2, a system configuration method is provided, which is exemplified by the method applied to the system to be configured in fig. 1, and includes the following steps:
s201, sending a query request to a configuration center; the query request includes an identification of the system to be configured.
The query request is used for acquiring configuration information of the system to be configured.
In this embodiment, after the system to be configured establishes a connection with the configuration center, the server calls the system to be configured to send a query request to the configuration center, so as to obtain the configuration information of the system to be configured. Optionally, the query request includes an identifier of the system to be configured, where the system identifier indicates a type of the system to be configured, for example, the financial system number is 001, the operating system number is 002, and the application system 003, and if the identifier of the system to be configured in the query request sent by the server is 001, the system to be configured is the financial system. Optionally, the query request may further include a sending time, an IP address of the server, a port number, and the like.
S202, receiving configuration information sent by a configuration center; the configuration information is obtained by the configuration center according to the identification and inquired from a configuration information table, and the configuration information table stores the corresponding relation between the identifications of the multiple systems and the corresponding configuration information in advance.
In this embodiment, the server sends the query request to the configuration center, instructs the configuration center to query the corresponding configuration information from the configuration information table according to the identifier, and returns the configuration information to the server. Optionally, the configuration information table pre-stores the correspondence between the identifiers of the multiple systems and the corresponding configuration information, and the configuration information corresponding to the system to be configured may be queried according to the correspondence. For example, the configuration information table pre-stores the configuration information corresponding to the financial system, the operating system, and the application system, and the query request indicates the configuration center to determine the type of the system to be configured according to the identifier, so as to query the corresponding configuration information.
And S203, configuring the system to be configured according to the configuration information.
In this embodiment, the server receives the configuration information sent by the configuration center, and configures the system to be configured according to the configuration information, where the configuration process may be to replace or add a configuration value corresponding to a configuration item in the system to be configured. The whole configuration process is carried out in the background, the normal operation of the system is not influenced, and the newly added subsystem can be used after the configuration is finished.
In the system configuration method provided by the application, a server sends a query request to a configuration center, wherein the query request comprises an identifier of a system to be configured; and the server receives configuration information which is obtained by the configuration center according to the identification and inquired from the configuration information table, and configures the system to be configured according to the configuration information. In the method, the corresponding relation between the identifications of the systems and the corresponding configuration information is pre-stored in the configuration information table, the corresponding configuration information is obtained for configuration according to the identification of the system to be configured, manual participation is not needed in the configuration process, the error probability is reduced, and the success rate of system configuration is improved. And the server performs configuration according to the configuration information table without influencing the normal operation of the system, and can be put into use without shutdown and restart after the configuration is finished, thereby reducing the time cost of system configuration and improving the configuration efficiency.
On the basis of the embodiment shown in fig. 2, before the server sends the query request and obtains the configuration information from the configuration center, the system to be configured needs to establish a connection with the configuration center. As shown in fig. 3, the process of establishing connection between the system to be configured and the configuration center includes the following steps:
s301, sending a broadcast signal carrying a system attribute data packet.
The broadcast signal is used for searching the configuration center and establishing connection with the configuration center. Optionally, the system attribute data packet at least includes a port address, an IP address, and path information of the system to be configured.
In this embodiment, each time the server is started to perform initialization, the server may send a broadcast signal to search the configuration center, or a query period is preset, and the server sends a broadcast signal once every period. The server calls the system to be configured to send the broadcast signal carrying the system attribute data packet to the gateway, the broadcast signal is sent to each server through the gateway, and when the configuration center in the server receives the broadcast signal, the system attribute data packet comprises the port address, the IP address and the path information of the system to be configured and is used for establishing connection between the system to be configured and the configuration center. Optionally, the system attribute data packet may further include a transmission time of the broadcast signal, an IP of the server, a service component of the system to be configured, a service type, and the like.
S302, receiving a response signal sent by the configuration center.
The response signal is a response signal returned by the configuration center after receiving the broadcast signal, and the response signal is used for indicating that the system to be configured and the configuration center are connected.
In this embodiment, the server sends a broadcast signal to search the configuration center, where the broadcast signal is used to instruct the configuration center to establish a connection with the system to be configured according to the port address, the IP address, and the path information of the system to be configured in the system attribute data packet. The server receives a response signal returned by the configuration center according to the broadcast signal, which indicates that the configuration center has received the broadcast signal sent by the server and indicates that the system to be configured has established connection with the configuration center, so that interaction of data and information can be realized. Optionally, the response signal is a response signal returned by the configuration center through the ACT protocol.
According to the system configuration method, the server sends the data packet carrying the system attribute to search the configuration center every time the server starts initialization or after a preset query period, and when the server receives a response signal returned by the configuration center according to the broadcast signal, the server indicates that the system to be configured and the configuration center are in contact. The system to be configured is connected with the configuration center in advance, conditions are provided for interaction of data and information between the system to be configured and the configuration center, and a server can conveniently obtain configuration information of the system to be configured. Response signals are returned by utilizing the advantage of autonomous controllability of the ACT protocol, and the efficiency of data interaction is greatly improved.
On the basis of the embodiments shown in fig. 2 to fig. 3, the configuration information is distributively stored in each configuration center through the information configuration table, optionally, the configuration center includes a plurality of sub-configuration centers, and the configuration information table is respectively stored in each sub-configuration center.
In this embodiment, the configuration center includes a plurality of sub-configuration centers, and after the development of a new subsystem is completed, the configuration information is stored in each sub-configuration center in a distributed manner through the configuration information table, and all the configuration information of the system to be configured can be queried through the configuration information table. Optionally, the configuration information includes a plurality of configuration items and corresponding configuration values, and one configuration item corresponds to at least one configuration value. For example, the configuration items included in the configuration information may be an IP address of a data source, a network transmission port number, an access path, a program start item, and an operating system tuning item. The configuration item and the corresponding configuration value form a key value pair, for example, addr ═ 192.168.137.11, which is not limited in the embodiment of the present application. The configuration information can be stored in each sub-configuration center through the configuration information table, and can also be stored in other servers, and all the configuration information of the system to be configured can be inquired through the configuration information table.
According to the system configuration method, the configuration information tables are respectively stored in the sub-configuration centers, the configuration information is prevented from being stored in a single server, too much storage space is occupied, normal operation of the server is influenced, and pressure borne by the server is reduced.
Further, the server receives the configuration information sent by the configuration center, queries whether the system to be configured has a configuration item according to the configuration information to obtain a query result, and configures the system to be configured according to the query result. As shown in fig. 4, a specific configuration process of the system to be configured is explained.
S401, inquiring whether a configuration item exists in the system to be configured or not to obtain an inquiry result.
The query result comprises two conditions that the configuration item exists in the system to be configured and the configuration item does not exist in the system to be configured.
In this embodiment, the server receives configuration information sent by the configuration center, where the configuration information includes a plurality of configuration items and corresponding configuration values. When the system to be configured is configured, some configuration items are optimized and some configuration items are newly added for providing new application services, so that when the system to be configured is configured, whether the configuration items exist in the system to be configured is firstly inquired to obtain an inquiry result. For example, when the server configures the program startup item, it will first query whether the program startup item exists in the system to be configured.
S402, configuring the system to be configured according to the query result.
In this embodiment, when the server configures each configuration item in the configuration information, it is required to query whether a corresponding configuration item exists in the system to be configured, and configure the system to be configured according to a query result. If the server inquires that the configuration item exists in the system to be configured, the server replaces the original configuration value according to the configuration value corresponding to the configuration item in the configuration information, and if the inquiry result indicates that the configuration item does not exist in the system to be configured, the configuration item and the corresponding configuration value are added. As described in the same example above, the configuration information includes configuration items: when the operating system tuning item is configured, if the operating system tuning item exists in the system to be configured, the original configuration value is updated according to the configuration information, and if the operating system tuning item does not exist in the system to be configured, the operating system tuning item of the configuration item and the corresponding configuration value are increased.
According to the system configuration method, when the server configures the system to be configured according to the configuration information, whether the configuration item exists in the system to be configured is inquired to obtain an inquiry result, and configuration is carried out according to the inquiry result. If the query result indicates that the configuration item exists in the system to be configured, updating a configuration value corresponding to the configuration item; and if the query result indicates that no configuration item exists in the system to be configured, increasing the configuration item and the corresponding configuration value. The whole configuration process is carried out in the background, and due to the fact that configuration is complex, manual configuration is prone to errors, configuration is carried out automatically according to the query result, configuration accuracy is guaranteed, and the success rate of system configuration is improved.
In one embodiment, as shown in fig. 5, another system configuration method is provided, which is described by taking the implementation subject as a configuration center as an example, and comprises the following steps:
s501, receiving a query request sent by a server; the query request includes an identification of the system to be configured.
The query request is used for acquiring configuration information of the system to be configured.
In this embodiment, after the configuration center establishes a connection with the system to be configured, the configuration center receives a query request sent by the server, and requests to acquire configuration information of the system to be configured. Optionally, the query request includes an identifier of the system to be configured, where the system identifier indicates a type of the system to be configured, for example, the financial system number is 001, the operating system number is 002, and the application system 003, and if the identifier of the system to be configured in the query request sent by the server is 001, the system to be configured is the financial system. The query request may further include a sending time, an IP address of the server, a port number, and the like.
S502, inquiring configuration information from a configuration information table according to the identification; the configuration information table stores in advance the correspondence between the identifiers of the plurality of systems and the corresponding configuration information.
In this embodiment, the configuration center receives the query request, queries corresponding configuration information according to the correspondence between the system identifier and the configuration information in the configuration information table, and sends the configuration information to the server. Optionally, the configuration information table pre-stores the correspondence between the identifiers of the multiple systems and the corresponding configuration information, and the configuration information corresponding to the system to be configured may be queried according to the correspondence. For example, the configuration information table pre-stores the configuration information corresponding to the financial system, the operating system, and the application system, and the configuration center determines the type of the system to be configured according to the identifier, and then queries the corresponding configuration information.
S503, sending the configuration information to a server; the configuration information is used for indicating the server to configure the system to be configured.
In this embodiment, the configuration center queries the configuration information of the system to be configured according to the identifier, and sends the configuration information to the server, and instructs the server to configure the system to be configured according to the configuration information, so as to replace or increase the configuration value corresponding to the configuration item in the system to be configured.
According to the system configuration method, a configuration center receives a query request sent by a server; the query request comprises an identifier of a system to be configured; inquiring configuration information from a configuration information table according to the identification; and sending the configuration information to a server. In the method, the corresponding relation between the identifications of the multiple systems and the corresponding configuration information is pre-stored in the configuration information table, the configuration information of the system to be configured is inquired according to the identifications, the configuration information is used for indicating the system to be configured, manual participation is not needed in the configuration process, the error probability is reduced, and the success rate of system configuration is improved. And the whole configuration process is operated in the background, the normal operation of the system is not influenced, the system can be put into use without shutdown and restart after the configuration is finished, the time cost of the system configuration is reduced, and the configuration efficiency is improved.
On the basis of the embodiment shown in fig. 5, before the configuration center receives the query request sent by the server, the configuration center needs to establish a connection with the system to be configured. As shown in fig. 6, the step of establishing a connection between the configuration center and the system to be configured specifically includes the following steps:
s601, receiving a broadcast signal carrying a system attribute data packet sent by a server.
The broadcast signal is used for searching the configuration center and establishing connection between the system to be configured and the configuration center. Optionally, the system attribute data packet at least includes a port address, an IP address, and path information of the system to be configured.
In this embodiment, the broadcast signal is sent once each time the server is started to perform initialization, or an inquiry period is preset, and the server sends the broadcast signal once every period. The configuration center receives the broadcast signal which is transmitted by the gateway and carries the system attribute data packet, and establishes connection with the system to be configured according to the related information of the system to be configured in the system attribute data packet carried by the broadcast signal. Optionally, the system attribute data packet may further include a transmission time of the broadcast signal, an IP of the server, a service component of the system to be configured, a service type, and the like.
And S602, sending a response signal to the server according to the broadcast signal.
Wherein, the response signal is a response signal fed back to the server according to the broadcast signal, and the response signal is used for indicating that the connection with the server is established.
In this embodiment, the configuration center receives a broadcast signal sent by the server through the system to be configured, establishes a connection with the system to be configured according to the port address, the IP address, and the path information of the system to be configured in the system attribute data packet carried in the broadcast signal, and feeds back a response signal to the server. The configuration center indicates that the broadcast signal sent by the server is received according to the response signal returned by the broadcast signal, and establishes connection with the configuration center, so that interaction of data and information can be realized. Optionally, the response signal is a response signal returned by the configuration center through the ACT protocol.
According to the system configuration method, the configuration center receives the broadcast signals sent by the server, establishes contact with the system to be configured according to the system attribute data packets carried by the broadcast signals, and sends response signals to the server. The configuration center establishes connection with the system to be configured in advance, conditions are provided for interaction of data and information between the configuration center and the system to be configured, and a server can conveniently obtain configuration information of the system to be configured. Response signals are returned by utilizing the advantage of autonomous controllability of the ACT protocol, and the efficiency of data interaction is greatly improved.
On the basis of the embodiments shown in fig. 5 to fig. 6, the configuration information is distributively stored in each configuration center through the information configuration table, optionally, the configuration center includes a plurality of sub-configuration centers, and the configuration information table is respectively stored in each sub-configuration center.
In this embodiment, the configuration center includes a plurality of sub-configuration centers, and after the development of a new subsystem is completed, the configuration information is stored in each sub-configuration center in a distributed manner through the configuration information table, and all the configuration information of the system to be configured can be queried through the configuration information table. Optionally, the configuration information includes a plurality of configuration items and corresponding configuration values, and one configuration item corresponds to at least one configuration value. For example, the configuration items included in the configuration information may be an IP address of a data source, a network transmission port number, an access path, a program start item, and an operating system tuning item. The configuration item and the corresponding configuration value form a key value pair, for example, addr ═ 192.168.137.11, which is not limited in the embodiment of the present application. The configuration information can be stored in each sub-configuration center through the configuration information table, and can also be stored in other servers, and all the configuration information of the system to be configured can be inquired through the configuration information table.
According to the system configuration method, the configuration information tables are respectively stored in the sub-configuration centers, the configuration information is prevented from being stored in a single server, too much storage space is occupied, normal operation of the server is influenced, and pressure borne by the server is reduced.
Further, the configuration center sends the configuration information to the server, and instructs the server to configure the system to be configured. The configuration information comprises a plurality of configuration items and corresponding configuration values, the server inquires whether the system to be configured has the configuration items or not to obtain an inquiry result, and configuration is carried out according to the inquiry result. The query result comprises two conditions that the configuration item exists in the system to be configured and the configuration item does not exist in the system to be configured.
In this embodiment, when the configuration information indicates that the server performs configuration according to each configuration item in the configuration information, it is required to query whether a corresponding configuration item exists in the system to be configured, and configure the system to be configured according to a query result. Optionally, if the configuration item exists in the system to be configured, the configuration information is used to indicate the system to be configured to update the configuration value corresponding to the configuration item; if the configuration item exists in the system to be configured, replacing the original configuration value with the configuration value corresponding to the configuration item in the configuration information, and optimizing the configuration item. Optionally, if the configuration item does not exist in the system to be configured, the configuration information is used to instruct the system to be configured to add the configuration item and the corresponding configuration value; if the configuration item does not exist in the system to be configured, the configuration item and the corresponding configuration value are added, and new application service is provided. For example, the configuration information includes a configuration item operating system tuning item and a corresponding configuration value, when the operating system tuning item is configured, if it is found that the operating system tuning item exists in the system to be configured, the original configuration value is updated according to the configuration information, and if it is found that the operating system tuning item does not exist in the system to be configured, the configuration item operating system tuning item and the corresponding configuration value are added.
According to the system configuration method, the configuration information indicates the server to configure the system to be configured, and whether the configuration item exists in the system to be configured is inquired. If the configuration item exists in the system to be configured, updating a configuration value corresponding to the configuration item; and if the configuration item does not exist in the system to be configured, increasing the configuration item and the corresponding configuration value. The whole configuration process is carried out in the background, and due to the fact that configuration is complex, manual configuration is prone to errors, configuration is carried out automatically according to configuration information, accuracy of configuration is guaranteed, and success rate of system configuration is improved.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, there is provided a system configuration apparatus 700, comprising: a first sending module 701, a first receiving module 702, and a configuration module 703, wherein:
a first sending module 701, configured to send a query request to a configuration center; the query request comprises an identifier of a system to be configured;
a first receiving module 702, configured to receive configuration information sent by a configuration center; the configuration information is obtained by inquiring a configuration center from a configuration information table according to the identification, and the configuration information table stores the corresponding relation between the identifications of the multiple systems and the corresponding configuration information in advance;
the configuration module 703 is configured to configure the system to be configured according to the configuration information.
In one embodiment, as shown in fig. 8, the apparatus 700 further comprises:
a second sending module 704, configured to send a broadcast signal carrying a system attribute data packet;
a second receiving module 705, configured to receive a response signal sent by the configuration center.
In one embodiment, the response signal is an acknowledgement signal returned by the configuration center via the ACT protocol.
In one embodiment, the configuration center includes a plurality of sub-configuration centers, and the configuration information table is stored in each of the sub-configuration centers.
In one embodiment, the configuration information includes a plurality of configuration items and corresponding configuration values, wherein one configuration item corresponds to at least one configuration value.
In one embodiment, as shown in fig. 9, the configuration module 703 includes:
a querying unit 7031, configured to query whether a configuration item exists in the system to be configured, so as to obtain a query result;
a configuration unit 7032, configured to configure the system to be configured according to the query result.
In an embodiment, if the query result indicates that a configuration item exists in the system to be configured, the configuration unit 7032 is specifically configured to update a configuration value corresponding to the configuration item;
if the query result indicates that no configuration item exists in the system to be configured, the configuration unit 7032 is specifically configured to add the configuration item and the corresponding configuration value.
In one embodiment, as shown in fig. 10, another system configuration apparatus 1000 is provided, comprising: a first receiving module 1001, a querying module 1002 and a first sending module 1003, wherein:
a first receiving module 1001, configured to receive an inquiry request sent by a server; the query request comprises an identifier of a system to be configured;
a query module 1002, configured to query configuration information from the configuration information table according to the identifier; the configuration information table pre-stores the corresponding relationship between the identifications of a plurality of systems and the corresponding configuration information;
a first sending module 1003, configured to send the configuration information to the server; the configuration information is used for indicating the server to configure the system to be configured.
In one embodiment, as shown in fig. 11, the apparatus 1000 further comprises:
a second receiving module 1004, configured to receive a broadcast signal carrying a system attribute data packet sent by a server;
a second sending module 1005, configured to send a response signal to the server according to the broadcast signal.
In one embodiment, the response signal is a reply signal sent to the server via the ACT protocol.
In one embodiment, the configuration center includes a plurality of sub-configuration centers, and the configuration information table is stored in each of the sub-configuration centers.
In one embodiment, the configuration information includes a plurality of configuration items and corresponding configuration values, wherein one configuration item corresponds to at least one configuration value.
In one embodiment, as shown in fig. 12, the first sending module 1003 includes:
an updating unit 1003a, configured to, if a configuration item exists in the system to be configured, indicate, by the configuration information, that the system to be configured updates a configuration value corresponding to the configuration item;
the adding unit 1003b is configured to, if the configuration item does not exist in the system to be configured, instruct the system to be configured to add the configuration item and the corresponding configuration value.
The implementation principle and technical effect of all the embodiments of the system configuration apparatus are similar to those of the embodiments corresponding to the system configuration method, and are not described herein again.
For specific limitations of the system configuration apparatus, reference may be made to the above limitations of the system configuration method, which will not be described herein again. The respective modules in the above system configuration apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 13. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a system configuration method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 13 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
sending a query request to a configuration center; the query request comprises an identifier of a system to be configured;
receiving configuration information sent by a configuration center; the configuration information is obtained by inquiring a configuration center from a configuration information table according to the identification, and the configuration information table stores the corresponding relation between the identifications of the multiple systems and the corresponding configuration information in advance;
and configuring the system to be configured according to the configuration information.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
sending a query request to a configuration center; the query request comprises an identifier of a system to be configured;
receiving configuration information sent by a configuration center; the configuration information is inquired from the configuration information table by the configuration center according to the identification; the configuration information table pre-stores the corresponding relationship between the identifications of a plurality of systems and the corresponding configuration information;
and configuring the system to be configured according to the configuration information.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (17)

1. A method of system configuration, the method comprising:
sending a query request to a configuration center; the query request comprises an identifier of a system to be configured;
receiving configuration information sent by the configuration center; the configuration information is obtained by the configuration center according to the identification and inquired from a configuration information table, and the configuration information table stores the corresponding relation between the identification of a plurality of systems and the configuration information in advance;
and configuring the system to be configured according to the configuration information.
2. The method of claim 1, wherein prior to sending the query request to the configuration center, the method further comprises:
sending a broadcast signal carrying a system attribute data packet; the system attribute data packet at least comprises a port address, an IP address and path information of the system to be configured;
receiving a response signal sent by the configuration center; the response signal is a response signal returned by the configuration center after receiving the broadcast signal, and the response signal is used for indicating that the system to be configured and the configuration center are connected.
3. The method of claim 2, wherein the response signal is a reply signal returned by the configuration center via an ACT protocol.
4. A method according to any one of claims 1 to 3, wherein the configuration center comprises a plurality of sub-configuration centers, and the configuration information table is stored in each of the sub-configuration centers.
5. The method according to any one of claims 1-3, wherein the configuration information comprises a plurality of configuration items and corresponding configuration values, wherein one configuration item corresponds to at least one configuration value.
6. The method according to claim 5, wherein the configuring the system to be configured according to the configuration information comprises:
inquiring whether the system to be configured has the configuration item to obtain an inquiry result;
and configuring the system to be configured according to the query result.
7. The method according to claim 6, wherein the configuring the system to be configured according to the query result comprises:
if the query result indicates that the configuration item exists in the system to be configured, updating a configuration value corresponding to the configuration item;
and if the query result indicates that the configuration item does not exist in the system to be configured, increasing the configuration item and the corresponding configuration value.
8. A method of system configuration, the method comprising:
receiving a query request sent by a server; the query request comprises an identifier of a system to be configured;
inquiring configuration information from a configuration information table according to the identification; the configuration information table pre-stores the corresponding relationship between the identifications of a plurality of systems and the corresponding configuration information;
sending the configuration information to a server; the configuration information is used for indicating the server to configure the system to be configured.
9. The method of claim 1, wherein before receiving the query request sent by the server, the method further comprises:
receiving a broadcast signal which is sent by the server and carries a system attribute data packet; the system attribute data packet at least comprises a port address, an IP address and path information of the system to be configured;
sending a response signal to the server according to the broadcast signal; the response signal is used for indicating that the system to be configured and the configuration center are connected.
10. The method of claim 9, wherein the response signal is a reply signal sent to the server via an ACT protocol.
11. The method according to any one of claims 8 to 10, wherein the configuration center comprises a plurality of sub-configuration centers, and the configuration information table is stored in each of the sub-configuration centers.
12. The method according to any one of claims 9-10, wherein the configuration information comprises a plurality of configuration items and corresponding configuration values, wherein one configuration item corresponds to at least one configuration value.
13. The method according to claim 12, wherein the configuration information is used to instruct the system to be configured to perform configuration according to the configuration information, and includes:
if the configuration item exists in the system to be configured, the configuration information is used for indicating the system to be configured to update the configuration value corresponding to the configuration item;
if the configuration item does not exist in the system to be configured, the configuration information is used for indicating the system to be configured to add the configuration item and the corresponding configuration value.
14. A system configuration apparatus, the apparatus comprising:
the first sending module is used for sending a query request to the configuration center; the query request comprises an identifier of a system to be configured;
the first receiving module is used for receiving the configuration information sent by the configuration center; the configuration information is obtained by the configuration center according to the identification and inquired from a configuration information table, and the configuration information table stores the corresponding relation between the identifications of a plurality of systems and the corresponding configuration information in advance;
and the configuration module is used for configuring the system to be configured according to the configuration information.
15. A system configuration apparatus, the apparatus comprising:
the first receiving module is used for receiving the query request sent by the server; the query request comprises an identifier of a system to be configured;
the query module is used for querying the configuration information from the configuration information table according to the identification; the configuration information table pre-stores the corresponding relationship between the identifications of a plurality of systems and the corresponding configuration information;
the first sending module is used for sending the configuration information to a server; the configuration information is used for indicating the server to configure the system to be configured.
16. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the system configuration method of any one of claims 1 to 7.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the system configuration method according to any one of claims 1 to 7.
CN201911095222.5A 2019-11-11 2019-11-11 System configuration method, device, computer equipment and storage medium Active CN110928598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911095222.5A CN110928598B (en) 2019-11-11 2019-11-11 System configuration method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911095222.5A CN110928598B (en) 2019-11-11 2019-11-11 System configuration method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110928598A true CN110928598A (en) 2020-03-27
CN110928598B CN110928598B (en) 2024-01-30

Family

ID=69853783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911095222.5A Active CN110928598B (en) 2019-11-11 2019-11-11 System configuration method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110928598B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116155730A (en) * 2022-09-26 2023-05-23 马上消费金融股份有限公司 Configuration updating method and device, electronic equipment and computer readable storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100841918B1 (en) * 2007-05-04 2008-06-27 가온미디어 주식회사 Integrated brodacasting signal distribution system connected with internet
JP2014167732A (en) * 2013-02-28 2014-09-11 Video Research:Kk Information display system, method, apparatus, and program
CN105701099A (en) * 2014-11-25 2016-06-22 阿里巴巴集团控股有限公司 Method and device used for executing task in distributed environment, and distributed task execution system
CN107197024A (en) * 2017-06-09 2017-09-22 努比亚技术有限公司 Single table access and control method, user terminal, server and storage medium
CN108064071A (en) * 2018-02-13 2018-05-22 广东欧珀移动通信有限公司 Method for connecting network, device, storage medium and electronic equipment
CN108376154A (en) * 2018-02-07 2018-08-07 平安普惠企业管理有限公司 System base table synchronous method, device, computer equipment and storage medium
CN108563768A (en) * 2018-04-19 2018-09-21 中国平安财产保险股份有限公司 Data transfer device, device, equipment and the storage medium of different data model
CN108664274A (en) * 2017-03-27 2018-10-16 中兴通讯股份有限公司 Implementation method, system and the device of operating system initialization configuration
CN109245928A (en) * 2018-09-12 2019-01-18 广州视源电子科技股份有限公司 Setting method and device, the terminal management system of configuration information
CN109388625A (en) * 2018-10-11 2019-02-26 北京小米智能科技有限公司 The method and device of configuration file is handled in more distributed file systems
CN109474456A (en) * 2018-09-26 2019-03-15 中国平安人寿保险股份有限公司 Configuration data processing method, device, computer equipment and storage medium
CN109683998A (en) * 2017-10-19 2019-04-26 北京京东尚科信息技术有限公司 Internationalize implementation method, device and system
US20190149410A1 (en) * 2016-06-16 2019-05-16 Google Llc Secure configuration of cloud computing nodes
CN109862096A (en) * 2019-01-31 2019-06-07 网宿科技股份有限公司 A kind of application configuration method, configuration management system and terminal
CN110059110A (en) * 2019-04-12 2019-07-26 北京百度网讯科技有限公司 Business datum security processing, device, computer equipment and storage medium
CN110286823A (en) * 2019-06-20 2019-09-27 西安西拓电气股份有限公司 Information processing method and device

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100841918B1 (en) * 2007-05-04 2008-06-27 가온미디어 주식회사 Integrated brodacasting signal distribution system connected with internet
JP2014167732A (en) * 2013-02-28 2014-09-11 Video Research:Kk Information display system, method, apparatus, and program
CN105701099A (en) * 2014-11-25 2016-06-22 阿里巴巴集团控股有限公司 Method and device used for executing task in distributed environment, and distributed task execution system
US20190149410A1 (en) * 2016-06-16 2019-05-16 Google Llc Secure configuration of cloud computing nodes
CN108664274A (en) * 2017-03-27 2018-10-16 中兴通讯股份有限公司 Implementation method, system and the device of operating system initialization configuration
CN107197024A (en) * 2017-06-09 2017-09-22 努比亚技术有限公司 Single table access and control method, user terminal, server and storage medium
CN109683998A (en) * 2017-10-19 2019-04-26 北京京东尚科信息技术有限公司 Internationalize implementation method, device and system
CN108376154A (en) * 2018-02-07 2018-08-07 平安普惠企业管理有限公司 System base table synchronous method, device, computer equipment and storage medium
CN108064071A (en) * 2018-02-13 2018-05-22 广东欧珀移动通信有限公司 Method for connecting network, device, storage medium and electronic equipment
CN108563768A (en) * 2018-04-19 2018-09-21 中国平安财产保险股份有限公司 Data transfer device, device, equipment and the storage medium of different data model
CN109245928A (en) * 2018-09-12 2019-01-18 广州视源电子科技股份有限公司 Setting method and device, the terminal management system of configuration information
CN109474456A (en) * 2018-09-26 2019-03-15 中国平安人寿保险股份有限公司 Configuration data processing method, device, computer equipment and storage medium
CN109388625A (en) * 2018-10-11 2019-02-26 北京小米智能科技有限公司 The method and device of configuration file is handled in more distributed file systems
CN109862096A (en) * 2019-01-31 2019-06-07 网宿科技股份有限公司 A kind of application configuration method, configuration management system and terminal
CN110059110A (en) * 2019-04-12 2019-07-26 北京百度网讯科技有限公司 Business datum security processing, device, computer equipment and storage medium
CN110286823A (en) * 2019-06-20 2019-09-27 西安西拓电气股份有限公司 Information processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116155730A (en) * 2022-09-26 2023-05-23 马上消费金融股份有限公司 Configuration updating method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN110928598B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN110727499A (en) Resource data acquisition method and device, computer equipment and storage medium
CN111770169B (en) Method, device, equipment and storage medium for upgrading equipment firmware
CN107317830B (en) Service discovery processing method and device
CN110555041A (en) Data processing method, data processing device, computer equipment and storage medium
CN111343236A (en) Method, device and communication system for communication between server and client
CN112468540B (en) Cloud platform-based data distribution method, equipment and medium
CN111984271B (en) Block chain application program processing method and device and block chain application system
WO2022222438A1 (en) Profile state synchronization method and apparatus, terminal, server, and storage medium
CN110825400B (en) Certificate updating method and system of application program client
CN112068818A (en) Service interaction method and device, computer equipment and storage medium
CN110971702A (en) Service calling method and device, computer equipment and storage medium
CN111464521A (en) Method, device, computer equipment and storage medium for preventing domain name from being hijacked
CN110163003B (en) Password management method and device
CN111813826A (en) WHOIS query method, system and storage medium
CN110928598B (en) System configuration method, device, computer equipment and storage medium
CN113612814A (en) Method, device, terminal and storage medium for screening session information
CN111314221A (en) Service processing method, device, equipment and computer readable storage medium
CN109445988B (en) Heterogeneous disaster recovery method, device, system, server and disaster recovery platform
US20170195426A1 (en) Maintaining session across plural providing devices
EP3435626B1 (en) Table connection method in distributed database system, and distributed database system
CN112685613B (en) Resource package query method and device and information processing system
CN110888901B (en) System management method, device, computer equipment and storage medium
WO2021103644A1 (en) Data structure, communication method and apparatus, storage medium and device
CN108733805B (en) File interaction method, system, computer equipment and storage medium
CN113992735A (en) MQTT connection system, connection method thereof, server and storage medium

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
GR01 Patent grant
GR01 Patent grant