Deployment method and device of learning platform module and computer equipment

文档序号:7351 发布日期:2021-09-17 浏览:25次 中文

1. A deployment method of a learning platform module is characterized by comprising the following steps:

acquiring an authentication module, an examination module, a community module, a course module and a system module;

packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly uniform deployment module;

and deploying the allocation unified deployment module to a server.

2. The method for deploying a learning platform module according to claim 1, further comprising:

and the authentication module, the examination module, the community module, the course module and the system module are communicated through the feign component.

3. The method for deploying a learning platform module according to claim 1, wherein the step of packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly unified deployment module comprises:

setting a feign assembly, and calling the corresponding authentication module, examination module, community module, course module and system module through the feign assembly to package into an assembly unified deployment module.

4. The deployment method of the learning platform module as claimed in claim 3, wherein the setting of the feign component calls the corresponding authentication module, examination module, community module, course module and system module through the feign component and packages them into an assembly unified deployment module, which includes:

setting a feign component, generating an object through a controller component realized by the feign component, calling corresponding controllers of an authentication module, an examination module, a community module, a course module and a system module, and packaging the controllers into an allocation unified deployment module.

5. A deployment apparatus for a learning platform module, comprising:

the acquisition module is used for acquiring the authentication module, the examination module, the community module, the course module and the system module;

the packaging module is used for packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly uniform deployment module;

and deploying the allocation unified deployment module to a server.

6. The learning platform module deployment device of claim 5, wherein the method further comprises:

and the communication module is used for carrying out communication among the authentication module, the examination module, the community module, the course module and the system module through the feign component.

7. The deployment apparatus of the learning platform module according to claim 5, wherein the packaging module comprises:

and the packaging submodule is used for setting the feign assembly, calling the corresponding authentication module, examination module, community module, course module and system module through the feign assembly, and packaging the authentication module, examination module, community module, course module and system module into an assembly unified deployment module.

8. The deployment apparatus of learning platform module according to claim 7, wherein the packaging sub-module comprises:

and the packing unit is used for setting the feign assembly, generating an object by using the controller assembly realized by the feign assembly, calling corresponding controllers of the authentication module, the examination module, the community module, the course module and the system module, and packing the controllers into an allocation unified deployment module.

9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method for deploying a learning platform module according to any one of claims 1 to 4.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for deploying a learning platform module according to any one of claims 1 to 4.

Background

The online learning platform is not uniform in size of enterprise clients, different types of enterprise clients are faced, the adopted deployment architectures are different, and large enterprises are deployed in a micro-service mode. However, if the small-sized enterprise adopts distributed deployment, a lot of resources are wasted, and enterprise cost is wasted.

Disclosure of Invention

In view of the above problems, embodiments of the present invention are provided to provide a method for deploying a learning platform module, an apparatus for deploying a learning platform module, a computer device and a storage medium, which overcome or at least partially solve the above problems.

In order to solve the above problem, an embodiment of the present invention discloses a method for deploying a learning platform module, including:

acquiring an authentication module, an examination module, a community module, a course module and a system module;

packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly uniform deployment module;

and deploying the allocation unified deployment module to a server.

Preferably, the method further comprises:

and the authentication module, the examination module, the community module, the course module and the system module are communicated through the feign component.

Preferably, the packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly unified deployment module includes:

setting a feign assembly, and calling the corresponding authentication module, examination module, community module, course module and system module through the feign assembly to package into an assembly unified deployment module.

Preferably, the setting of the feign component calls the corresponding authentication module, examination module, community module, course module and system module through the feign component and packs the authentication module, examination module, community module, course module and system module into an assembly unified deployment module, which includes:

setting a feign component, generating an object through a controller component realized by the feign component, calling corresponding controllers of an authentication module, an examination module, a community module, a course module and a system module, and packaging the controllers into an allocation unified deployment module.

The embodiment of the invention discloses a device for deploying a learning platform module, which comprises:

the acquisition module is used for acquiring the authentication module, the examination module, the community module, the course module and the system module;

the packaging module is used for packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly uniform deployment module;

and deploying the allocation unified deployment module to a server.

Preferably, the apparatus further comprises:

and the communication module is used for carrying out communication among the authentication module, the examination module, the community module, the course module and the system module through the feign component.

Preferably, the packing module includes:

and the packaging submodule is used for setting the feign assembly, calling the corresponding authentication module, examination module, community module, course module and system module through the feign assembly, and packaging the authentication module, examination module, community module, course module and system module into an assembly unified deployment module.

Preferably, the packing sub-module includes:

and the packing unit is used for setting the feign assembly, generating an object by using the controller assembly realized by the feign assembly, calling corresponding controllers of the authentication module, the examination module, the community module, the course module and the system module, and packing the controllers into an allocation unified deployment module.

The embodiment of the invention discloses computer equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the deployment method of the learning platform module when executing the computer program.

