CN114296776A - Service package configuration calling method and device, terminal equipment and storage medium - Google Patents

Service package configuration calling method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN114296776A
CN114296776A CN202111493666.1A CN202111493666A CN114296776A CN 114296776 A CN114296776 A CN 114296776A CN 202111493666 A CN202111493666 A CN 202111493666A CN 114296776 A CN114296776 A CN 114296776A
Authority
CN
China
Prior art keywords
service package
information
configuration
target service
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111493666.1A
Other languages
Chinese (zh)
Inventor
关瑞
吴闽华
姜坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Qilu Shutong Technology Co ltd
Original Assignee
Shandong Qilu Shutong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Qilu Shutong Technology Co ltd filed Critical Shandong Qilu Shutong Technology Co ltd
Priority to CN202111493666.1A priority Critical patent/CN114296776A/en
Publication of CN114296776A publication Critical patent/CN114296776A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a service package configuration calling method, a service package configuration calling device, terminal equipment and a storage medium, wherein the method comprises the following steps: receiving a service package installation instruction, and determining service package configuration information according to the service package installation instruction; matching out a target service package corresponding to the service package information according to the service package configuration information; and calling the target service package, and carrying out installation operation on the target service package. The invention can rapidly deploy the target service package and realize the control of the calling of the target service package so as to meet the use requirements of users.

Description

