A Linux-based quick deployment platform and deployment method thereof
Through the cooperation of the client hardware information database and the Linux system information database, the problem of inconsistent application deployment complexity and hardware management in multi-user terminal devices is solved, and fast and simple application deployment is achieved, which improves deployment efficiency and flexibility of application systems.
Patent Information
- Application Number
- CN202111261380.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-28
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2041-10-28
AI Technical Summary
The application deployment process of the prior art in multi-user terminal devices is complicated, and the disk management and network blockage are caused by inconsistent hardware management, which reduces the platform deployment efficiency.
Through the cooperation of the client hardware information library and the Linux system information library, we collect and manage hardware information from different brands of servers to achieve a method of rapid deployment and application to other user spaces. This method includes instruction reception, application management, background deployment and collaborative work of prompt units, simplifying the operation process.
It realizes rapid and simple application deployment, reduces network inaccessibility caused by inconsistent hardware management, improves deployment efficiency, and makes application systems more flexible and responsive.
Smart Images

Figure CN114115914B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a quick deployment platform and a deployment method thereof, in particular to a quick deployment platform based on Linux and a deployment method thereof, belonging to the technical field of platform website deployment. Background Art
[0002] At present, when people use terminal devices, they usually establish multiple users in the terminal devices. Each user can have his or her own separate application configuration, which does not affect each other. That is, various terminals currently can only install or uninstall the applications of a specified user. If you want to install or uninstall applications of other users, you need to switch from the current user to other users and then perform the corresponding operations.
[0003] The LINUX operating system is a free-to-use and freely disseminated LUNIX-like operating system. Its kernel was first released by Linus Torvalds on October 5, 1991. It is a POSIX-based multi-user, multi-tasking operating system that supports multi-threading and multi-CPU. It can run major Unix tool software, applications and network protocols. It is a multi-user network operating system with stable performance.
[0004] The installation of the quick deployment platform has high requirements for disks and networks. The deployment implementation personnel themselves do not have a very good understanding of the network and hardware requirements for platform deployment. In the process of large-scale unified deployment and installation, they often encounter problems such as disk management and network disconnection caused by inconsistent hardware management, resulting in low platform deployment efficiency. The existing technology multi-user terminal application deployment operation process is complex and cumbersome.
[0005] China Invention Patent Publication No. CN 109634616 A discloses "a fast deployment PaaS platform", which includes: a gateway image, a service registration image, a platform UI image, and at least one platform service image, and the gateway image, the service registration image, the platform UI image, and the platform service image are all docker images running in a docker container. The fast deployment PaaS platform provided by the present invention makes the deployment of the PaaS platform faster through the docker image, thereby reducing the technical threshold of the PaaS platform. In the process of mass deployment and installation, problems such as disk management and network disconnection caused by inconsistent hardware management are often encountered, resulting in low platform deployment efficiency.
[0006] Therefore, there is an urgent need to improve the Linux quick deployment platform to solve the above-mentioned problems. Summary of the invention
[0007] The purpose of the present invention is to provide a Linux-based quick deployment platform and a deployment method thereof. Through the client hardware information library and the Linux system information library, the network disconnection and other problems caused by inconsistent hardware management can be reduced during the large-scale deployment and installation process, and the application of the current space can be quickly deployed to other user spaces. The operation process is simple, and the application system is made more flexible, so as to respond more flexibly and faster to the changing user needs, thereby ensuring the consistency of various services.
[0008] In order to achieve the above object, the main technical solutions adopted by the present invention include:
[0009] A Linux-based quick deployment platform includes a client hardware information library and a Linux system information library that establishes a communication connection with the client hardware information library, wherein the client hardware information library is used to collect hardware information of different types of servers, and the Linux system information library is used to collect hardware information of different platform nodes and quick deployment solutions corresponding to the platform;
[0010] The platform nodes include computing nodes, network nodes, storage nodes and database nodes, and the platform nodes establish a communication connection with the client hardware information library;
[0011] Through the above technical solutions, servers of different brands contain different hardware, and when platforms are deployed on servers of different brands, the platform deployment solutions are also different. The platform nodes run on the client hardware information library.
[0012] Platform nodes include computing nodes, network nodes, storage nodes, and database nodes. The client hardware information library hardware of all nodes of a single platform constitutes hardware information;
[0013] The client hardware information library includes an instruction receiving unit, an application management unit, a background deployment unit and a prompt unit;
[0014] The instruction receiving unit is used for receiving instructions from the Linux system information library;
[0015] The application management unit is used to obtain the target user to be deployed according to the instruction;
[0016] The background deployment unit is used to install the application to be deployed to the target user;
[0017] The prompt unit is used to output information prompts of the application to be deployed;
[0018] Through the above technical solution, after the target user space installs the application to be deployed, the terminal desktop will be automatically refreshed to update the user space in time;
[0019] The instruction receiving unit receives the instruction to deploy the application of the current user space to other user spaces. The application management unit obtains the target user to be deployed according to the instruction. The background deployment unit installs the application to be deployed to the target user. At the same time, the prompt unit can provide information prompts in real time, so as to realize the rapid deployment of the application of the current space to other user spaces. The operation process is simple and fast.
[0020] The Linux system repository includes the protocol converter, service registry connector, platform UI connector, and platform service connector;
[0021] The protocol converter establishes a communication connection with the client hardware information library, and the protocol converter is used to receive service requests from the client hardware information library and distribute them to other converters in the platform;
[0022] The service registration connector establishes a communication connection with the protocol converter, and the service registration connector is used to register the Linux system information repository;
[0023] The platform UI connector establishes a communication connection with the protocol converter, and the platform UI connector is used to provide a unified UI interface;
[0024] Several platform service connectors all establish communication connections with the protocol converter, the service registration connector, and the platform UI connector;
[0025] The Linux repository also includes database connectors and cache connectors;
[0026] The database connector establishes a communication connection with the platform service connector, and the database connector is used to store data for the platform service connector;
[0027] The cache connector establishes a communication connection with the platform service connector, and the cache connector is used to cache the data of the platform service connector;
[0028] Through the above technical solutions, the application system becomes more flexible so that it can respond more flexibly and quickly to the ever-changing needs of users and ensure the consistency of various services.
[0029] The application management unit includes a pop-up module, an information receiving module and an acquisition module;
[0030] The pop-up module is used to pop up the corresponding icon according to the instruction;
[0031] The information receiving module is used to receive icon information and icon dragging position information;
[0032] The acquisition module is used to acquire the application corresponding to the location information;
[0033] Through the above technical solution, according to the instruction, a window bar including all user icons of the terminal is popped up, and the information that the user drags the icon to the designated user icon position in the window bar and stops dragging is received, and the user corresponding to the user icon position is obtained as the target user;
[0034] On the terminal desktop, long press the application icon and drag the icon to the side of the current user space;
[0035] A window bar pops up on the side of the current user space;
[0036] The user drags the icon to the location of the user icon to be deployed and stops dragging;
[0037] The application corresponding to the icon obtained by the platform is the application to be deployed;
[0038] Get the user corresponding to the specified user icon position as the target user;
[0039] Install the application to be deployed to the specified user space, and uninstall the application to be deployed in the current user space after the deployment is completed;
[0040] The operation is simple and fast, which improves the efficiency of use.
[0041] The platform service connector includes a download module, an authentication service module, and a management service module;
[0042] The download module is used to obtain application software from the Internet;
[0043] The authentication service module is used to authenticate users;
[0044] The management service module is used to identify and manage the loaded applications;
[0045] Through the above technical solution, the download module can obtain application software programs from the Internet. Before downloading, the user needs to be authenticated to ensure the security of the network and the download program. After downloading, the loaded application is identified and managed through the management service module to prevent malicious software and improve the security of the platform.
[0046] The application management unit also includes:
[0047] The setting module sets the icon in the client hardware information library, which has a high degree of automation. When the user does not need to drag the application, the setting module will automatically install it, thereby improving the convenience of use;
[0048] The management service module is used to trigger the memory overflow mechanism of the client hardware information library to release the memory space when the installation fails in the icon, and deploy the application to be deployed;
[0049] Through the above technical solution, the initialization module is used to initialize the location information on the information receiving module. Once the installation in the icon fails, the initialization module can initialize the application. That is to say, once the installation is unsuccessful, the platform can install the application again by itself, greatly improving the convenience of use.
[0050] A deployment method based on a Linux-based quick deployment platform comprises the following steps:
[0051] Step 1: The instruction receiving unit on the client hardware information library receives the deployment instruction targeted by the Linux system information library;
[0052] Step 2: the prompt unit on the client hardware information repository responds to the deployment instruction and loads the application to the Linux system information repository through the platform service connector on the Linux system information repository;
[0053] Step 3: The platform service connector loads the application to the platform UI connector through the background deployment unit, manages and deploys the application through the application management unit, and packages the application file;
[0054] Step 4: Decompress the application program file, and then install the application to be deployed on the Linux system information repository.
[0055] Preferably, the program file is a file with a war extension.
[0056] Preferably, the step 4 is specifically as follows:
[0057] When the application fails to load the icon, the application management unit uninstalls the original application and reallocates memory space for the application.
[0058] Preferably, the client hardware information library also includes:
[0059] an acquisition unit, configured to acquire category data of a plurality of servers, and divide the category data to obtain sub-category data;
[0060] The acquisition unit is further configured to acquire the subcategory of each server based on the subcategory data, and acquire an identifier corresponding to the subcategory from the category identifier, thereby obtaining an identifier set corresponding to each server;
[0061] A generating unit, configured to generate a type identifier corresponding to the server according to the identifier set;
[0062] A partitioning unit, configured to partition a corresponding storage space for each server based on a type identifier corresponding to the server;
[0063] The partitioning unit is further configured to obtain a client set under the server, and partition the storage space based on the client set to obtain a sub-storage space for each client;
[0064] an allocating unit, configured to allocate a network signal strength for acquiring hardware information to each server based on a network scale level in the server category data;
[0065] A calling unit, configured to extract preset interface data in the hardware requirement table according to the hardware requirement table of each client in the client set, match the preset interface data with the target interface data of the interface in the server, and call a corresponding interface for each client according to the matching result;
[0066] A determination unit, configured to collect corresponding hardware information from the interface, and determine whether the hardware corresponding to the hardware information is consistent with the hardware in the hardware requirement table;
[0067] If so, transmitting the hardware information to the storage space and the sub-storage space based on the network signal strength;
[0068] Otherwise, report to the server and call the interface again;
[0069] A monitoring unit, configured to monitor the operation of the client on the server, update the hardware requirement table based on the monitoring result, and obtain the update result;
[0070] The storage operation unit is used to locate the storage space and sub-storage space of the changed hardware information according to the update result, and based on the update result, perform corresponding addition, deletion and replacement operations on the hardware information of the storage space and sub-storage space.
[0071] Preferably, the background deployment unit includes:
[0072] an extraction unit, configured to parse the application information to be deployed, obtain the application code, and extract first characteristic data of the application code, parse the installation information to be deployed, obtain a related program installation package, and extract second characteristic data of the related installation package;
[0073] The extraction unit is further configured to set a first environmental factor based on the first characteristic data and extract a first environmental variable from the first environmental factor, and to set a second environmental factor based on the second characteristic data and extract a second environmental variable from the second environmental factor;
[0074] An analysis unit, configured to obtain, based on a preset standard environment, an environmental reliability under the condition that the first environmental variable and the second environmental variable act together;
[0075] A variable extraction unit, configured to extract a third environmental variable that affects the reliability from the first environmental variable and the second environmental variable if the environmental factor matching degree is less than a preset reliability, and obtain environmental parameters under the condition that the first environmental factor and the second environmental factor act together;
[0076] a variable correction unit, configured to determine a difference between the third environmental variable and the environmental parameter, set a correction coefficient for the third environmental factor based on the difference, and correct the third environmental variable based on the correction coefficient to obtain a fourth environmental variable;
[0077] A variable replacement unit, used for extracting a third environment variable from the first environment variable and the second environment variable and replacing it with a fourth environment variable to obtain a corresponding fifth environment variable and a sixth environment variable;
[0078] a variable fusion unit, configured to determine an association relationship between the fifth environment variable and the sixth environment variable, and based on the association relationship, determine an execution order of the fifth environment variable and the sixth environment variable, and based on the execution order, complete variable fusion of the fifth environment variable and the sixth environment variable to obtain an execution environment;
[0079] The deployment execution unit is used to obtain a corresponding installation script based on the execution environment, and install the application to be deployed to the target user based on the installation script.
[0080] The present invention has at least the following beneficial effects:
[0081] 1. Through the client hardware information library and the Linux system information library, the network problems caused by inconsistent hardware management will be reduced during the large-scale deployment and installation process, and the application of the current space can be quickly deployed to other user spaces. The operation process is simple and the application system becomes more flexible, so that it can respond more flexibly and quickly to the changing user needs, ensuring the consistency of various services.
[0082] 2. An initialization module is used to initialize the location information on the information receiving module. Once the installation in the icon fails, the initialization module can initialize the application. That is to say, once the installation fails, the platform can install the application again by itself, greatly improving the convenience of use. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0084] Figure 1 is a schematic diagram of the present invention;
[0085] Figure 2 is a flow chart of the method of the present invention;
[0086] Figure 3 This is a structural diagram of the application management unit of the present invention;
[0087] Figure 4 It is a platform node structure diagram of the present invention;
[0088] Figure 5 This is a structural diagram of the platform service connector of the present invention;
[0089] Figure 6 It is a structural diagram of the client hardware information library in the present invention;
[0090] Figure 7 It is a structural diagram of the background deployment unit of the present invention.
[0091] In the figure, 1-client hardware information library, 2-Linux system information library, 3-server, 4-protocol converter, 5-service registration connector, 6-platform UI connector, 7-platform service connector, 701-download module, 702-authentication service module, 703-management service module, 8-platform node, 801-computing node, 802-network node, 803-storage node, 804-database node, 9-instruction receiving unit, 10-application management unit, 11-background deployment unit, 12-prompt unit, 13-pop-up module, 14-information receiving module, 15-acquisition module, 16-database connector, 17-cache connector, 18-setting module, 19-initialization module. DETAILED DESCRIPTION
[0092] The following will describe the implementation methods of the present application in detail with the help of accompanying drawings and examples, so that the implementation process of how the present application uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
[0093] like Figure 1-Figure 5As shown, the Linux-based quick deployment platform and deployment method provided in this embodiment include a client hardware information library 1 and a Linux system information library 2 that establishes a communication connection with the client hardware information library 1, wherein the client hardware information library 1 is used to collect hardware information of different types of servers 3, and the Linux system information library 2 is used to collect hardware information of different platform nodes 8 and quick deployment solutions corresponding to the platform;
[0094] The platform node 8 includes a computing node 801, a network node 802, a storage node 803 and a database node 804. The platform node 8 establishes a communication connection with the client hardware information library 1;
[0095] The servers 3 of different brands have different hardware included in them, and when the platforms are deployed on the servers 3 of different brands, the platform deployment schemes are also different. The platform node 8 runs on the client hardware information library 1;
[0096] The platform node 8 includes a computing node 801, a network node 802, a storage node 803, and a database node 802. The client hardware information library 1 hardware structure of all nodes of a single platform is hardware information;
[0097] The client hardware information library 1 includes an instruction receiving unit 9, an application management unit 10, a background deployment unit 11 and a prompt unit 12;
[0098] The instruction receiving unit 9 is used to receive instructions from the Linux system information library 2;
[0099] The application management unit 10 is used to obtain the target user to be deployed according to the instruction;
[0100] The background deployment unit 11 is used to install the application to be deployed to the target user;
[0101] The prompt unit 12 is used to output information prompts of the application to be deployed;
[0102] After the target user space has installed the application to be deployed, the terminal desktop will be automatically refreshed to update the user space in time;
[0103] The instruction receiving unit 9 receives the instruction to deploy the application of the current user space to other user spaces, the application management unit 10 obtains the target user to be deployed according to the instruction, the background deployment unit 11 installs the application to be deployed to the target user, and the prompt unit 12 can provide information prompts in real time, so as to realize the rapid deployment of the application of the current space to other user spaces, and the operation process is simple and fast;
[0104] The Linux system information base 2 includes a protocol converter 4, a service registration connector 5, a platform UI connector 6 and a platform service connector 7;
[0105] The protocol converter 4 establishes a communication connection with the client hardware information library 1. The protocol converter 4 is used to receive the service request of the client hardware information library 1 and distribute it to other converters in the platform;
[0106] The service registration connector 5 establishes a communication connection with the protocol converter 4, and the service registration connector 5 is used to register the Linux system information repository 2;
[0107] The platform UI connector 6 establishes a communication connection with the protocol converter 4, and the platform UI connector 6 is used to provide a unified UI interface;
[0108] Several platform service connectors 7 all establish communication connections with the protocol converter 4, the service registration connector 5 and the platform UI connector 6;
[0109] The Linux system information repository 2 also includes a database connector 16 and a cache connector 17;
[0110] The database connector 16 establishes a communication connection with the platform service connector 7, and the database connector 16 is used to store data for the platform service connector 7;
[0111] The cache connector 17 establishes a communication connection with the platform service connector 7, and the cache connector 17 is used to cache the data of the platform service connector 7;
[0112] Make the application system more flexible so that it can respond more flexibly and quickly to the ever-changing needs of users and ensure the consistency of various services.
[0113] In this embodiment, if Figure 3 As shown, the application management unit 10 includes a pop-up module 13, an information receiving module 14 and an acquisition module 15;
[0114] The pop-up module 13 is used to pop up the corresponding icon according to the instruction;
[0115] The information receiving module 14 is used to receive icon information and icon dragging position information;
[0116] The acquisition module 15 is used to acquire the application corresponding to the location information;
[0117] According to the instruction, a window bar including all user icons of the terminal is popped up, information that the user drags the icon to the designated user icon position in the window bar and stops dragging is received, and the user corresponding to the user icon position is obtained as the target user;
[0118] On the terminal desktop, long press the application icon and drag the icon to the side of the current user space;
[0119] A window bar pops up on the side of the current user space;
[0120] The user drags the icon to the location of the user icon to be deployed and stops dragging;
[0121] The application corresponding to the icon obtained by the platform is the application to be deployed;
[0122] Get the user corresponding to the specified user icon position as the target user;
[0123] Install the application to be deployed to the specified user space, and uninstall the application to be deployed in the current user space after the deployment is completed;
[0124] The operation is simple and fast, which improves the efficiency of use.
[0125] In this embodiment, if Figure 5 As shown, the platform service connector 7 includes a download module 701, an authentication service module 702, and a management service module 703;
[0126] The download module 701 is used to obtain application software from the Internet;
[0127] The authentication service module 702 is used to authenticate the user;
[0128] The management service module 703 is used to identify and manage the loaded applications;
[0129] The download module 701 can obtain application software programs from the Internet. Before downloading, the user needs to be authenticated to ensure the security of the network and the downloaded program. After downloading, the management service module 703 identifies and manages the loaded application to prevent malicious software and improve the security of the platform.
[0130] The application management unit 10 also includes:
[0131] The setting module 18 sets the icon in the client hardware information library 2, which has a high degree of automation. When the user does not need to drag the application, the setting module 18 will automatically install it, thereby improving the convenience of use;
[0132] The management service module 703 is used to trigger the memory overflow mechanism of the client hardware information library 2 to release the memory space and deploy the application to be deployed when the installation fails in the icon;
[0133] The initialization module 19 is used to initialize the location information on the information receiving module 14. Once the installation in the icon fails, the initialization module 19 can initialize the application. That is to say, once the installation is unsuccessful, the platform can reinstall the application by itself, greatly improving the convenience of use.
[0134] like Figure 1-Figure 5 As shown, the deployment method of the Linux-based quick deployment platform provided in this embodiment includes the following steps:
[0135] Step 1: the instruction receiving unit 9 on the client hardware information library 1 receives the deployment instruction targeted by the Linux system information library 2;
[0136] Step 2: the prompt unit 12 on the client hardware information repository 1 responds to the deployment instruction and loads the application to the Linux system information repository 2 through the platform service connector 7 on the Linux system information repository 2;
[0137] Step 3: The platform service connector 7 loads the application to the platform UI connector 6 through the background deployment unit 11, manages and deploys the application through the application management unit 10, and packages the application file, which is a file with a war extension;
[0138] Step 4: Decompress the application file and then install the application to be deployed to the Linux system information repository 2.
[0139] Step 4 is as follows:
[0140] When the icon loading of the application fails, the application management unit 10 uninstalls the original application and reallocates memory space for the application.
[0141] In one embodiment, Figure 6 As shown, the client hardware information library 1 also includes:
[0142] an acquisition unit, configured to acquire category data of a plurality of servers, and divide the category data to obtain sub-category data;
[0143] The acquisition unit is further configured to acquire the subcategory of each server based on the subcategory data, and acquire an identifier corresponding to the subcategory from the category identifier, thereby obtaining an identifier set corresponding to each server;
[0144] A generating unit, configured to generate a type identifier corresponding to the server according to the identifier set;
[0145] A partitioning unit, configured to partition a corresponding storage space for each server based on a type identifier corresponding to the server;
[0146] The partitioning unit is further configured to obtain a client set under the server, and partition the storage space based on the client set to obtain a sub-storage space for each client;
[0147] an allocating unit, configured to allocate a network signal strength for acquiring hardware information to each server based on a network scale level in the server category data;
[0148] A calling unit, configured to extract preset interface data in the hardware requirement table according to the hardware requirement table of each client in the client set, match the preset interface data with the target interface data of the interface in the server, and call a corresponding interface for each client according to the matching result;
[0149] A determination unit, configured to collect corresponding hardware information from the interface, and determine whether the hardware corresponding to the hardware information is consistent with the hardware in the hardware requirement table;
[0150] If so, transmitting the hardware information to the storage space and the sub-storage space based on the network signal strength;
[0151] Otherwise, report to the server and call the interface again;
[0152] A monitoring unit, configured to monitor the operation of the client on the server, update the hardware requirement table based on the monitoring result, and obtain the update result;
[0153] The storage operation unit is used to locate the storage space and sub-storage space of the changed hardware information according to the update result, and based on the update result, perform corresponding addition, deletion and replacement operations on the hardware information of the storage space and sub-storage space.
[0154] In this embodiment, the sub-category data of the multiple servers include network scale category, chip category, and usage category data, and their corresponding identifiers may be, for example, in the network scale category data, the identifier corresponding to the department-level server is 001a, and the identifier corresponding to the enterprise-level server is 001b; in the chip category data, the identifier corresponding to the complex instruction set server is 001002a, and the identifier corresponding to the reduced instruction set server is 001002b. If the server type is enterprise-level or complex instruction set, the corresponding category identification is determined by the identifiers 001b and 001002a. Setting the category identification provides a basis for classified storage.
[0155] In this embodiment, different servers correspond to different storage spaces, and different clients under the server correspond to different sub-storage spaces. By dividing different storage spaces, the efficiency and accuracy of subsequently obtaining hardware information from the client hardware information library are improved.
[0156] In this embodiment, the determination of the network scale level in the server type data can be, for example, that the level of the department-level server is lower than that of the enterprise-level server. The lower the level, the weaker the corresponding network signal strength distribution. By allocating signal strength, waste of network resources is avoided.
[0157] In this embodiment, by determining whether the hardware corresponding to the hardware information is consistent with the hardware in the hardware requirement table, the accuracy of the collected hardware information is ensured.
[0158] In this embodiment, the monitoring unit can timely discover changes in the client, which facilitates timely modification of the hardware information and ensures the accuracy of the hardware information.
[0159] The beneficial effects of the above design scheme are: through the classification of servers and clients by the client hardware information library, regular storage and updating of hardware information is achieved, and reasonable storage of hardware information of multiple servers is achieved, providing convenient and comprehensive hardware information for subsequent deployment, thereby solving problems such as network connectivity caused by inconsistent hardware management during hardware deployment.
[0160] In one embodiment, Figure 7 As shown, the background deployment unit 11 includes:
[0161] an extraction unit, configured to parse the application information to be deployed, obtain the application code, and extract first characteristic data of the application code, parse the installation information to be deployed, obtain a related program installation package, and extract second characteristic data of the related installation package;
[0162] The extraction unit is further configured to set a first environmental factor based on the first characteristic data and extract a first environmental variable from the first environmental factor, and to set a second environmental factor based on the second characteristic data and extract a second environmental variable from the second environmental factor;
[0163] An analysis unit, configured to obtain, based on a preset standard environment, an environmental reliability under the condition that the first environmental variable and the second environmental variable act together;
[0164] A variable extraction unit, configured to extract a third environmental variable that affects the reliability from the first environmental variable and the second environmental variable if the environmental factor matching degree is less than a preset reliability, and obtain environmental parameters under the condition that the first environmental factor and the second environmental factor act together;
[0165] a variable correction unit, configured to determine a difference between the third environmental variable and the environmental parameter, set a correction coefficient for the third environmental factor based on the difference, and correct the third environmental variable based on the correction coefficient to obtain a fourth environmental variable;
[0166] A variable replacement unit, used for extracting a third environment variable from the first environment variable and the second environment variable and replacing it with a fourth environment variable to obtain a corresponding fifth environment variable and a sixth environment variable;
[0167] a variable fusion unit, configured to determine an association relationship between the fifth environment variable and the sixth environment variable, and based on the association relationship, determine an execution order of the fifth environment variable and the sixth environment variable, and based on the execution order, complete variable fusion of the fifth environment variable and the sixth environment variable to obtain an execution environment;
[0168] The deployment execution unit is used to obtain a corresponding installation script based on the execution environment, and install the application to be deployed to the target user based on the installation script.
[0169] In this embodiment, the first environmental factor is an environmental factor required to ensure the normal operation of the application, such as a network resource environment factor, an operating system environment factor, an auxiliary software environment factor, etc. The first environment variable can be, for example, a network resource environment variable, an operating system environment variable, an auxiliary software environment variable.
[0170] In this embodiment, the second environmental factor is an environmental factor required to ensure normal installation of the application, such as a network resource environmental factor, a domain name environmental factor, etc. The second environmental variable may be, for example, a network resource environmental variable or a domain name environmental variable.
[0171] In this embodiment, the preset standard environment specifies the variable range between the first environment variable and the second environment variable. For example, the value range of the network resource environment variable is [01001, 11110]. If the value of the network resource environment variable in the first environment variable and the second environment variable is not within the range, it is determined to be a variable that affects reliability and needs to be corrected based on the difference between its value and the value range.
[0172] In this embodiment, the association relationship between the fifth environment variable and the sixth environment variable can be, for example: there is a parallel relationship between network resource environment variables, there is a determination relationship between operating system environment variables and domain name environment variables, and there is a parallel relationship between auxiliary software environment variables and domain name environment variables.
[0173] The beneficial effect of the above design scheme is: by respectively obtaining the code program and installation package information of the application information to be deployed, and preliminarily setting the environment variables for them, and replacing the environment variables according to the fusion relationship between the environment variables, the reliability of the environment variables is guaranteed, and the smooth installation of the application to be deployed is guaranteed. By changing the environment variables, the application system becomes more flexible, so as to respond more flexibly and faster to the usage needs of constantly changing users.
[0174] In one embodiment, the application management unit 10 further includes:
[0175] An instruction parsing unit, used to parse the instruction to obtain object feature data of the instruction, divide the object feature data into n feature sequences according to object attributes, and obtain feature values of the feature data in each feature sequence;
[0176] A vector calculation unit, used for calculating an object feature vector of the object feature data based on the feature value;
[0177] The calculation formula of the object feature vector N is as follows:
[0178]
[0179] N={N1,N2,...,N n}
[0180] Among them, N i represents the i-th element of the object feature vector N, and also represents the vector value corresponding to the i-th feature sequence, T i represents the preset reference eigenvalue of the i-th feature sequence, λ i represents the weight value of the ith feature sequence, which is (0.3, 0.9), s represents the number of feature data under the ith feature sequence, and t imax represents the maximum eigenvalue of the feature data under the i-th feature sequence, t imin represents the maximum minimum eigenvalue of the feature data under the i-th feature sequence, t ij represents the characteristic value of the jth characteristic data under the i-th characteristic sequence, and n represents the number of characteristic sequences;
[0181] The user analysis unit is used to obtain the user information stored in the client hardware information library 1, and encode the user information to obtain a user feature vector P of the user information = {P1, P2, ..., P n};
[0182] A matching degree calculation unit, used to calculate the matching degree between the object feature vector and the user feature vector;
[0183] The calculation formula of the matching degree is as follows:
[0184]
[0185] Among them, τ represents the matching degree between the object feature vector and the user feature vector, P i represents the i-th vector value of the user feature vector, α represents the matching influence factor of the object feature vector, and β represents the matching influence factor of the user feature vector;
[0186] The user determination unit is used to obtain the user corresponding to the matching degree P that meets the matching requirement, that is, the target user to be deployed.
[0187] In this embodiment, the object feature vector and the user feature vector have the same vector length, and each vector value corresponds to each other.
[0188] In this embodiment, the object attributes include the user's name, the user's identity characteristics, the user's IP address, the user's account number, the user's registration time, the user's credit rating, etc.
[0189] In this embodiment, the characteristic values of the characteristic data may be, for example, three characteristic values corresponding to the user's name, which are 1.2, 1.5, and 1.4, respectively, or three characteristic values corresponding to the user's identity characteristics, which are 2.3, 2.1, and 2.0, respectively.
[0190] In this embodiment, the preset reference feature value of the i-th feature sequence may be, for example, a reference feature value corresponding to the user's name of 1.3, and a preset reference feature value corresponding to the user's identity feature of 2.1.
[0191] In this embodiment, the weight value of the i-th feature sequence may be, for example, a weight value of the user's identity feature of 0.80, a weight value of the user's credit rating of 0.45, and a weight value of the user's name of 0.65.
[0192] In this embodiment, the matching influence factor of the object feature vector and the matching influence factor of the user feature vector are used to eliminate the error caused by the inconsistency between the acquisition method of the object feature vector and the user feature vector.
[0193] In this embodiment, corresponding to For example, it can be T i =1.3, t imax -t imin =1.5-1.2=0.3,λ i =0.65, then N i =73.
[0194] In this embodiment, for the formula For example, it can be: α = 0.5, β = 0.7, N i =73, P i =68, then Then it is predicted that n=2.32. If the matching pairs required for matching are 3.00, it means that the user corresponding to the current user feature vector is not the target user.
[0195] The beneficial effects of the above design scheme are: by parsing the instructions, matching the object data in the instructions with the user data, ensuring the security, accuracy and efficiency of instruction acquisition, providing a basis for deployment and installation, and making the application system more flexible so as to respond more flexibly and quickly to the ever-changing user needs.
[0196] For example, certain words are used in the specification and claims to refer to specific components. Those skilled in the art should understand that hardware manufacturers may use different terms to refer to the same component. This specification and claims do not use differences in names as a way to distinguish components, but use differences in the functions of components as the criteria for distinction. For example, "including" mentioned throughout the specification and claims is an open term, so it should be interpreted as "including but not limited to". "Approximately" means that within an acceptable error range, those skilled in the art can solve technical problems within a certain error range and basically achieve technical effects.
[0197] It should be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.
[0198] The above description shows and describes several preferred embodiments of the present invention, but as mentioned above, it should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the invention concept described herein through the above teachings or the technology or knowledge of the relevant field. Changes and variations made by those skilled in the art do not depart from the spirit and scope of the present invention, and should be within the scope of protection of the claims attached to the present invention.
Claims
1. A Linux-based quick deployment platform, comprising a client hardware information library (1) and a Linux system information library (2) communicating with the client hardware information library (1), characterized in that: The client hardware information library (1) is used to collect hardware information of different types of servers (3); the Linux system information library (2) is used to collect hardware information of different platform nodes (8) and the quick deployment solutions corresponding to the platforms; The client hardware information library (1) comprises an instruction receiving unit (9), an application management unit (10), a background deployment unit (11) and a prompting unit (12); The instruction receiving unit (9) is used to receive instructions from the Linux system information library (2); The application management unit (10) is used for acquiring target users to be deployed according to the instruction; The background deployment unit (11) is used to install the application to be deployed to the target user; The prompt unit (12) is used to output information prompts of the application to be deployed; The Linux system information library (2) includes a protocol converter (4), a service registration connector (5), a platform UI connector (6) and a platform service connector (7); The protocol converter (4) establishes a communication connection with the client hardware information library (1), and the protocol converter (4) is used to receive service requests from the client hardware information library (1) and distribute them to other converters in the platform; The service registration connector (5) establishes a communication connection with the protocol converter (4), and the service registration connector (5) is used to register the Linux system information library (2); The platform UI connector (6) establishes a communication connection with the protocol converter (4), and the platform UI connector (6) is used to provide a unified UI interface; A plurality of the platform service connectors (7) establish communication connections with the protocol converter (4), the service registration connector (5) and the platform UI connector (6).
2. A Linux-based quick deployment platform according to claim 1, characterized in that: The platform node (8) includes a computing node (801), a network node (802), a storage node (803) and a database node (804), and the platform node (8) establishes a communication connection with the client hardware information library (1).
3. A Linux-based quick deployment platform according to claim 1, characterized in that: The application management unit (10) comprises a pop-up module (13), an information receiving module (14) and an acquisition module (15); The pop-up module (13) is used to pop up a corresponding icon according to the instruction; The information receiving module (14) is used to receive icon information and icon dragging position information; The acquisition module (15) is used to acquire the application corresponding to the location information.
4. A Linux-based quick deployment platform according to claim 1, characterized in that: The platform service connector (7) comprises a download module (701), an authentication service module (702), and a management service module (703); The download module (701) is used to obtain application software from the Internet; The authentication service module (702) is used to authenticate the user's identity; The management service module (703) is used to identify and manage the loaded applications.
5. A Linux-based quick deployment platform according to claim 1, characterized in that: The Linux system information library (2) further comprises a database connector (16) and a cache connector (17); The database connector (16) establishes a communication connection with the platform service connector (7), and the database connector (16) is used to store data of the platform service connector (7); The cache connector (17) establishes a communication connection with the platform service connector (7), and the cache connector (17) is used to cache data of the platform service connector (7).
6. A Linux-based quick deployment platform according to claim 3, characterized in that: The application management unit (10) further comprises: A setting module (18), used for setting a memory area of the icon in the client hardware information library (2); An initialization module (19) is used to initialize the location information on the information receiving module (14).
7. A Linux-based quick deployment platform according to claim 4, characterized in that: The management service module (703) is used to trigger the memory overflow mechanism of the client hardware information library (2) to release the memory space when the icon fails to be installed in the memory area, and to deploy the application to be deployed.
8. The Linux-based quick deployment platform according to claim 1, characterized in that: The client hardware information library (1) also includes: an acquisition unit, configured to acquire category data of a plurality of servers, and divide the category data to obtain sub-category data; The acquisition unit is further configured to acquire the subcategory of each server based on the subcategory data, and acquire an identifier corresponding to the subcategory from the category identifier, thereby obtaining an identifier set corresponding to each server; A generating unit, configured to generate a type identifier corresponding to the server according to the identifier set; A partitioning unit, configured to partition a corresponding storage space for each server based on a type identifier corresponding to the server; The partitioning unit is further configured to obtain a client set under the server, and partition the storage space based on the client set to obtain a sub-storage space for each client; an allocating unit, configured to allocate a network signal strength for acquiring hardware information to each server based on a network scale level in the server category data; A calling unit, configured to extract preset interface data in the hardware requirement table according to the hardware requirement table of each client in the client set, match the preset interface data with the target interface data of the interface in the server, and call a corresponding interface for each client according to the matching result; A determination unit, configured to collect corresponding hardware information from the interface, and determine whether the hardware corresponding to the hardware information is consistent with the hardware in the hardware requirement table; If so, transmitting the hardware information to the storage space and the sub-storage space based on the network signal strength; Otherwise, report to the server and call the interface again; A monitoring unit, configured to monitor the operation of the client on the server, update the hardware requirement table based on the monitoring result, and obtain the update result; The storage operation unit is used to locate the storage space and sub-storage space of the changed hardware information according to the update result, and based on the update result, perform corresponding addition, deletion and replacement operations on the hardware information of the storage space and sub-storage space.
9. The Linux-based quick deployment platform according to claim 1, characterized in that: The background deployment unit (11) comprises: An extraction unit, configured to parse the application information to be deployed, obtain the application code, and extract first characteristic data of the application code, parse the installation information to be deployed, obtain the relevant program installation package, and extract second characteristic data of the relevant installation package; The extraction unit is further configured to set a first environmental factor based on the first characteristic data and extract a first environmental variable from the first environmental factor, and to set a second environmental factor based on the second characteristic data and extract a second environmental variable from the second environmental factor; An analysis unit, configured to obtain, based on a preset standard environment, an environmental reliability under the condition that the first environmental variable and the second environmental variable act together; A variable extraction unit, configured to extract a third environmental variable that affects the reliability from the first environmental variable and the second environmental variable if the environmental factor matching degree is less than a preset reliability, and obtain environmental parameters under the condition that the first environmental factor and the second environmental factor act together; a variable correction unit, configured to determine a difference between the third environmental variable and the environmental parameter, set a correction coefficient for the third environmental factor based on the difference, and correct the third environmental variable based on the correction coefficient to obtain a fourth environmental variable; A variable replacement unit, used for extracting a third environment variable from the first environment variable and the second environment variable and replacing it with a fourth environment variable to obtain a corresponding fifth environment variable and a sixth environment variable; a variable fusion unit, configured to determine an association relationship between the fifth environment variable and the sixth environment variable, and based on the association relationship, determine an order of the fifth environment variable and the sixth environment variable, and based on the order, complete variable fusion of the fifth environment variable and the sixth environment variable to obtain an execution environment; The deployment execution unit is used to obtain a corresponding installation script based on the execution environment, and install the application to be deployed to the target user based on the installation script.
10. A deployment method of a Linux-based quick deployment platform, based on the Linux-based quick deployment platform of claim 1, characterized in that: The following steps are involved: Step 1: The instruction receiving unit (9) on the client hardware information library (1) receives the deployment instruction targeted by the Linux system information library (2); Step 2: the prompt unit (12) on the client hardware information repository (1) responds to the deployment instruction and loads the application program onto the Linux system information repository (2) through the platform service connector (7) on the Linux system information repository (2); Step 3: The platform service connector (7) loads the application onto the platform UI connector (6) through the background deployment unit (11), manages and deploys the application through the application management unit (10), and packages the application file; Step 4: Unzip the application file and then install the application to be deployed into the Linux system repository (2).
Citation Information
Patent Citations
PaaS platform capable of being deployed quickly
CN109634616A
Hardware unified adaptive management deployment method and system under Linux system
CN109660392A