The embodiment of the invention discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program realizes the steps of the deployment method of the learning platform module when being executed by a processor.

The embodiment of the invention has the following advantages:

in the embodiment of the invention, the deployment method of the learning platform module comprises the following steps: acquiring an authentication module, an examination module, a community module, a course module and a system module; packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly uniform deployment module; and deploying the allocation unified deployment module to a server. The micro-service modules are combined into one module to be deployed, so that resources are not wasted, and the maintenance is facilitated.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts

FIG. 1 is a flowchart illustrating steps of an embodiment of a method for deploying a learning platform module;

FIG. 2 is a block diagram of an embodiment of a learning platform module deployment apparatus according to an embodiment of the present invention;

FIG. 3 is an internal block diagram of a computer device of an embodiment.

Detailed Description

In order to make the technical problems, technical solutions and advantageous effects solved by the embodiments of the present invention more clearly apparent, the embodiments of the present invention are described in further detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

Referring to fig. 1, a flowchart illustrating steps of an embodiment of a deployment method of a learning platform module according to an embodiment of the present invention is shown, which may specifically include the following steps:

step 101, acquiring an authentication module, an examination module, a community module, a course module and a system module;

in the embodiment of the present invention, the learning platform module may include an authentication module, an examination module, a community module, a course module, a system module, a unified deployment module, and the like, and may also include other modules, such as a score checking module, and the like, which is not limited in the embodiment of the present invention; and the modules described above may be deployed in a server.

The server can be divided into a CISC architecture server, a RISC architecture server and a VLIW architecture server according to a processor architecture; CISC (complex Instruction Set computer) server, i.e., "complex Instruction system computer", in a CISC microprocessor, instructions of a program are serially executed in sequence, and operations in each Instruction are also serially executed in sequence. The advantage of sequential execution is that control is simple. The CISC-based server mainly uses an IA-32 Architecture (Intel Architecture).

The Instruction system of the risc (reduced Instruction Set computing) server is relatively simple, requiring hardware to execute only the very limited and most frequently used part of instructions, and most complex operations are synthesized from simple instructions using sophisticated compilation techniques. The CPU of the instruction system is commonly adopted in middle and high-end servers, and particularly, the high-end servers all adopt the CPU of a RISC instruction system. The CPU using RISC instructions in the middle and high-end servers mainly includes Alpha of Compaq (Compaq, new hewlett packard), PA-RISC of HP, Power PC of IBM, MIPS of MIPS, and Sparc of SUN.

A VLIW (Very Long Instruction word) server; an advanced EPIC (clear parallel instruction) design is adopted, and the architecture is called an IA-64 architecture. While a CISC can typically run only 1-3 instructions, a RISC can run 4 instructions, it can be seen that VLIWs are much stronger than CISC and RISC. The great advantage of VLIW is to simplify the structure of the processor, to eliminate many complex control circuits inside the processor, which usually must be used when superscalar chips (CISC and RISC) work in coordination and in parallel, and the VLIW has a simple structure, which can also reduce the manufacturing cost of the chip, and has low price, low energy consumption, and much higher performance than the superscalar chips. Microprocessors based on this instruction architecture are mainly both IA-64 by Intel and x86-64 by AMD.

In the embodiment of the present invention, the authentication module, the examination module, the community module, the course module, and the system module may be obtained first, and specifically, the storage device may be connected to the authentication module, the examination module, the community module, the course module, and the system module.

102, packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly unified deployment module;

in the embodiment of the present invention, the method further includes: and the authentication module, the examination module, the community module, the course module and the system module are communicated through the feign component.

In practical application to the embodiment of the present invention, the step of packaging the authentication module, the examination module, the community module, the course module, and the system module into an assembly unified deployment module includes: setting a feign assembly, and calling the corresponding authentication module, examination module, community module, course module and system module through the feign assembly to package into an assembly unified deployment module.

Further applied to the embodiment of the present invention, the setting of the feign component calls the corresponding authentication module, examination module, community module, course module and system module through the feign component, and packages them into an allocation unified deployment module, which includes: setting a feign component, generating an object through a controller component realized by the feign component, calling corresponding controllers of an authentication module, an examination module, a community module, a course module and a system module, and packaging the controllers into an allocation unified deployment module.

Specifically, a plurality of modules can communicate with each other through a feign component, and the Web service client is declarative. It makes it easier to write Web service clients. The feign component is a templated and declarative Http client, and can be bound to an interface through an annotation to simplify Http request access. Most of the services are called differently by using httpbelient and other requests when accessing other service ports, and the services registered in the eureka can use a feign declaration interface form to call related services and provide failure rollback.

Step 103, deploying the assembly unified deployment module to a server.

In practical application to the embodiment of the present invention, after all modules are packaged into an assembly unified deployment module, the assembly unified deployment module may be deployed to a server, and the server may include a mini server. The micro-service modules are merged into one module to be deployed. The resource is not wasted, and the maintenance is convenient.

