CN115576572A - Project installation package deployment method, system, electronic device and readable storage medium - Google Patents

Project installation package deployment method, system, electronic device and readable storage medium Download PDF

Info

Publication number
CN115576572A
CN115576572A CN202211295559.2A CN202211295559A CN115576572A CN 115576572 A CN115576572 A CN 115576572A CN 202211295559 A CN202211295559 A CN 202211295559A CN 115576572 A CN115576572 A CN 115576572A
Authority
CN
China
Prior art keywords
file
project
module
installation package
customer
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
CN202211295559.2A
Other languages
Chinese (zh)
Inventor
王晓虎
邓春龙
吕林
黄明星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Geely Holding Group Co Ltd
Guangyu Mingdao Digital Technology Co Ltd
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Guangyu Mingdao Digital 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 Zhejiang Geely Holding Group Co Ltd, Guangyu Mingdao Digital Technology Co Ltd filed Critical Zhejiang Geely Holding Group Co Ltd
Priority to CN202211295559.2A priority Critical patent/CN115576572A/en
Publication of CN115576572A publication Critical patent/CN115576572A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system

Abstract

The invention relates to the technical field of project deployment, and discloses a project installation package deployment method, a system, electronic equipment and a readable storage medium.

Description

Project installation package deployment method, system, electronic device and readable storage medium
Technical Field
The invention relates to the technical field of project deployment, in particular to a project installation package deployment method, a project installation package deployment system, electronic equipment and a readable storage medium.
Background
Currently, a project developer develops an installation package for completing a target project in advance and delivers the installation package to different customers so as to deploy the target project in a customer environment through the project installation package.
However, different customers have different selected bottom storage modes, and if a target project is deployed in different customer environments, adaptive interface development needs to be performed on the corresponding bottom storage mode in the delivery process, so that many repeated steps are required, and additional development cost is caused.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
In view of the above shortcomings in the prior art, the present invention discloses a project installation package deployment method, system, electronic device and readable storage medium to reduce the development cost of project deployment.
The invention discloses a project installation package deployment method, which comprises the following steps: acquiring a basic installation package corresponding to a client project and acquiring a file storage mode adopted by a client environment; matching a corresponding target adaptation module from preset storage adaptation modules according to the file storage mode; weaving the matched target adaptation module into the basic installation package to obtain a project installation package corresponding to the client environment; and deploying the customer project in a corresponding customer environment according to the project installation package, so that the customer project implements a file storage mode corresponding to the customer environment through the target adaptation module.
Optionally, the customer project comprises a business layer, the business layer comprising at least one of: the file transmission module is used for executing a file uploading request and/or a file downloading request of the service file; the file management module is used for executing a file management instruction corresponding to the service file; and the folder management module is used for executing a folder management instruction corresponding to the service folder, wherein the service folder comprises at least one part of the service file.
Optionally, the method further comprises: a preset user management module is woven into the service layer through the project installation package, wherein the user management module is used for storing user registration information and file access authority corresponding to the user registration information; if user login information input by a user is received, carrying out user verification on the user login information based on the user registration information, and matching current access authority from the file access authority according to the user login information after the user verification is successful; and if a file access request or a file uploading request is received, matching the current access authority from the file access authority according to the user login information, inquiring a corresponding file access address according to the user access request after the authority verification is successful, and feeding back the inquired file access address.
Optionally, the service layer further includes at least one of: the speed limit module is used for controlling the file transmission speed of the service file in a preset speed interval; the space management module is used for executing a space management instruction of a storage space, wherein the storage space is used for storing the service file; the exception handling module is used for extracting the project exception codes of the customer project, displaying the project exception codes, matching a target solution from preset exception solutions according to the project exception codes, and executing the target solution; the data security module is used for encrypting data of at least one part of the service files according to a preset encryption algorithm to obtain encrypted data; the file counting module is used for carrying out data statistics on at least one part of service files according to a preset statistical algorithm to obtain a statistical result, rendering the statistical result to obtain a statistical chart and displaying the statistical chart; and the content distribution module is used for distributing and scheduling the service file according to a preset load balancing strategy.
Optionally, the customer project further comprises at least one of: the data layer is used for storing client project data through a database, wherein the client project data comprises at least one of the service file and the current access authority; the middleware layer is used for caching a preset encryption algorithm and/or providing a distributed lock for the client project; the external interface layer is used for providing an external connection interface and a software development kit for the customer project; and the log module is used for monitoring the client project and generating a monitoring log.
Optionally, the target adaptation module implements a file storage manner corresponding to the client environment by: acquiring a file format conversion interface and a file storage address; encoding the service file by using the file format conversion interface according to the file storage mode to obtain a file to be stored; and sending the file to be stored to the file storage address so as to store the file to be stored.
Optionally, after the customer project is deployed in the corresponding customer environment according to the project installation package, the method further includes: if the client environment adopts an alternative storage mode, matching a corresponding alternative adaptation module from preset storage adaptation modules according to the alternative storage mode, wherein the alternative storage mode is different from the file storage mode; weaving the matched alternative adaptation module into the basic installation package to obtain an alternative installation package corresponding to the client environment; and updating the client project deployed in the client environment according to the project installation package.
The invention discloses a project installation package deployment system, which comprises: the acquisition module is used for acquiring a basic installation package corresponding to a client project and acquiring a file storage mode adopted by a client environment; the matching module is used for matching a corresponding target adaptation module from preset storage adaptation modules according to the file storage mode; the weaving module is used for weaving the matched target adaptation module into the basic installation package to obtain a project installation package corresponding to the client environment; and the deployment module is used for deploying the customer project in the corresponding customer environment according to the project installation package, so that the customer project implements a file storage mode corresponding to the customer environment through the target adaptation module.
The invention discloses an electronic device, comprising: a processor and a memory; the memory is used for storing computer programs, and the processor is used for executing the computer programs stored by the memory so as to make the electronic equipment execute the method.
The invention discloses a computer-readable storage medium, on which a computer program is stored: which when executed by a processor implements the method described above.
The invention has the beneficial effects that:
matching a corresponding target adaptation module through a file storage mode of a client environment, then weaving the matched target adaptation module into a basic installation package corresponding to a client project, and deploying the client project in the client environment through a project installation package, so that the client project can perform data storage through the target adaptation module according to the corresponding file storage mode. Therefore, compared with the adaptation interface for redeveloping file storage in the project delivery process, the storage adaptation module is preset, different target adaptation modules are provided according to the file storage modes of different clients, the development steps of the adaptation interface are reduced, and the development cost is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a flowchart illustrating a method for deploying a project installation package according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a project installation package according to an embodiment of the present invention
FIG. 3 is a flowchart illustrating another project installation package deployment method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a project installation package deployment system in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It should be noted that, in the following embodiments and examples, subsamples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
In the following description, numerous details are set forth to provide a more thorough explanation of embodiments of the present invention, however, it will be apparent to one skilled in the art that embodiments of the present invention may be practiced without these specific details, and in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring embodiments of the present invention.
The terms "first," "second," and the like in the description and claims of the embodiments of the disclosure and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged as appropriate for the embodiments of the disclosure described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
Referring to fig. 1, an embodiment of the present disclosure provides a project installation package deployment method, including:
step S101, acquiring a basic installation package corresponding to a client project, and acquiring a file storage mode adopted by a client environment;
step S102, matching a corresponding target adaptation module from preset storage adaptation modules according to a file storage mode;
step S103, weaving the matched target adaptation module into a basic installation package to obtain a project installation package corresponding to the client environment;
and step S104, deploying the customer project in the corresponding customer environment according to the project installation package, so that the customer project implements a file storage mode corresponding to the customer environment through the target adaptation module.
By adopting the project installation package deployment method provided by the embodiment of the disclosure, the corresponding target adaptation module is matched through the file storage mode of the customer environment, the matched target adaptation module is then woven into the basic installation package corresponding to the customer project, and the customer project is deployed in the customer environment through the project installation package, so that the customer project can perform data storage through the target adaptation module according to the corresponding file storage mode. Therefore, compared with the adaptation interface for redeveloping file storage in the project delivery process, the storage adaptation module is preset, different target adaptation modules are provided according to the file storage modes of different clients, the development steps of the adaptation interface are reduced, and the development cost is reduced.
In some embodiments, the Storage adaptation module includes at least one of an Tencent cloud adaptation module, an Alice cloud OSS (cloud Storage Service) adaptation module, and a minio adaptation module.
Optionally, the customer project comprises a business layer, the business layer comprising at least one of: the file transmission module is used for executing a file uploading request and/or a file downloading request of the service file; the file management module is used for executing a file management instruction corresponding to the service file; and the folder management module is used for executing a folder management instruction corresponding to the service folder, wherein the service folder comprises at least one part of service files.
Optionally, the method further comprises: a preset user management module is woven into a business layer through a project installation package, wherein the user management module is used for storing user registration information and file access authority corresponding to the user registration information; if user login information input by a user is received, performing user verification on the user login information based on the user registration information, and matching current access authority from file access authority according to the user login information after the user verification is successful; and if a file access request or a file uploading request is received, matching the current access authority from the file access authority according to the user login information, inquiring a corresponding file access address according to the user access request after the authority is successfully verified, and feeding back the inquired file access address.
In some embodiments, the user management module includes an internal user system (GUC) for performing user verification on a logged-in user through user registration information, performing right management on target data according to user rights when an access request or an upload request is made by the user, and providing a file access address when the user has rights, so that the user extracts the target data from the file access address to perform access and upload.
Therefore, the authority management is carried out on the data through the user management module, and the safety of the data in the project is improved.
Optionally, the service layer further includes at least one of: the speed limiting module is used for controlling the file transmission speed of the service file in a preset speed interval; the space management module is used for executing a space management instruction of a storage space, wherein the storage space is used for storing the service file; the exception handling module is used for extracting the project exception codes of the customer projects, displaying the project exception codes, matching a target solution from preset exception solutions according to the project exception codes and executing the target solution; the data security module is used for encrypting data of at least one part of service files according to a preset encryption algorithm to obtain encrypted data; the file counting module is used for performing data statistics on at least one part of the service files according to a preset statistical algorithm to obtain a statistical result, rendering the statistical result to obtain a statistical chart, and displaying the statistical chart; and the content distribution module is used for distributing and scheduling the service files according to a preset load balancing strategy.
Optionally, the customer project further comprises at least one of: the data layer is used for storing client project data through a database, wherein the client project data comprise at least one of service files and current access rights; the middleware layer is used for caching a preset encryption algorithm and/or providing a distributed lock for a client project; the external interface layer is used for providing an external connection interface and a software development toolkit for the client project; and the log module is used for monitoring the client project and generating a monitoring log.
Optionally, the target adaptation module implements a file storage manner corresponding to the client environment by: acquiring a file format conversion interface and a file storage address; coding the service file by using a file format conversion interface according to a file storage mode to obtain a file to be stored; and sending the file to be stored to a file storage address to store the file to be stored.
Optionally, after the client project is deployed in the corresponding client environment according to the project installation package, the method further includes: if the client environment adopts an alternative storage mode, matching a corresponding alternative adaptation module from preset storage adaptation modules according to the alternative storage mode, wherein the alternative storage mode is different from a file storage mode; weaving the matched alternative adaptation modules into a basic installation package to obtain an alternative installation package corresponding to the client environment; and updating the client project deployed in the client environment according to the project installation package.
In some embodiments, storage modes are configured according to different delivery requirements, the adaptation module of the corresponding storage mode is added when the delivery package is packaged, for example, the ariloc storage mode is adopted when the delivery package is delivered for the first time, but a customer needs to switch the ariloc storage mode in the delivery item to the Tencent cloud storage mode, and a new item delivery package can be generated by configuring an alternative adaptation module without other transformation cost.
Therefore, after the client environment is changed, the original target adaptation module is replaced according to the alternative adaptation module, and the alternative adaptation module is deployed in the client environment again through the new project installation package, so that the development cost of the client after the file storage mode is replaced is reduced.
Referring to fig. 2, an embodiment of the present disclosure provides a project installation package, which includes an external interface layer 201, a service layer 202, a middleware layer 203, a data layer 204, an adaptation layer 205, an infrastructure layer 206, a log module 207, and a permission module 208; an external Interface layer for providing an external connection Interface and a Software Development Kit to a client project, for example, API (Application Program Interface) and SDK (Software Development Kit); the service layer comprises a file transmission module, a file management module, a speed limit module, a space management module, an exception handling module, a data security module, a file statistics module and a content distribution module, wherein the file transmission module is used for executing a file uploading request and/or a file downloading request of a service file; the file management module is used for executing a file management instruction corresponding to the service file; the folder management module is used for executing a folder management instruction corresponding to the service folder, wherein the service folder comprises at least one part of service files; the speed limiting module is used for controlling the file transmission speed of the service file in a preset speed interval; the space management module is used for executing a space management instruction of a storage space, wherein the storage space is used for storing the service file; the exception handling module is used for extracting the project exception codes of the customer projects, displaying the project exception codes, matching a target solution from preset exception solutions according to the project exception codes and executing the target solution; the data security module is used for encrypting data of at least one part of service files according to a preset encryption algorithm to obtain encrypted data; the file counting module is used for performing data statistics on at least one part of the service files according to a preset statistical algorithm to obtain a statistical result, rendering the statistical result to obtain a statistical chart, and displaying the statistical chart; the content distribution module is used for distributing and scheduling the service files according to a preset load balancing strategy; the middleware layer is used for caching a preset encryption algorithm and/or providing a distributed lock for a client project; the data layer is used for storing client project data through a database, wherein the client project data comprise at least one of service files and current access rights; the adaptation layer is used for implementing a file storage mode corresponding to the client environment through the target adaptation module; an infrastructure layer for providing internal infrastructure components such as an internal network; the log module is used for monitoring the client project and generating a monitoring log; the user management module is used for carrying out user verification on the user login information based on the user registration information if the user login information input by the user is received, and matching the current access authority from the file access authority according to the user login information after the user verification is successful; the user management module is also used for matching the current access authority from the file access authority according to the user login information if a file access request or a file uploading request is received, inquiring a corresponding file access address according to the user access request after the authority verification is successful, and feeding back the inquired file access address.
By adopting the project installation package deployment method provided by the embodiment of the disclosure, the corresponding target adaptation module is matched through the file storage mode of the customer environment, the matched target adaptation module is then woven into the basic installation package corresponding to the customer project, and the customer project is deployed in the customer environment through the project installation package, so that the customer project can perform data storage through the target adaptation module according to the corresponding file storage mode. Therefore, compared with the adaptation interface for redeveloping file storage in the project delivery process, the storage adaptation module is preset, different target adaptation modules are provided according to the file storage modes of different clients, the development steps of the adaptation interface are reduced, and the development cost is reduced.
Referring to fig. 3, an embodiment of the present disclosure provides a project installation package deployment method, including:
step S301, a server side presets a plurality of storage adaptation modules;
the storage adaptation module comprises at least one of an Tencent cloud adaptation module, an Ali cloud OSS adaptation module, a minio adaptation module and the like;
step S302, the client sends a file storage mode adopted by the client environment to the server;
the file storage mode comprises type1, type2 and type3;
step S303, the server matches a corresponding target adaptation module from preset storage adaptation modules according to a file storage mode;
wherein the content of the first and second substances, the type1 corresponds to an Tencent cloud adaptation module, the type2 corresponds to an Aliyun OSS adaptation module, and the type3 corresponds to a mini adaptation module;
step S304, the server side weaves the matched target adaptation module into a basic installation package of a client project to obtain a project installation package corresponding to a client environment;
step S305, the server side sends a project installation package to the client side;
and step S306, the client deploys the customer project in the corresponding customer environment according to the project installation package.
By adopting the project installation package deployment method provided by the embodiment of the disclosure, the corresponding target adaptation module is matched through the file storage mode of the customer environment, the matched target adaptation module is then woven into the basic installation package corresponding to the customer project, and the customer project is deployed in the customer environment through the project installation package, so that the customer project can perform data storage through the target adaptation module according to the corresponding file storage mode, and the project installation package deployment method has the following advantages:
compared with an adaptation interface for redeveloping file storage in the project delivery process, the method has the advantages that the storage adaptation module is preset, different target adaptation modules are provided according to file storage modes of different clients, development steps of the adaptation interface are reduced, and development cost is reduced;
secondly, authority management is carried out on the data through a user management module, and the safety of the data in the project is improved;
and thirdly, after the client environment is changed, replacing the original target adaptation module according to the alternative adaptation module, and deploying the target adaptation module in the client environment through a new project installation package again, so that the development cost of the client after changing a file storage mode is reduced.
Referring to fig. 4, an embodiment of the present disclosure provides a project installation package deployment system, which includes an obtaining module 401, a matching module 402, an importing module 403, and a deployment module 404. The obtaining module 401 is configured to obtain a basic installation package corresponding to a client project, and obtain a file storage manner adopted by a client environment; the matching module 402 is used for matching a corresponding target adaptation module from preset storage adaptation modules according to a file storage mode; the weaving module 403 is configured to weave the matched target adaptation module into the basic installation package to obtain a project installation package corresponding to the customer environment; the deployment module 404 is configured to deploy the customer project in the corresponding customer environment according to the project installation package, so that the customer project implements a file storage manner corresponding to the customer environment through the target adaptation module.
By adopting the project installation package deployment system provided by the embodiment of the disclosure, the corresponding target adaptation module is matched through the file storage mode of the customer environment, the matched target adaptation module is then woven into the basic installation package corresponding to the customer project, and the customer project is deployed in the customer environment through the project installation package, so that the customer project can be subjected to data storage through the target adaptation module according to the corresponding file storage mode. Therefore, compared with the adaptation interface for redeveloping file storage in the project delivery process, the storage adaptation module is preset, different target adaptation modules are provided according to the file storage modes of different clients, the development steps of the adaptation interface are reduced, and the development cost is reduced.
FIG. 5 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application. It should be noted that the computer system 500 of the electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various suitable actions and processes, such as executing the method in the above-mentioned embodiment, according to a program stored in a Read-Only Memory (ROM) 502 or a program loaded from a storage portion 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for system operation are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An Input/Output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output section 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program executes various functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may comprise a propagated data signal with a computer-readable computer program embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
Embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements any of the methods in the embodiments.
The computer-readable storage medium in the embodiments of the present disclosure may be understood by those skilled in the art as follows: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with a computer program. The aforementioned computer program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The electronic device disclosed in this embodiment includes a processor, a memory, a transceiver, and a communication interface, where the memory and the communication interface are connected to the processor and the transceiver and perform mutual communication, the memory is used to store a computer program, the communication interface is used to perform communication, and the processor and the transceiver are used to run the computer program, so that the electronic device performs the steps of the above method.
In this embodiment, the Memory may include a Random Access Memory (RAM), and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and subsamples of some embodiments may be included in or substituted for portions and subsamples of other embodiments. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises," "comprising," and variations thereof, when used in this application, specify the presence of stated sub-samples, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other sub-samples, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising a …" does not exclude the presence of additional like elements in a process, method, or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit may be merely a division of a logical function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or may be integrated into another system, or some subsamples may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

