CN110099096B - Application program configuration method, device, computer equipment and storage medium - Google Patents

Application program configuration method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110099096B
CN110099096B CN201910185044.9A CN201910185044A CN110099096B CN 110099096 B CN110099096 B CN 110099096B CN 201910185044 A CN201910185044 A CN 201910185044A CN 110099096 B CN110099096 B CN 110099096B
Authority
CN
China
Prior art keywords
address
preset
preset database
addresses
password
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.)
Active
Application number
CN201910185044.9A
Other languages
Chinese (zh)
Other versions
CN110099096A (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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910185044.9A priority Critical patent/CN110099096B/en
Publication of CN110099096A publication Critical patent/CN110099096A/en
Application granted granted Critical
Publication of CN110099096B publication Critical patent/CN110099096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses an application program configuration method, an application program configuration device, computer equipment and a storage medium, wherein the method comprises the steps of generating a corresponding display page if a file package installation request is received; if a data submitting instruction is received, acquiring an IP address, a password associated with the IP address and a file packet address in each input box group; judging whether all IP addresses and passwords respectively associated with each IP address are correspondingly present in a preset database, if so, analyzing the file packet address associated with each IP address to determine a corresponding file packet; and sending each file packet to a target server corresponding to the corresponding IP address for configuration. According to the invention, the application program is configured for a plurality of servers simultaneously through multiple threads, so that the rapid and accurate configuration of the application program can be realized, and the working efficiency and the use experience of a user are improved.

Description

Application program configuration method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for configuring an application program, a computer device, and a storage medium.
Background
Currently, as the volume of user traffic increases, the types increase, requiring multiple servers to form a server cluster to process the corresponding data, thereby relieving the pressure of a single server. However, when the user needs to deploy codes of application programs on a plurality of servers, because the IP addresses of different servers are not the same, and the addresses of the up-passage code file packages are not necessarily the same, the user is required to repeatedly and manually operate the different servers, which not only wastes time, reduces the corresponding deployment efficiency, but also is easy to make mistakes.
Disclosure of Invention
The embodiment of the invention provides an application program configuration method, an application program configuration device, computer equipment and a storage medium, which can rapidly and accurately configure application programs for a plurality of servers, and improve the corresponding working efficiency and the use experience of users.
In a first aspect, an embodiment of the present invention provides an application configuration method, where the method includes:
if a file package installation request is received, generating a corresponding display page, wherein the display page comprises a plurality of groups of input boxes, and each input box group at least comprises a first sub-input box for inputting an IP address, a second sub-input box for inputting a password associated with the IP address and a third sub-input box for inputting a file package address;
If a data submitting instruction is received, acquiring an IP address, a password associated with the IP address and a file packet address in each input box group;
judging whether all IP addresses and passwords respectively associated with each IP address are correspondingly present in a preset database or not, wherein the preset database comprises a plurality of preset IP addresses, and each preset IP address is associated with a preset password;
if all the IP addresses and the passwords respectively associated with each IP address are correspondingly stored in a preset database, analyzing the file packet address associated with each IP address to determine a corresponding file packet;
and sending each file packet to a target server corresponding to the corresponding IP address for configuration.
In a second aspect, an embodiment of the present invention further provides an application configuration apparatus, where the apparatus includes:
the page generation unit is used for generating a corresponding display page if a file package installation request is received, wherein the display page comprises a plurality of groups of input boxes, and each input box group at least comprises a first sub-input box for inputting an IP address, a second sub-input box for inputting a password associated with the IP address and a third sub-input box for inputting a file package address;
The data acquisition unit is used for acquiring the IP address, the password associated with the IP address and the file packet address in each input frame group if a data submitting instruction is received;
the judging unit is used for judging whether all the IP addresses and the passwords respectively associated with each IP address are correspondingly present in a preset database or not, wherein the preset database comprises a plurality of preset IP addresses, and each preset IP address is associated with a preset password;
the analyzing unit is used for analyzing the file packet address associated with each IP address to determine a corresponding file packet if all the IP addresses and the passwords respectively associated with each IP address are correspondingly in a preset database;
and the configuration unit is used for sending each file packet to the target server corresponding to the corresponding IP address for configuration.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method when executing the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, implement the above-described method.
The embodiment of the invention provides an application program configuration method, an application program configuration device, computer equipment and a storage medium. Wherein the method comprises the following steps: if a file package installation request is received, a corresponding display page is generated, wherein the display page comprises a plurality of groups of input boxes; if a data submitting instruction is received, acquiring an IP address, a password associated with the IP address and a file packet address in each input box group; judging whether all the IP addresses and passwords respectively associated with each IP address are correspondingly in a preset database or not; if all the IP addresses and the passwords respectively associated with each IP address are correspondingly stored in a preset database, analyzing the file packet address associated with each IP address to determine a corresponding file packet; and sending each file packet to a target server corresponding to the corresponding IP address for configuration. According to the embodiment of the invention, the application programs are configured for a plurality of servers simultaneously through multithreading, so that the rapid and accurate configuration of the application programs can be realized, the working efficiency is improved, and the use experience of a user is also improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an application configuration method according to an embodiment of the present invention;
fig. 1a is an application scenario schematic diagram of an application configuration method according to an embodiment of the present invention;
FIG. 2 is a schematic sub-flowchart of an application configuration method according to an embodiment of the present invention;
FIG. 3 is a flowchart of an application configuration method according to another embodiment of the present invention;
FIG. 4 is a schematic block diagram of an application configuration device provided by an embodiment of the present invention;
fig. 5 is a schematic block diagram of a judging unit of an application configuration device according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of an application configuration device provided in another embodiment of the present invention;
fig. 7 is a schematic diagram of a computer device structure according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Referring to fig. 1 and fig. 1a, fig. 1 is a schematic flowchart of an application program configuration method provided in an embodiment of the present application, and fig. 1a is a schematic view of a scenario of an application program configuration method in an embodiment of the present application. The application configuration method is applied to the terminal 10. The terminal 10 establishes a corresponding operation interface according to the file package installation request sent by the user 20, where a plurality of input box groups are provided on the operation interface, each input box group may correspond to a target server, each input box group includes a sub-input box for filling in an IP address, a password and a file package address of the corresponding target server 30, when the management server receives the corresponding IP address, password and file package address, it matches the corresponding IP address, password and associated password, and if matching is successful, the file package corresponding to the file package address is sent to the corresponding target server 30. The respective steps of the application configuration method will be described in detail below in terms of the terminal 10.
Referring to fig. 1, fig. 1 is a schematic flowchart of an application configuration method according to an embodiment of the invention. The method can be operated in terminals such as smart phones (such as Android mobile phones and IOS mobile phones), tablet computers, notebook computers and intelligent devices. As shown in fig. 1, the steps of the method include steps S101 to S104.
Step S101, if a file package installation request is received, a corresponding display page is generated, wherein the display page comprises a plurality of groups of input boxes, and each input box group at least comprises a first sub-input box for inputting an IP address, a second sub-input box for inputting a password associated with the IP address and a third sub-input box for inputting a file package address.
In this embodiment, if the management server receives a package installation request initiated by a user to install an application program to the target server, a display page corresponding to the package installation request is generated, where the application program may be a program such as an interface calling program, which may be used for installation by the target server. The display page allows the user to fill in content associated with installing a package on the target server. That is, the display page may include a plurality of input box groups, each of which corresponds to one target server, that is, includes a first sub-input box for inputting an IP address of the corresponding target server, and further includes a second sub-input box for inputting a password associated with the IP address of the target server, and of course, may further include a third sub-input box for inputting a package address corresponding to an application program to be installed by the target server, where the package address input in the third sub-input box should also be associated with the IP address of the target server.
Step S102, if a data submitting instruction is received, an IP address, a password associated with the IP address and a file packet address in each input box group are obtained.
In this embodiment, after the user completes the input information such as the required IP address, the password associated with the IP address, and the address of the package in the input box group of the display page, the user uploads and submits the input information to the management server. That is, after receiving the data submitting command sent by the user, the management server obtains the IP address, the password associated with the IP address and the file packet address in each input box group, so as to perform subsequent processing.
Step S103, judging whether all the IP addresses and the passwords respectively associated with each IP address are correspondingly present in a preset database, wherein the preset database comprises a plurality of preset IP addresses, and each preset IP address is associated with a preset password.
In this embodiment, the preset database is a database preset in the management server and pre-stored with preset IP addresses of the target server, and meanwhile, each preset IP address is associated with a preset password, and the preset passwords at this time are also stored in the preset database correspondingly. In order to determine whether the management server has the ROOT authority of the target server or not, so as to perform configuration of the file package of the application program, at this time, the IP address of the target server and the corresponding password pre-stored in the preset database of the management server need to be compared and checked with the corresponding IP address and the password associated with the IP address acquired by the management server. That is, it is necessary to determine whether all the IP addresses exist in the preset database, and determine whether the password associated with the IP address located in the preset database is also the preset password associated with the IP address in the preset data correspondingly.
In another embodiment, as shown in fig. 2, the step S103 may include steps S201 to S203.
Step S201, judging whether all IP addresses exist in a preset database.
In order to determine the target server of the file package of the application program more accurately, it is necessary to determine whether all the acquired IP addresses exist in the preset database. When all the IP addresses exist in the preset database, it is further necessary to determine whether the password associated with each IP address is also a preset password associated with the corresponding IP address in the preset database. And if the IP address does not exist in the preset database, the server corresponding to the IP address is not the target server.
Step S202, if all the IP addresses exist in the preset database, judging whether the password associated with each IP address is matched with the preset password associated with the IP address in the preset database.
If all the IP addresses exist in the preset database, it indicates that the IP address of the target server is correct, but in order to send the file packet of the application program to the target server, and in order to ensure the security of the target server, the IP address of the target server is associated with a corresponding password, so that it is further required to determine whether the password associated with each IP address matches with the preset password associated with the preset data.
In step S203, if the password associated with each IP address matches the preset password associated with the IP address in the preset database, it is determined that all the IP addresses and the passwords associated with each IP address respectively exist in the preset database correspondingly.
If the password associated with each IP address is matched with the preset password associated with the IP address, the management server is indicated to be capable of being in communication connection with the target server, namely, the file of the application program associated with the IP address is sent to the target server for analysis and installation. At this time, it may be determined that all the IP addresses and the passwords respectively associated with each IP address are correspondingly present in the preset database.
As a further embodiment, the method further comprises:
in step S204, if the IP address does not exist in the preset database, it is determined that the IP address and the password associated therewith do not exist in the preset database accordingly.
If the IP address does not exist in the preset database, the problem of filling the IP address at the moment is indicated, namely the IP address which does not exist in the preset database is not the IP address corresponding to the target server prestored by the management server, at the moment, the existence of the IP address and the password associated with the IP address are judged to be not correspondingly in the preset database, and corresponding processing operation is carried out.
As a still further embodiment, the method further comprises:
in step S205, if there is a password associated with the IP address that does not match with the preset password associated with the IP address, it is determined that the IP address and the password associated with the IP address do not exist in the preset database accordingly.
If the password associated with the IP address is not matched with the preset password associated with the IP address, it indicates that the target server corresponding to the IP address cannot be in communication connection with the management server, that is, the management server cannot obtain the ROOT authority of the target server corresponding to the IP address, so that the file packet corresponding to the application program in the file packet address associated with the target server cannot be sent to the target server, and it can be determined that the IP address and the password associated with the IP address do not correspondingly exist in the preset database at this time, and then corresponding processing operation is performed.
Step S104, if all the IP addresses and the passwords respectively associated with each IP address are correspondingly stored in the preset database, the file packet address associated with each IP address is analyzed to determine the corresponding file packet.
In this embodiment, if all the IP addresses and the passwords associated with each IP address respectively exist in the preset database correspondingly, it indicates that the management server at this time can obtain the ROOT rights of the target server corresponding to all the IP addresses. It is necessary to resolve the package address associated with each IP address to determine the corresponding package for installing the application for transmission to the corresponding destination server.
Step S105, each file packet is sent to the target server corresponding to its corresponding IP address for configuration.
In this embodiment, the management server may send each parsed file to the target server corresponding to its corresponding IP address, so that the target server performs the corresponding configuration.
In addition, the address of the package associated with each IP address may be the same or different, that is, different package addresses may be stored correspondingly with different packages, and different packages may be parsed and configured correspondingly to different applications, which is not limited herein, if the address of the datagram in this embodiment is the same.
Optionally, the method further comprises:
step S106, if the IP address and the password associated with the IP address are not correspondingly stored in the preset database, a corresponding prompt box is generated for the user to select whether to re-input the IP address or the password.
In this embodiment, if an IP address and a password associated with the IP address do not exist in a preset database correspondingly, it is indicated that the management server analyzes that errors occur in relevant information filled in by the user, and then a corresponding prompt box is generated according to current data, so that the user can conveniently and clearly fill in the places where the errors are located, and can select whether to re-input the IP address or the password, if the correct IP address or password is re-input, the corresponding file package can be sent to the corresponding target server when the application program is configured in a multithreading unified manner; if the user is not filled in, the management server does not need to process the related data input in the input box group, so that the user selectivity is increased, and the user experience is improved.
In summary, the embodiment of the invention can realize the rapid and accurate configuration of the application program by simultaneously configuring the application program for a plurality of servers through multithreading, thereby not only improving the working efficiency, but also improving the use experience of users.
Referring to fig. 3, fig. 3 is a schematic flowchart of an application configuration method according to another embodiment of the invention. The method can be operated in terminals such as smart phones (such as Android mobile phones and IOS mobile phones), tablet computers, notebook computers and intelligent devices. As shown in fig. 3, the steps of the method include steps S301 to S305. The explanation and detailed explanation of the steps similar to steps S101 to S105 in the above embodiment are omitted herein, and the following detailed explanation is added to the steps in this embodiment.
Step S301, if a package installation request is received, a corresponding display page is generated, where the display page includes multiple groups of input boxes, and each input box group includes at least a first sub-input box for inputting an IP address, a second sub-input box for inputting a password associated with the IP address, and a third sub-input box for inputting a package address.
In step S302a, if an input box adding request is received, determining the number of input box groups to be added according to the input box adding request.
In this embodiment, when the management server needs to manage more target servers, after receiving the input frame addition request, the input frame addition request may be parsed, and the number of groups of input frame groups that need to be added may be determined, where each time one input frame group is added, one target server that may be used for unified management may be added to the management server, so as to implement multithreading management of the management server.
Step S302b, generating input frame groups with corresponding groups on the display page according to the determined groups of the input frame groups needing to be increased.
In this embodiment, after the number of groups of input box groups requiring muscle increase is determined, the input box groups with corresponding numbers of groups can be generated on the display page, so that the user can fill in corresponding information.
Step S302, if a data submitting instruction is received, an IP address, a password associated with the IP address and a file packet address in each input box group are obtained.
Step S303, judging whether all the IP addresses and the passwords respectively associated with each IP address are correspondingly present in a preset database, wherein the preset database comprises a plurality of preset IP addresses, and each preset IP address is associated with a preset password.
Step S304, if all the IP addresses and the passwords respectively associated with each IP address are correspondingly stored in the preset database, the file packet address associated with each IP address is analyzed to determine the corresponding file packet.
Step S305, each file packet is sent to the target server corresponding to its corresponding IP address for configuration.
Optionally, the method further comprises:
step 306, if the IP address and the password associated with the IP address are not stored in the preset database, a corresponding prompt box is generated for the user to select whether to re-input the IP address or the password.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
Referring to fig. 4, in response to the above-mentioned application program configuration method, an embodiment of the present invention further provides an application program configuration device, where the device 100 includes: page generation unit 101, data acquisition unit 102, judgment unit 103, analysis unit 104, and configuration unit 105.
The page generating unit 101 is configured to generate a corresponding display page if a package installation request is received, where the display page includes multiple groups of input boxes, each input box group includes at least a first sub-input box for inputting an IP address, a second sub-input box for inputting a password associated with the IP address, and a third sub-input box for inputting a package address.
In this embodiment, if the management server receives a package installation request initiated by a user to install an application program to the target server, a display page corresponding to the package installation request is generated, where the application program may be a program such as an interface calling program, which may be used for installation by the target server. The display page allows the user to fill in content associated with installing a package on the target server. That is, the display page may include a plurality of input box groups, each of which corresponds to one target server, that is, includes a first sub-input box for inputting an IP address of the corresponding target server, and further includes a second sub-input box for inputting a password associated with the IP address of the target server, and of course, may further include a third sub-input box for inputting a package address corresponding to an application program to be installed by the target server, where the package address input in the third sub-input box should also be associated with the IP address of the target server.
The data obtaining unit 102 is configured to obtain, if a data submitting instruction is received, an IP address in each input box group, a password associated with the IP address, and a packet address.
In this embodiment, after the user completes the input information such as the required IP address, the password associated with the IP address, and the address of the package in the input box group of the display page, the user uploads and submits the input information to the management server. That is, after receiving the data submitting command sent by the user, the management server obtains the IP address, the password associated with the IP address and the file packet address in each input box group, so as to perform subsequent processing.
The judging unit 103 is configured to judge whether all the IP addresses and the passwords associated with each IP address respectively exist in a preset database correspondingly, where the preset database includes a plurality of preset IP addresses, and each preset IP address is associated with a preset password.
In this embodiment, the preset database is a database preset in the management server and pre-stored with preset IP addresses of the target server, and meanwhile, each preset IP address is associated with a preset password, and the preset passwords at this time are also stored in the preset database correspondingly. In order to determine whether the management server has the ROOT authority of the target server or not, so as to perform configuration of the file package of the application program, at this time, the IP address of the target server and the corresponding password pre-stored in the preset database of the management server need to be compared and checked with the corresponding IP address and the password associated with the IP address acquired by the management server. That is, it is necessary to determine whether all the IP addresses exist in the preset database, and determine whether the password associated with the IP address located in the preset database is also the preset password associated with the IP address in the preset data correspondingly.
In another embodiment, as shown in fig. 5, the determining unit 103 may include a first determining unit 201, a second determining unit 202, and a first determining unit 203.
The first determining unit 201 is configured to determine whether all IP addresses exist in a preset database.
In order to determine the target server of the file package of the application program more accurately, it is necessary to determine whether all the acquired IP addresses exist in the preset database. When all the IP addresses exist in the preset database, it is further necessary to determine whether the password associated with each IP address is also a preset password associated with the corresponding IP address in the preset database. And if the IP address does not exist in the preset database, the server corresponding to the IP address is not the target server.
The second determining unit 202 is configured to determine whether the password associated with each IP address matches the preset password associated with the IP address in the preset database if all the IP addresses exist in the preset database.
If all the IP addresses exist in the preset database, it indicates that the IP address of the target server is correct, but in order to send the file packet of the application program to the target server, and in order to ensure the security of the target server, the IP address of the target server is associated with a corresponding password, so that it is further required to determine whether the password associated with each IP address matches with the preset password associated with the preset data.
The first determining unit 203 is configured to determine that all the IP addresses and the passwords respectively associated with each IP address are in the preset database correspondingly if the passwords associated with each IP address are matched with the preset passwords associated with the IP address in the preset database.
If the password associated with each IP address is matched with the preset password associated with the IP address, the management server is indicated to be capable of being in communication connection with the target server, namely, the file of the application program associated with the IP address is sent to the target server for analysis and installation. At this time, it may be determined that all the IP addresses and the passwords respectively associated with each IP address are correspondingly present in the preset database.
As a further embodiment, the judging unit 103 further includes:
the second determining unit 204 is configured to determine that the IP address and the password associated therewith are not correspondingly present in the preset database if the IP address is not present in the preset database.
If the IP address does not exist in the preset database, the problem of filling the IP address at the moment is indicated, namely the IP address which does not exist in the preset database is not the IP address corresponding to the target server prestored by the management server, at the moment, the existence of the IP address and the password associated with the IP address are judged to be not correspondingly in the preset database, and corresponding processing operation is carried out.
As a still further embodiment, the judging unit 103 further includes:
the third determining unit 205 is configured to determine that the IP address and the password associated therewith are not correspondingly present in the preset database if the password associated with the IP address does not match the preset password associated therewith.
If the password associated with the IP address is not matched with the preset password associated with the IP address, it indicates that the target server corresponding to the IP address cannot be in communication connection with the management server, that is, the management server cannot obtain the ROOT authority of the target server corresponding to the IP address, so that the file packet corresponding to the application program in the file packet address associated with the target server cannot be sent to the target server, and it can be determined that the IP address and the password associated with the IP address do not correspondingly exist in the preset database at this time, and then corresponding processing operation is performed.
The parsing unit 104 is configured to parse the address of the file packet associated with each IP address to determine a corresponding file packet if all the IP addresses and the passwords associated with each IP address respectively exist in the preset database correspondingly.
In this embodiment, if all the IP addresses and the passwords associated with each IP address respectively exist in the preset database correspondingly, it indicates that the management server at this time can obtain the ROOT rights of the target server corresponding to all the IP addresses. It is necessary to resolve the package address associated with each IP address to determine the corresponding package for installing the application for transmission to the corresponding destination server.
The configuration unit 105 is configured to send each file packet to a target server corresponding to the corresponding IP address for configuration.
In this embodiment, the management server may send each parsed file to the target server corresponding to its corresponding IP address, so that the target server performs the corresponding configuration.
In addition, the address of the package associated with each IP address may be the same or different, that is, different package addresses may be stored correspondingly with different packages, and different packages may be parsed and configured correspondingly to different applications, which is not limited herein, if the address of the datagram in this embodiment is the same.
Optionally, the apparatus 100 further includes:
and the prompting unit 106 is used for generating a corresponding prompting frame for a user to select whether to reenter the IP address or the password if the IP address and the password associated with the IP address are not correspondingly stored in the preset database.
In this embodiment, if an IP address and a password associated with the IP address do not exist in a preset database correspondingly, it is indicated that the management server analyzes that errors occur in relevant information filled in by the user, and then a corresponding prompt box is generated according to current data, so that the user can conveniently and clearly fill in the places where the errors are located, and can select whether to re-input the IP address or the password, if the correct IP address or password is re-input, the corresponding file package can be sent to the corresponding target server when the application program is configured in a multithreading unified manner; if the user is not filled in, the management server does not need to process the related data input in the input box group, so that the user selectivity is increased, and the user experience is improved.
Referring to fig. 6, another embodiment of the present invention further provides an application configuration apparatus corresponding to the above-mentioned application configuration method, where the apparatus 300 includes: page generation unit 301, number determination unit 302a, addition unit 302b, data acquisition unit 302, judgment unit 303, analysis unit 304, and configuration unit 305.
The page generating unit 301 is configured to generate a corresponding display page if a package installation request is received, where the display page includes multiple groups of input boxes, each input box group includes at least a first sub-input box for inputting an IP address, a second sub-input box for inputting a password associated with the IP address, and a third sub-input box for inputting a package address.
The number determining unit 302a is configured to determine, if an input box addition request is received, a group number of input box groups that need to be added according to the input box addition request.
In this embodiment, when the management server needs to manage more target servers, after receiving the input frame addition request, the input frame addition request may be parsed, and the number of groups of input frame groups that need to be added may be determined, where each time one input frame group is added, one target server that may be used for unified management may be added to the management server, so as to implement multithreading management of the management server.
The adding unit 302b is configured to generate, on the display page, an input frame group with a corresponding group number according to the determined group number of the input frame group that needs to be increased.
In this embodiment, after the number of groups of input box groups requiring muscle increase is determined, the input box groups with corresponding numbers of groups can be generated on the display page, so that the user can fill in corresponding information.
The data obtaining unit 302 is configured to obtain, if a data submitting instruction is received, an IP address in each input box group, a password associated with the IP address, and a packet address.
The judging unit 303 is configured to judge whether all the IP addresses and the passwords associated with each IP address respectively exist in a preset database correspondingly, where the preset database includes a plurality of preset IP addresses, and each preset IP address is associated with a preset password.
The parsing unit 304 is configured to parse the address of the file packet associated with each IP address to determine a corresponding file packet if all the IP addresses and the passwords associated with each IP address respectively exist in the preset database correspondingly.
The configuration unit 305 is configured to send each file packet to a target server corresponding to the corresponding IP address for configuration.
Optionally, the apparatus 300 further includes:
the prompting unit 306 is configured to generate a corresponding prompting frame for the user to select whether to reenter the IP address or the password if the IP address and the password associated therewith do not exist in the preset database accordingly.
It should be noted that, as will be clearly understood by those skilled in the art, the specific implementation process of the application configuration apparatus 100 and each unit may refer to the corresponding description in the foregoing method embodiments, and for convenience and brevity of description, the description is omitted here.
As can be seen from the above, in terms of hardware implementation, the above page generating unit 101, the data acquiring unit 102, the judging unit 103, the analyzing unit 104, the configuring unit 105, and the like may be embedded in the device of the life insurance report in a hardware form or may be stored in the memory of the application configuring device in a software form, so that the processor invokes and executes the operations corresponding to the above units. The processor may be a Central Processing Unit (CPU), microprocessor, single-chip microcomputer, etc.
The application configuration means described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 7.
Fig. 7 is a schematic structural diagram of a computer device according to the present invention. The device may be a terminal, where the terminal may be an electronic device having a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device.
With reference to FIG. 7, the computer device 400 includes a processor 402, memory, internal memory 404, and a network interface 405 connected by a system bus 401, where the memory may include a non-volatile storage medium 403 and internal memory 404.
The non-volatile storage medium 403 may store an operating system 4031 and a computer program 4032, which computer program 4032, when executed, may cause the processor 402 to perform an application configuration method.
The processor 402 is used to provide computing and control capabilities, supporting the operation of the overall computer device 400.
The internal memory 404 provides an environment for the execution of a computer program 4032 in the non-volatile storage medium 403, which computer program 4032, when executed by the processor 402, causes the processor 402 to perform an application configuration method.
The network interface 405 is used for network communication with other devices. Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device 400 to which the present application is applied, and that a particular computer device 400 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 402 is configured to execute a computer program 4032 stored in the memory to implement the steps of: if a file package installation request is received, generating a corresponding display page, wherein the display page comprises a plurality of groups of input boxes, and each input box group at least comprises a first sub-input box for inputting an IP address, a second sub-input box for inputting a password associated with the IP address and a third sub-input box for inputting a file package address; if a data submitting instruction is received, acquiring an IP address, a password associated with the IP address and a file packet address in each input box group; judging whether all IP addresses and passwords respectively associated with each IP address are correspondingly present in a preset database or not, wherein the preset database comprises a plurality of preset IP addresses, and each preset IP address is associated with a preset password; if all the IP addresses and the passwords respectively associated with each IP address are correspondingly stored in a preset database, analyzing the file packet address associated with each IP address to determine a corresponding file packet; and sending each file packet to a target server corresponding to the corresponding IP address for configuration.
In one embodiment, before implementing the step of obtaining the IP address, the password associated with the IP address, and the packet address in each input box group if the data commit instruction is received, the processor 402 specifically implements the following steps: if an input box adding request is received, determining the number of input box groups needing to be added according to the input box adding request; and generating the input frame groups with corresponding groups on the display page according to the determined groups needing to be increased.
In one embodiment, when implementing the step of determining whether all the IP addresses and the passwords associated with each IP address respectively exist in the preset database correspondingly, the processor 402 specifically implements the following steps: judging whether all IP addresses exist in a preset database or not; if all the IP addresses exist in the preset database, judging whether the passwords associated with each IP address are matched with the preset passwords associated with the IP addresses in the preset database; if the password associated with each IP address is matched with the preset password associated with the IP address in the preset database, judging that all the IP addresses and the passwords respectively associated with each IP address are correspondingly present in the preset database.
In one embodiment, the processor 402 further implements the steps of: if the IP address does not exist in the preset database, the fact that the IP address and the password associated with the IP address do not exist in the preset database is judged.
In one embodiment, the processor 402 further implements the steps of: if the password associated with the IP address is not matched with the preset password associated with the IP address, the IP address and the password associated with the IP address are judged to be not correspondingly present in the preset database.
In one embodiment, the processor 402 further implements the steps of: if the IP address and the password associated with the IP address are not correspondingly stored in the preset database, a corresponding prompt box is generated for the user to select whether to re-input the IP address or the password.
It should be appreciated that in embodiments of the present application, the processor 402 may be a central processing unit (Central Processing Unit, CPU), the processor 402 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program may be stored in a storage medium that is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program which, when executed by a processor, causes the processor to perform the steps of: if a file package installation request is received, generating a corresponding display page, wherein the display page comprises a plurality of groups of input boxes, and each input box group at least comprises a first sub-input box for inputting an IP address, a second sub-input box for inputting a password associated with the IP address and a third sub-input box for inputting a file package address; if a data submitting instruction is received, acquiring an IP address, a password associated with the IP address and a file packet address in each input box group; judging whether all IP addresses and passwords respectively associated with each IP address are correspondingly present in a preset database or not, wherein the preset database comprises a plurality of preset IP addresses, and each preset IP address is associated with a preset password; if all the IP addresses and the passwords respectively associated with each IP address are correspondingly stored in a preset database, analyzing the file packet address associated with each IP address to determine a corresponding file packet; and sending each file packet to a target server corresponding to the corresponding IP address for configuration.
In one embodiment, before executing the computer program to implement the step of obtaining the IP address, the password associated with the IP address, and the packet address in each input box group if the data commit instruction is received, the processor further implements the steps of: if an input box adding request is received, determining the number of input box groups needing to be added according to the input box adding request; and generating the input frame groups with corresponding groups on the display page according to the determined groups needing to be increased.
In one embodiment, when the processor executes the computer program to implement the step of determining whether all the IP addresses and the passwords respectively associated with each IP address are in the preset database correspondingly, the steps are specifically implemented as follows: judging whether all IP addresses exist in a preset database or not; if all the IP addresses exist in the preset database, judging whether the passwords associated with each IP address are matched with the preset passwords associated with the IP addresses in the preset database; if the password associated with each IP address is matched with the preset password associated with the IP address in the preset database, judging that all the IP addresses and the passwords respectively associated with each IP address are correspondingly present in the preset database.
In one embodiment, the processor further performs the steps of: if the IP address does not exist in the preset database, the fact that the IP address and the password associated with the IP address do not exist in the preset database is judged.
In one embodiment, the processor further performs the steps of: if the password associated with the IP address is not matched with the preset password associated with the IP address, the IP address and the password associated with the IP address are judged to be not correspondingly present in the preset database.
In one embodiment, the processor further performs the steps of: if the IP address and the password associated with the IP address are not correspondingly stored in the preset database, a corresponding prompt box is generated for the user to select whether to re-input the IP address or the password.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (9)

1. An application configuration method, the method comprising:
if a file package installation request is received, generating a corresponding display page, wherein the display page comprises a plurality of groups of input boxes, and each input box group at least comprises a first sub-input box for inputting an IP address, a second sub-input box for inputting a password associated with the IP address and a third sub-input box for inputting a file package address;
if an input box adding request is received, determining the number of input box groups to be added according to the input box adding request, wherein each input box group is added with a target server for unified management for a management server;
generating input frame groups with corresponding group numbers on the display page according to the determined group numbers of the input frame groups needing to be increased;
If a data submitting instruction is received, acquiring an IP address, a password associated with the IP address and a file packet address in each input box group;
judging whether all IP addresses and passwords respectively associated with each IP address are correspondingly present in a preset database or not, wherein the preset database comprises a plurality of preset IP addresses, and each preset IP address is associated with a preset password;
if all the IP addresses and the passwords respectively associated with each IP address are correspondingly stored in a preset database, analyzing the file packet address associated with each IP address to determine a corresponding file packet;
and sending each file packet to a target server corresponding to the corresponding IP address for configuration.
2. The method of claim 1, wherein the step of determining whether all IP addresses and passwords respectively associated with each IP address are correspondingly present in a preset database comprises: judging whether all IP addresses exist in a preset database or not;
if all the IP addresses exist in the preset database, judging whether the passwords associated with each IP address are matched with the preset passwords associated with the IP addresses in the preset database;
If the password associated with each IP address is matched with the preset password associated with the IP address in the preset database, judging that all the IP addresses and the passwords respectively associated with each IP address are correspondingly present in the preset database.
3. The method of claim 2, wherein the method further comprises:
if the IP address does not exist in the preset database, the fact that the IP address and the password associated with the IP address do not exist in the preset database is judged.
4. A method as claimed in claim 3, wherein the method further comprises:
if the password associated with the IP address is not matched with the preset password associated with the IP address, the IP address and the password associated with the IP address are judged to be not correspondingly present in the preset database.
5. The method of claim 1, wherein the method further comprises:
if the IP address and the password associated with the IP address are not correspondingly stored in the preset database, a corresponding prompt box is generated for the user to select whether to re-input the IP address or the password.
6. An application configuration apparatus, the apparatus comprising:
the page generation unit is used for generating a corresponding display page if a file package installation request is received, wherein the display page comprises a plurality of groups of input boxes, and each input box group at least comprises a first sub-input box for inputting an IP address, a second sub-input box for inputting a password associated with the IP address and a third sub-input box for inputting a file package address;
The number determining unit is used for determining the number of groups of input frame groups to be added according to the input frame adding request if the input frame adding request is received, wherein each input frame group is added with a target server for unified management for the management server;
the adding unit is used for generating input frame groups with corresponding groups on the display page according to the determined groups of the input frame groups needing to be added;
the data acquisition unit is used for acquiring the IP address, the password associated with the IP address and the file packet address in each input frame group if a data submitting instruction is received; the judging unit is used for judging whether all the IP addresses and the passwords respectively associated with each IP address are correspondingly present in a preset database or not, wherein the preset database comprises a plurality of preset IP addresses, and each preset IP address is associated with a preset password;
the analyzing unit is used for analyzing the file packet address associated with each IP address to determine a corresponding file packet if all the IP addresses and the passwords respectively associated with each IP address are correspondingly in a preset database;
and the configuration unit is used for sending each file packet to the target server corresponding to the corresponding IP address for configuration.
7. The apparatus of claim 6, wherein the determination unit comprises:
the first judging unit is used for judging whether all the IP addresses exist in a preset database;
the second judging unit is used for judging whether the password associated with each IP address is matched with the preset password associated with the IP address in the preset database if all the IP addresses exist in the preset database;
and the first judging unit is used for judging that all the IP addresses and the passwords respectively associated with each IP address are correspondingly in the preset database if the passwords associated with each IP address are matched with the preset passwords associated with the IP addresses in the preset database.
8. A computer device, characterized in that it comprises a memory and a processor, on which a computer program is stored, which processor implements the method according to any of claims 1-5 when executing the computer program.
9. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, causes the processor to perform the method according to any of claims 1-5.
CN201910185044.9A 2019-03-12 2019-03-12 Application program configuration method, device, computer equipment and storage medium Active CN110099096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910185044.9A CN110099096B (en) 2019-03-12 2019-03-12 Application program configuration method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910185044.9A CN110099096B (en) 2019-03-12 2019-03-12 Application program configuration method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110099096A CN110099096A (en) 2019-08-06
CN110099096B true CN110099096B (en) 2023-04-28

Family

ID=67443913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910185044.9A Active CN110099096B (en) 2019-03-12 2019-03-12 Application program configuration method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110099096B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009093345A (en) * 2007-10-05 2009-04-30 Brother Ind Ltd Installation method and installation program
US9632823B1 (en) * 2014-09-08 2017-04-25 Amazon Technologies, Inc. Multithreaded application thread schedule selection
CN108121559B (en) * 2017-12-29 2023-06-23 深圳市世芯信息技术有限公司 Configuration file pushing method, server and storage medium
CN108845808B (en) * 2018-06-22 2020-09-29 平安科技(深圳)有限公司 Middleware installation method and device, computer equipment and storage medium
CN109254921A (en) * 2018-09-18 2019-01-22 平安科技(深圳)有限公司 Application version verification method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110099096A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
WO2020233308A1 (en) Self-checking method, apparatus and device based on local certificate, and storage medium
CN112653618B (en) Gateway registration method and device of micro-service application API (application program interface) endpoint
CN105389177A (en) Software version confirmation method, device and system
US10489145B2 (en) Secure update of firmware and software
US20170005858A1 (en) Log processing method and client
CN110764807B (en) Upgrading method, system, server and terminal equipment
CN109150904A (en) Interface service call method and terminal device
EP3319267A1 (en) Wireless system access control method and device
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
WO2019199769A1 (en) Cyber chaff using spatial voting
CN110247897B (en) System login method, device, gateway and computer readable storage medium
WO2022142153A1 (en) Electricity meter upgrading method and system, smart meter, and storage medium
US10291718B2 (en) Method and apparatus for implementing communication from web page to client
CN112817935A (en) Data processing method, device and equipment based on field type and storage medium
CN108769135B (en) Cloud desktop connection method, device, equipment and system
CN113312577A (en) Webpage resource processing method and device, electronic equipment and storage medium
CN110099096B (en) Application program configuration method, device, computer equipment and storage medium
CN115208951B (en) Request processing method, request processing device, electronic equipment and computer readable storage medium
US10740218B2 (en) Method and device for determining usage log
CN111371811A (en) Resource calling method, resource calling device, client and service server
CN114567678A (en) Resource calling method and device of cloud security service and electronic equipment
CN106325898B (en) Software upgrading method and system
CN109714371B (en) Industrial control network safety detection system
EP3174263A1 (en) Apparatus and method for verifying detection rule
CN108234399B (en) Interface communication method and terminal

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