In the embodiment of the invention, the deployment method of the learning platform module comprises the following steps: acquiring an authentication module, an examination module, a community module, a course module and a system module; packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly uniform deployment module; and deploying the allocation unified deployment module to a server. The micro-service modules are combined into one module to be deployed, so that resources are not wasted, and the maintenance is facilitated.

In order that those skilled in the art will better understand the embodiments of the present invention, the following description is given by way of a specific example:

for example, a learning platform product is divided into an authentication module, an examination module, a community module, a course module, a system module, a uniform deployment module and the like, wherein the examination module is used for examination micro-service, the community module is used for community functional service, the course module is a course learning core module, the system module is a system basic information module, and the uniform deployment module is used for combining all the modules and packaging the modules to a specific module.

The detailed implementation is as follows:

1. communication between the modules is realized through the fail,

2. when the objects are packed into the unified deployment module, a feign implementation class is implemented in the unified deployment module, a controller implemented by the feign is integrated to generate the objects, and spring calls a controller method of a specific module to implement packing and deployment to one module by injecting the objects; specifically, a maven multi-module structure mode is adopted, and an authorization module, an examination module, a community module, a course module and the like are introduced through an assignment module and finally packaged into a unified deployment module.

The online learning platform is not uniform in size of enterprise clients, different types of enterprise clients are faced, the adopted deployment architectures are different, and large enterprises are deployed in a micro-service mode. However, if the small-sized enterprise adopts distributed deployment, a lot of resources and enterprise cost are wasted, and in order to save resources as much as possible and facilitate maintenance, the micro-service modules are combined into one module for deployment. The resource is not wasted and the maintenance is convenient.

It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.

Referring to fig. 2, a block diagram of a configuration apparatus of a learning platform module according to an embodiment of the present invention is shown, and specifically, the configuration apparatus may include the following modules:

an obtaining module 301, configured to obtain an authentication module, an examination module, a community module, a course module, and a system module;

the packaging module 302 is used for packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly uniform deployment module;

and deploying the allocation unified deployment module to a server.

Preferably, the method further comprises:

and the communication module is used for carrying out communication among the authentication module, the examination module, the community module, the course module and the system module through the feign component.

Preferably, the packing module includes:

and the packaging submodule is used for setting the feign assembly, calling the corresponding authentication module, examination module, community module, course module and system module through the feign assembly, and packaging the authentication module, examination module, community module, course module and system module into an assembly unified deployment module.

Preferably, the packing sub-module includes:

and the packing unit is used for setting the feign assembly, generating an object by using the controller assembly realized by the feign assembly, calling corresponding controllers of the authentication module, the examination module, the community module, the course module and the system module, and packing the controllers into an allocation unified deployment module.

The modules in the deployment apparatus of the learning platform module can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

The deployment device of the learning platform module provided by the above can be used for executing the deployment method of the learning platform module provided by any of the above embodiments, and has corresponding functions and beneficial effects.

In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of deployment of a learning platform module. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.

Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:

acquiring an authentication module, an examination module, a community module, a course module and a system module;

packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly uniform deployment module;

and deploying the allocation unified deployment module to a server.

Preferably, the method further comprises:

and the authentication module, the examination module, the community module, the course module and the system module are communicated through the feign component.

Preferably, the packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly unified deployment module includes:

setting a feign assembly, and calling the corresponding authentication module, examination module, community module, course module and system module through the feign assembly to package into an assembly unified deployment module.

Preferably, the setting of the feign component calls the corresponding authentication module, examination module, community module, course module and system module through the feign component and packs the authentication module, examination module, community module, course module and system module into an assembly unified deployment module, which includes:

setting a feign component, generating an object through a controller component realized by the feign component, calling corresponding controllers of an authentication module, an examination module, a community module, a course module and a system module, and packaging the controllers into an allocation unified deployment module.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring an authentication module, an examination module, a community module, a course module and a system module;

packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly uniform deployment module;

and deploying the allocation unified deployment module to a server.

Preferably, the method further comprises:

and the authentication module, the examination module, the community module, the course module and the system module are communicated through the feign component.

Preferably, the packaging the authentication module, the examination module, the community module, the course module and the system module into an assembly unified deployment module includes:

setting a feign assembly, and calling the corresponding authentication module, examination module, community module, course module and system module through the feign assembly to package into an assembly unified deployment module.

Preferably, the setting of the feign component calls the corresponding authentication module, examination module, community module, course module and system module through the feign component and packs the authentication module, examination module, community module, course module and system module into an assembly unified deployment module, which includes:

setting a feign component, generating an object through a controller component realized by the feign component, calling corresponding controllers of an authentication module, an examination module, a community module, a course module and a system module, and packaging the controllers into an allocation unified deployment module.

The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.

Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.

The method for deploying the learning platform module, the device for deploying the learning platform module, the computer equipment and the storage medium provided by the invention are described in detail, specific examples are applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:指令处理装置、处理器、芯片、计算设备及相应的方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!