1. A project installation package deployment method is characterized by comprising the following steps:
acquiring a basic installation package corresponding to a client project and acquiring a file storage mode adopted by a client environment;
matching a corresponding target adaptation module from preset storage adaptation modules according to the file storage mode;
weaving the matched target adaptation module into the basic installation package to obtain a project installation package corresponding to the client environment;
and deploying the customer project in a corresponding customer environment according to the project installation package, so that the customer project implements a file storage mode corresponding to the customer environment through the target adaptation module.
2. The method of claim 1, wherein the customer project comprises a business layer, the business layer comprising at least one of:
the file transmission module is used for executing a file uploading request and/or a file downloading request of the service file;
the file management module is used for executing a file management instruction corresponding to the service file;
and the folder management module is used for executing a folder management instruction corresponding to the service folder, wherein the service folder comprises at least one part of the service file.
3. The method of claim 2, further comprising:
a preset user management module is woven into the service layer through the project installation package, wherein the user management module is used for storing user registration information and file access authority corresponding to the user registration information;
if user login information input by a user is received, carrying out user verification on the user login information based on the user registration information, and matching current access authority from the file access authority according to the user login information after the user verification is successful;
and if a file access request or a file uploading request is received, matching the current access authority from the file access authority according to the user login information, inquiring a corresponding file access address according to the user access request after the authority verification is successful, and feeding back the inquired file access address.
4. The method of claim 3, wherein the service layer further comprises at least one of:
the speed limiting module is used for controlling the file transmission speed of the service file in a preset speed interval;
the space management module is used for executing a space management instruction of a storage space, wherein the storage space is used for storing the service file;
the exception handling module is used for extracting the project exception codes of the customer project, displaying the project exception codes, matching a target solution from preset exception solutions according to the project exception codes, and executing the target solution;
the data security module is used for encrypting data of at least one part of service files according to a preset encryption algorithm to obtain encrypted data;
the file counting module is used for carrying out data statistics on at least one part of service files according to a preset statistical algorithm to obtain a statistical result, rendering the statistical result to obtain a statistical chart and displaying the statistical chart;
and the content distribution module is used for distributing and scheduling the service file according to a preset load balancing strategy.
5. The method of claim 4, wherein the customer project further comprises at least one of:
the data layer is used for storing client project data through a database, wherein the client project data comprise at least one of the service file and the current access authority;
the middleware layer is used for caching a preset encryption algorithm and/or providing a distributed lock for the client project;
the external interface layer is used for providing an external connection interface and a software development kit for the customer project;
and the log module is used for monitoring the client project and generating a monitoring log.
6. The method of claim 2, wherein the target adaptation module implements the file storage corresponding to the client environment by:
acquiring a file format conversion interface and a file storage address;
encoding the service file by using the file format conversion interface according to the file storage mode to obtain a file to be stored;
and sending the file to be stored to the file storage address so as to store the file to be stored.
7. The method of any of claims 1 to 6, wherein the customer project is deployed after the corresponding customer environment according to the project installation package, the method further comprising:
if the client environment adopts an alternative storage mode, matching a corresponding alternative adaptation module from preset storage adaptation modules according to the alternative storage mode, wherein the alternative storage mode is different from the file storage mode;
weaving the matched alternative adaptation modules into the basic installation package to obtain an alternative installation package corresponding to the client environment;
and updating the client project deployed in the client environment according to the project installation package.
8. A project installation package deployment system, comprising:
the acquisition module is used for acquiring a basic installation package corresponding to a client project and acquiring a file storage mode adopted by a client environment;
the matching module is used for matching a corresponding target adaptation module from preset storage adaptation modules according to the file storage mode;
the weaving module is used for weaving the matched target adaptation module into the basic installation package to obtain a project installation package corresponding to the client environment;
and the deployment module is used for deploying the customer project in a corresponding customer environment according to the project installation package, so that the customer project implements a file storage mode corresponding to the customer environment through the target adaptation module.
9. An electronic device, comprising: a processor and a memory;
the memory is configured to store a computer program and the processor is configured to execute the computer program stored by the memory to cause the electronic device to perform the method of any of claims 1 to 7.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that:
the computer program when executed by a processor implements the method of any one of claims 1 to 7.
CN202211295559.2A 2022-10-21 2022-10-21 Project installation package deployment method, system, electronic device and readable storage medium Pending CN115576572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211295559.2A CN115576572A (en) 2022-10-21 2022-10-21 Project installation package deployment method, system, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211295559.2A CN115576572A (en) 2022-10-21 2022-10-21 Project installation package deployment method, system, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN115576572A true CN115576572A (en) 2023-01-06