Service package configuration calling method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the technical field of service program invocation, and in particular, to a method and an apparatus for invoking service package configuration, a terminal device, and a storage medium.
Background
In daily development work, some windows service programs are required to be written by self to execute some tasks. Typically, in the non-container world, a console application deployed as a Windows service is used to subscribe to the queue and complete its work.
While running the application in the container, the active processes in the container are monitored, and if the active processes stop, the container exits. In the prior art, when a third-party server program needs to be acquired, if no Windows Service is registered in a container, the third-party server program cannot be managed and called.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, an apparatus, a terminal device and a storage medium for invoking service package configuration, aiming at the above-mentioned defects in the prior art, and the technical scheme adopted by the present invention is as follows:
in a first aspect, the present invention provides a service package configuration calling method, where the method includes:
receiving a service package installation instruction, and determining service package configuration information according to the service package installation instruction;
matching out a target service package corresponding to the service package information according to the service package configuration information;
and calling the target service package, and carrying out installation operation on the target service package.
In one implementation, the receiving a service package installation instruction and determining service package configuration information according to the service package installation instruction includes:
analyzing the service package installation instruction to obtain service package name information and service package version information carried in the service package installation instruction;
and determining the configuration information of the service package according to the name information and the version information of the service package.
In an implementation manner, the matching a target service package corresponding to the service package information according to the service package configuration information includes:
determining service package name information in the service package configuration information according to the service package configuration information;
and determining a target service package corresponding to the service package name information according to the service package name information.
In one implementation, the invoking the target service package and performing the installation operation on the target service package include:
calling the target service package, and acquiring an installation package of the target service package;
and completing the installation of the target service package according to the installation package.
In one implementation, the method further comprises:
judging the process state information of the target service package;
and controlling the process of the target service package according to the process state information.
In one implementation, the controlling the process of the target service package according to the process state information includes:
if the process state information is process interruption, acquiring a preset exit code;
and stopping the running process of the target service package according to the exit code.
In one implementation, the method further comprises:
and after the target service package is installed, recording the operation information of the target service package.
In a second aspect, an embodiment of the present invention further provides a device for invoking service package configuration, where the device includes:
the configuration information acquisition module is used for receiving a service package installation instruction and determining service package configuration information according to the service package installation instruction;
the service package obtaining module is used for matching out a target service package corresponding to the service package information according to the service package configuration information;
and the service package installation module is used for calling the target service package and carrying out installation operation on the target service package.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a service package configuration calling program that is stored in the memory and is executable on the processor, and when the processor executes the service package configuration calling program, the step of implementing the service package configuration calling method according to any one of the foregoing schemes is implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a service package configuration calling program is stored on the computer-readable storage medium, and when the service package configuration calling program is executed by a processor, the service package configuration calling program implements the steps of the service package configuration calling method according to any one of the above solutions.
Has the advantages that: compared with the prior art, the invention provides a service package configuration calling method, which comprises the steps of firstly receiving a service package installation instruction, and determining service package configuration information according to the service package installation instruction; matching out a target service package corresponding to the service package information according to the service package configuration information; and calling the target service package, and carrying out installation operation on the target service package. The invention can rapidly deploy the target service package and realize the control of the calling of the target service package so as to meet the use requirements of users.
Drawings
Fig. 1 is a flowchart of a specific implementation of a service package configuration invoking method according to an embodiment of the present invention.
Fig. 2 is a schematic block diagram of a service package configuration invoking device according to an embodiment of the present invention.
Fig. 3 is a schematic block diagram of an internal structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment provides a Service package configuration calling method, and Windows Service does not need to be registered through the Service package configuration calling method in the embodiment. In specific implementation, the embodiment first receives a service package installation instruction, and determines service package configuration information according to the service package installation instruction; matching out a target service package corresponding to the service package information according to the service package configuration information; and calling the target service package, and carrying out installation operation on the target service package. According to the embodiment, the target service package can be deployed quickly, and the calling of the target service package can be controlled to meet the use requirements of users.
Exemplary method
The service package configuration calling method in the embodiment can be applied to terminal equipment, and the terminal equipment can be intelligent terminal products such as computers and mobile phones. Specifically, as shown in fig. 1, the service package configuration calling method includes the following steps:
step S100, receiving a service package installation instruction, and determining service package configuration information according to the service package installation instruction.
Specifically, in this embodiment, a service package installation instruction is first received, where the service package installation instruction is used to perform installation control on a target service package, and the service package installation instruction may be generated based on an operation instruction of a user, and after the service installation instruction is obtained, corresponding service package configuration information may be determined according to the service installation instruction.
In one implementation manner, the determining the service configuration information in this embodiment includes the following steps:
step S101, analyzing the service package installation instruction to obtain service package name information and service package version information carried in the service package installation instruction;
and step S102, determining the service package configuration information according to the service package name information and the service package version information.
In this embodiment, the service package installation instruction stores in advance service package name information and service package version information, which are added together when the service package installation instruction is generated. Therefore, the service package name information and the service package version information carried in the service package installation instruction can be determined by analyzing the service package installation instruction. For example, in the embodiment, the service package installation instruction carries the service package name information of AAA and the service package version information of V2.5, and at this time, it is known that the target service package is a service package with the service package name information of AAA and the service package version information of V2.5. Therefore, in this embodiment, after determining the service package name information and the service package version information, the service package name information and the service package version information may be used as the service package configuration information.
And step S200, matching a target service package corresponding to the service package information according to the service package configuration information.
Since the service package configuration information in this embodiment stores the service package name information and the service package version information, and it can be determined which target service package is according to the service package name information and the service package version information, the embodiment can match the target service package corresponding to the service package information based on the service package configuration information.
In one implementation manner, the determining of the target service package in this embodiment includes the following steps:
step S201, determining service package name information in the service package configuration information according to the service package configuration information;
step S202, according to the service package name information, determining a target service package corresponding to the service package name information.
In this embodiment, service package name information in the service package configuration information may be determined according to the service package configuration information, where the service package name information is used to identify a target service package, and therefore, the embodiment may match the service package name information with a preset configuration file, and determine, from the preset file, a target service package corresponding to the service package name information. For example, in the present embodiment, a json file may be preset as a service package configuration file, and information such as name information, a start mode, and dependency of a service package is set in the service package configuration file. For example, in the present embodiment, 10 services, and name information and version information of the 10 services are set in the json file. After the name information of the service package is obtained, the program can automatically read the json file, and after the information in the json file is read, the matched target service package is found. In addition, in this embodiment, a config file may be set as the main configuration file. Program information, startup parameters, and the like that are run after the method of the present embodiment is started are specified in the main configuration file.
And step S300, calling the target service package, and installing the target service package.
In this embodiment, after the target service package is obtained, the present embodiment may call the target service package, and in order to implement running of a service corresponding to the target service package, the present embodiment installs the target service package, thereby implementing management of a server program.
In one implementation manner, the present embodiment, when implementing installation of the target service package, includes the following steps:
step S301, calling the target service package, and acquiring an installation package of the target service package;
and S302, completing the installation of the target service package according to the installation package.
In specific implementation, the embodiment first calls the target service package, obtains an installation package of the target service package, and completes installation of the target service package according to the installation package. During installation, the life cycle of the target service package can be obtained from the service package configuration file (i.e., json file), and the life cycle is to show the service running state, the running duration, the occupied space size and the like on a page, so that the target service package can be better installed.
After the target service package is installed, the embodiment may further determine process state information of the target service package; and then controlling the process of the target service package according to the process state information. For example, if the process state information is a process interrupt, a preset exit code is acquired; and stopping the running process of the target service package according to the exit code. In other implementation manners, in this embodiment, after the target service package is installed, the running information of the target service package is recorded, so as to check in real time which specific operations are performed by the target service package. In this embodiment, a service uninstalling script is further provided, and the installed target service package can be uninstalled by one key by running the script.
To sum up, the embodiment first receives a service package installation instruction, and determines service package configuration information according to the service package installation instruction; matching out a target service package corresponding to the service package information according to the service package configuration information; and calling the target service package, and carrying out installation operation on the target service package. According to the embodiment, the target service package can be deployed quickly, and the calling of the target service package can be controlled to meet the use requirements of users.
Exemplary devices
Based on the foregoing embodiment, the present invention further provides a service package configuration invoking device, as shown in fig. 2, the device includes: a configuration information acquisition module 10, a service package acquisition module 20, and a service package installation module 30. Specifically, the configuration information obtaining module 10 in this embodiment is configured to receive a service package installation instruction, and determine service package configuration information according to the service package installation instruction. The service package obtaining module 20 is configured to match a target service package corresponding to the service package information according to the service package configuration information. The service package installation module 30 is configured to call the target service package and perform an installation operation on the target service package.
In one implementation, the configuration information obtaining module 10 includes:
the information acquisition unit is used for analyzing the service package installation instruction to obtain service package name information and service package version information carried in the service package installation instruction;
and the configuration matching unit is used for determining the service package configuration information according to the service package name information and the service package version information.
In one implementation, the service package obtaining module 20 includes:
the information determining unit is used for determining service package name information in the service package configuration information according to the service package configuration information;
and the service package determining unit is used for determining a target service package corresponding to the service package name information according to the service package name information.
In one implementation, the service package installation module 30 includes:
the installation package obtaining unit is used for calling the target service package and obtaining an installation package of the target service package;
and the installation control unit is used for finishing the installation of the target service package according to the installation package.
In one implementation, the apparatus includes:
the information judgment module is used for judging the process state information of the target service packet;
and the process control module is used for controlling the process of the target service package according to the process state information.
In one implementation, the process control module includes:
a code obtaining unit, configured to obtain a preset exit code if the process state information is a process interrupt;
and the process stopping unit is used for stopping the running process of the target service package according to the exit code.
In one implementation, the apparatus includes:
and the information recording module is used for recording the operation information of the target service package after the target service package is installed.
The working principle of the device for generating the myoelectric gesture template in this embodiment is the same as the content recorded in the above method embodiment, and is not described herein again.
Based on the above embodiments, the present invention further provides a terminal device, and a schematic block diagram thereof may be as shown in fig. 3. The terminal equipment comprises a processor and a memory which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment 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 terminal device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a service package configuration invocation method.
It will be understood by those skilled in the art that the block diagram shown in fig. 3 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the terminal device to which the solution of the present invention is applied, and a specific terminal device may include more or less components than those shown in the figure, or may combine some components, or have different arrangements of components.
In one embodiment, a terminal device is provided, where the terminal device includes a memory, a processor, and a service package configuration calling program stored in the memory and executable on the processor, and when the processor executes the service package configuration calling program, the following operation instructions are implemented:
receiving a service package installation instruction, and determining service package configuration information according to the service package installation instruction;
matching out a target service package corresponding to the service package information according to the service package configuration information;
and calling the target service package, and carrying out installation operation on the target service package.
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, operational databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. 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-rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention discloses a service package configuration calling method, device, terminal device and storage medium, wherein the method includes: receiving a service package installation instruction, and determining service package configuration information according to the service package installation instruction; matching out a target service package corresponding to the service package information according to the service package configuration information; and calling the target service package, and carrying out installation operation on the target service package. The invention can rapidly deploy the target service package and realize the control of the calling of the target service package so as to meet the use requirements of users.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A service pack configuration calling method, the method comprising:
receiving a service package installation instruction, and determining service package configuration information according to the service package installation instruction;
matching out a target service package corresponding to the service package information according to the service package configuration information;
and calling the target service package, and carrying out installation operation on the target service package.
2. The method according to claim 1, wherein the receiving a service package installation instruction and determining service package configuration information according to the service package installation instruction comprises:
analyzing the service package installation instruction to obtain service package name information and service package version information carried in the service package installation instruction;
and determining the configuration information of the service package according to the name information and the version information of the service package.
3. The method for invoking service package configuration according to claim 1, wherein the matching a target service package corresponding to the service package information according to the service package configuration information comprises:
determining service package name information in the service package configuration information according to the service package configuration information;
and determining a target service package corresponding to the service package name information according to the service package name information.
4. The service package configuration calling method according to claim 1, wherein the calling the target service package and performing an installation operation on the target service package comprises:
calling the target service package, and acquiring an installation package of the target service package;
and completing the installation of the target service package according to the installation package.
5. The service package configuration calling method according to claim 1, wherein said method further comprises:
judging the process state information of the target service package;
and controlling the process of the target service package according to the process state information.
6. The method for invoking service package configuration according to claim 5, wherein the controlling the process of the target service package according to the process state information comprises:
if the process state information is process interruption, acquiring a preset exit code;
and stopping the running process of the target service package according to the exit code.
7. The service package configuration calling method according to claim 1, wherein said method further comprises:
and after the target service package is installed, recording the operation information of the target service package.
8. An apparatus for invoking service package configuration, the apparatus comprising:
the configuration information acquisition module is used for receiving a service package installation instruction and determining service package configuration information according to the service package installation instruction;
the service package obtaining module is used for matching out a target service package corresponding to the service package information according to the service package configuration information;
and the service package installation module is used for calling the target service package and carrying out installation operation on the target service package.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a service package configuration calling program stored in the memory and operable on the processor, and the processor implements the steps of the service package configuration calling method according to any one of claims 1 to 7 when executing the service package configuration calling program.
10. A computer-readable storage medium, having stored thereon a service package configuration invocation program which, when executed by a processor, performs the steps of the service package configuration invocation method recited in any one of claims 1-7.
CN202111493666.1A 2021-12-08 2021-12-08 Service package configuration calling method and device, terminal equipment and storage medium Pending CN114296776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111493666.1A CN114296776A (en) 2021-12-08 2021-12-08 Service package configuration calling method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111493666.1A CN114296776A (en) 2021-12-08 2021-12-08 Service package configuration calling method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114296776A true CN114296776A (en) 2022-04-08