Family

ID=84586280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211295559.2A Pending CN115576572A (en) 2022-10-21 2022-10-21 Project installation package deployment method, system, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115576572A (en)

Similar Documents

Publication Publication Date Title
US10142106B2 (en) System and method for securing sensitive data
US8230222B2 (en) Method, system and computer program for deploying software packages with increased security
US11645369B2 (en) Blockchain digital rights management streaming library
AU2015200730B2 (en) Vehicle data delivery
CN106843978B (en) SDK access method and system
US10389685B2 (en) Systems and methods for securely transferring selective datasets between terminals
US20220083911A1 (en) Enhanced Privacy Federated Learning System
CN106230843A (en) A kind of for the smart mobile phone configuration method of cloud virtual mobile phone, server and system
CN109495532A (en) Client update method and device
CN112883361B (en) Function jump method and device of application program, computer equipment and storage medium
CN112753196B (en) HSM self-destruction method, system and storage medium in hybrid cloud KMS solution
CN110891062A (en) Password changing method, server and storage medium
CN114041134A (en) System and method for block chain based secure storage
CN109408486B (en) File distribution method and system, distribution server and file generation device
US20170005798A1 (en) Binding software application bundles to a physical execution medium
CN102694795A (en) Method of using application service in offline situations
CN111181920A (en) Encryption and decryption method and device
CN112783847B (en) Data sharing method and device
CN113886870A (en) Data processing method, device, equipment and storage medium
CN111399867A (en) Software upgrading method, device, equipment and computer readable storage medium
CN111984615A (en) Method, device and system for sharing files
CN115576572A (en) Project installation package deployment method, system, electronic device and readable storage medium
CN115622732A (en) Multi-application-based application authority control method and system, electronic device and medium
CN109657481B (en) Data management method and device
CN115665075A (en) Data pushing method and system for message queue, electronic device and medium

Legal Events

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