Family

ID=80965694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111493666.1A Pending CN114296776A (en) 2021-12-08 2021-12-08 Service package configuration calling method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114296776A (en)

Similar Documents

Publication Publication Date Title
CN111651178A (en) Container configuration updating method and device, computer equipment and storage medium
EP1739524B1 (en) System and method for controlling energy usage in mobile application
CN108121594B (en) Process management method and device
CN110659131B (en) Task processing method, electronic device, computer equipment and storage medium
CN106775876B (en) Method for quickly starting application by android system
CN104699503A (en) Method and device for replacing function execution logic in Android system
CN111309303B (en) Code generation method and device, computer equipment and storage medium
CN108241516B (en) Embedded system program loading method and device, computer equipment and storage medium
CN114661580A (en) Flow recording playback method and device, computer equipment and storage medium
CN110851151A (en) Method, device, terminal, server and storage medium for pre-installing application
CN114296776A (en) Service package configuration calling method and device, terminal equipment and storage medium
CN109271792B (en) Terminal peripheral control method and device based on Android local layer hook
CN110727477A (en) Component loading method and device, computer equipment and storage medium
CN115374083A (en) Data source switching method and device, electronic equipment and storage medium
US20220413828A1 (en) Unified Local Patch Repository
CN112416446B (en) Linux network starting method and device based on Microsoft deployment system
CN111475763B (en) Webpage running method and device, storage medium and equipment
KR101950484B1 (en) Task Management Device for Providing Real-time Performance to Android
CN112860287A (en) System program upgrading method and device, computer equipment and storage medium
CN112214213A (en) Linux kernel development and management method and device, computer equipment and storage medium
CN112925526B (en) Compiling method, device, equipment and medium based on Leakcanary
CN112328316B (en) APP optimization method, mobile terminal and storage medium
CN115454535A (en) Application program loading method and device, computer equipment and storage medium
CN111008375B (en) Data protection method and device
CN113539351A (en) Solid state hard disk controller identity testing method and device and computer equipment

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