CN113986257A - Cloud platform front-end management interface deployment method and device and storage medium - Google Patents

Cloud platform front-end management interface deployment method and device and storage medium Download PDF

Info

Publication number
CN113986257A
CN113986257A CN202111338218.4A CN202111338218A CN113986257A CN 113986257 A CN113986257 A CN 113986257A CN 202111338218 A CN202111338218 A CN 202111338218A CN 113986257 A CN113986257 A CN 113986257A
Authority
CN
China
Prior art keywords
management interface
source code
cloud platform
deployment
end management
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
CN202111338218.4A
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN202111338218.4A priority Critical patent/CN113986257A/en
Publication of CN113986257A publication Critical patent/CN113986257A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
    • G06F9/45512Command shells
    • 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/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • 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/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/549Remote execution

Abstract

The application provides a method, a device and a storage medium for deploying a cloud platform front-end management interface, wherein the method comprises the following steps: storing an automatic deployment Shell script and a front-end management system source code requirement file into a target management server; determining a storage path of a source code requirement file of a front-end management system; according to the storage path, executing an automatic Shell deployment script, configuring a source code requirement file of a front-end management system in a target management server, and determining a configuration result; according to the configuration result, starting a front-end management interface service and a front-end and back-end message communication service in the target management server, and determining a front-end and back-end communication port; and generating an access address of the cloud platform front-end management interface service and a cloud platform front-end management interface according to the front-end and back-end communication ports and the actual domain name of the target management server so as to complete the deployment of the cloud platform front-end management interface. The manual operation steps are greatly simplified, the adaptability is good, and the deployment efficiency is obviously improved.

Description

Cloud platform front-end management interface deployment method and device and storage medium
Technical Field
The present application relates to the field of cloud computing application technologies, and in particular, to a method and an apparatus for deploying a cloud platform front-end management interface, and a storage medium
Background
With the development of the internet and cloud computing technologies, more and more enterprises develop the construction and development of large-scale cloud applications, and a cloud computing platform is applied to support the integration of cloud application development, operation and maintenance. Cloud computing platforms can generally be thought of as returning to three classes, including: the cloud computing platform comprises a storage type cloud platform taking data storage as a main part, a computing type cloud platform taking data processing as a main part, and a comprehensive cloud computing platform taking computing and data storage into consideration. When an enterprise uses different types of cloud computing platforms, in order to meet different business diversification requirements of the enterprise, a set of front-end management interface convenient for user operation is often configured for the cloud computing platforms, so that the enterprise is convenient to use. The traditional front-end system configuration method usually needs a lot of manpower input by enterprises to research and develop or carry out external purchase, the period is long, the cost is high, the matching degree of the configured front-end management interface and the use requirements of the enterprises is poor, and the use feeling of users is poor.
Disclosure of Invention
In view of the above disadvantages of the prior art, an object of the present invention is to provide a method, an apparatus, and a storage medium for deploying a cloud platform front-end management interface, so as to simplify the deployment steps for configuring and deploying the front-end management interface for different cloud platforms, improve deployment efficiency, better adapt to the management requirements of different users, and improve the experience of the users using the cloud platform through the deployed front-end management interface.
In a first aspect, an embodiment of the present application provides a cloud platform front-end management interface deployment method, including:
storing an automatic deployment Shell script and the source code requirement file of the front-end management system into a target management server;
determining a storage path of the source code requirement file of the front-end management system;
executing the automatic deployment Shell script according to the storage path, configuring a source code requirement file of the front-end management system in the target management server, and determining a configuration result;
according to the configuration result, starting a front-end management interface service and a front-end and back-end message communication service in the target management server, and determining a front-end and back-end communication port;
and generating an access address of the cloud platform front-end management interface service and the cloud platform front-end management interface according to the front-end and back-end communication ports and the actual domain name of the target management server so as to complete the deployment of the cloud platform front-end management interface in the target management server.
Optionally, in an embodiment of the present application, the source code requirement file of the front-end management system is a compressed file including front-end management interface source codes, front-end and back-end communication source codes, a service database SQL script, and a version management tool.
Optionally, in an embodiment of the present application, executing the automated deployment Shell script according to the storage path, configuring a source code requirement file of the front-end management system in the target management server, and determining a configuration result includes:
decompressing the source code demand file of the front-end management system according to the automatic deployment Shell script and the storage path, and acquiring the source code of the front-end management interface, the communication source code of the front end and the rear end, the SQL script of the service database and the version management tool;
configuring system environment variables according to the version management tool, creating an access directory and a log file for the front-end management interface source code and the front-end and back-end communication source codes, and creating a service database according to the SQL script of the service database, wherein the method comprises the following steps: (ii) a
And determining the configuration result of the configured system environment variables, the creation results of the access directories and the log files of the front-end management interface source codes and the front-end and back-end communication source codes, and the creation result of the service database as the configuration result.
Optionally, in an embodiment of the present application, before decompressing the source code requirement file of the front-end management system according to the automated deployment Shell script and the storage path, and acquiring the decompressed front-end management interface source code and the front-end and back-end communication source codes, the method further includes:
judging whether the root authority of the current user is legal or not;
and if the user is illegal, prompting the user to switch to a root user for installation and quitting.
Optionally, in an embodiment of the present application, the configuring system environment variables includes:
and placing the decompressed NVM version management tool into a root directory for operation, configuring the environment variables of Nodejs and pm2 according to the NVM version management tool, and outputting the result of whether the configuration is successful or not.
Optionally, in an embodiment of the present application, the creating an access directory and a log file for the source code of the front end management interface and the source code of the front-end and back-end communication includes:
detecting whether an access log of the cloud management interface source code and an access directory of an error log exist or not, and if not, creating the access directory of the cloud management interface source code and the fortune management interface source code log file;
and detecting whether an access directory of the front-end and back-end communication source codes exists or not, and if not, creating the access directory of the front-end and back-end communication source codes and the source code log file of the operation and management interface.
Optionally, in an embodiment of the present application, the creating a service database according to the service database SQL script includes:
and evaluating the connection information of the database, creating the database used by the front-end management interface, and importing the SQL script of the service database into the database to create the service database.
Optionally, in an embodiment of the present application, the starting, in the target management server, a front-end management interface service and a front-end and back-end messaging service according to the configuration result includes:
an "npm start" command executed in a storage folder of the front-end management interface source code to start the front-end management interface service;
and after the front-end management interface service is determined to be started, executing an 'npm start' command in a storage folder of the front-end and back-end communication source codes so as to start the front-end and back-end message communication service.
In a second aspect, based on the cloud platform front-end management interface deployment method in the first aspect of the present application, an embodiment of the present application further provides a cloud platform front-end management interface deployment device, including:
the storage module is used for storing the automatic deployment Shell script and the source code requirement file of the front-end management system into a target management server;
the acquisition module is used for determining a storage path of the source code requirement file of the front-end management system;
the configuration module is used for executing the automatic deployment Shell script according to the storage path, configuring a source code requirement file of the front-end management system in the target management server and determining a configuration result;
a starting module, configured to start a front-end management interface service and a front-end and back-end message communication service in the target management server according to the configuration result, and determine the front-end and back-end communication ports;
and the deployment module is used for generating an access address of the cloud platform front-end management interface service and the cloud platform front-end management interface according to the front-end and back-end communication ports and the actual domain name of the target management server so as to complete the deployment of the cloud platform front-end management interface in the target management server.
In a third aspect, an embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the processor executes the computer program stored in the storage medium, the method for deploying a cloud platform front-end management interface according to any one of the cloud platform front-end management interface according to the first aspect of the embodiment of the present application is implemented.
The embodiment of the application provides a cloud platform front-end management interface deployment method, a device and a storage medium, wherein the cloud platform front-end management interface deployment method comprises the following steps: storing an automatic deployment Shell script and the source code requirement file of the front-end management system into a target management server; determining a storage path of the source code requirement file of the front-end management system; executing the automatic deployment Shell script according to the storage path, configuring a source code requirement file of the front-end management system in the target management server, and determining a configuration result; according to the configuration result, starting a front-end management interface service and a front-end and back-end message communication service in the target management server, and determining a front-end and back-end communication port; and generating an access address of the cloud platform front-end management interface service and the cloud platform front-end management interface according to the front-end and back-end communication ports and the actual domain name of the target management server so as to complete the deployment of the cloud platform front-end management interface in the target management server. According to the deployment method of the cloud platform front-end management interface, deployment work of the cloud computing front-end management interface is conveniently achieved through the Shell script, the steps of manual operation are greatly simplified, the deployment problem caused by unsmooth communication among developers, implementers and operation and maintenance personnel is reduced, and the deployment efficiency is remarkably improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a flowchart illustrating a method for deploying a cloud platform front-end management interface according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a cloud platform front-end management interface deployment device according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application shall fall within the scope of the protection of the embodiments in the present application.
The following further describes specific implementations of embodiments of the present application with reference to the drawings of the embodiments of the present application.
The first embodiment,
An embodiment of the present application provides a method, as shown in fig. 1, in which fig. 1 is a flowchart of a method for deploying a cloud platform front-end management interface provided in this application, and the method for deploying the cloud platform front-end management interface includes:
s101, storing the automatic deployment Shell script and the front-end management system source code requirement file into a target management server.
The automated deployment Shell Script, also known as Shell Script, uses commands under Linux/Unix to provide an interface for a user to interact with the kernel. Similar to batch processing under Windows/Dos, various commands are put into one file in advance, one program file can be conveniently executed at one time, and the method is greatly convenient for an administrator to set or manage. But it is more powerful than batch processing under Windows, and more efficient than programs compiled with other programming programs, it receives user-entered commands and feeds them to the kernel for execution. In an embodiment of the present application, the automated deployment Shell script is a command interpreter that interprets commands entered by the user and passes them to the kernel. Moreover, automated deployment Shell scripts have their own programming language for editing commands, which allows users to write programs composed of Shell commands. In an embodiment of the application, the deployment of the cloud platform front-end management interface is realized by automatically deploying the Shell script, so that the steps of manual operation are simplified, and the working efficiency is improved.
Optionally, in an implementation manner of the embodiment of the present application, the source code requirement file of the front-end management system is a compressed file that includes front-end management interface source codes, front-end and back-end communication source codes, a service database SQL script, and a version management tool. The source code of the front-end management system is set to be a compressed file containing the source code of the front-end management interface, the communication source code of the front end and the communication source code of the back end, the SQL script of the service database and the version management tool, so that the accuracy and the convenience of the process of storing the source code requirement file of the front-end management system into the target management server can be effectively guaranteed.
S102, determining a storage path of a source code requirement file of the front-end management system.
In the embodiment of the application, the storage path of the source code requirement file of the front-end management system in the target management server is determined, so that when the front-end management system is deployed, the accuracy and the reliability of the deployment process can be effectively ensured, and the deployment efficiency is improved.
Optionally, in an implementation manner of the embodiment of the present application, in general, the storage path is an absolute path, where the absolute path refers to an absolute position in the directory, and directly reaches the target position, which is usually a path from a drive letter. The complete path describing the location of the file is an absolute path, a directory path based on the web site root directory as a reference. The absolute path name is a path from a root directory at the top of the tree directory structure to a certain directory or file, and is composed of a series of continuous directories, the middle of the directory is divided by oblique lines until the directory or file to be designated, and the last name in the path is the directory or file to be pointed to. What is called absolute means that the path used is the same when all web pages refer to the same document. In the embodiment of the present application, the storage setting manner of storing the source code requirement file of the front end management system as the absolute path has the following advantages: 1. the file or website can be prevented from being maliciously copied; 2. facilitating the link to point to the selected URL version; 3. even if the web page is moved to a location, the links inside point to the correct URL. Therefore, in the embodiment of the present application, the storage path is set as the absolute path, so that the accuracy and stability of the deployment process can be further ensured.
S103, according to the storage path, executing the automatic Shell deployment script, configuring a source code requirement file of the front-end management system in the target management server, and determining a configuration result.
In an implementation manner of the embodiment of the application, the source code requirement file of the money box management system can be accurately and reliably installed at a preset position of the target management server through the determined storage path and the automatic deployment Shell script, the corresponding requirement file required by a user is configured, the configuration process is convenient and accurate, and the applicability is good.
Optionally, in an implementation manner of the embodiment of the present application, executing an automated Shell script deployment according to a storage path, configuring a source code requirement file of a front-end management system in a target management server, and determining a configuration result includes:
decompressing a source code demand file of a front-end management system according to an automatic deployment Shell script and a storage path, and acquiring a front-end management interface source code, a front-end communication source code, a service database SQL script and a version management tool; configuring system environment variables according to a version management tool, creating an access directory and a log file for a front-end management interface source code and a front-end and back-end communication source code, and creating a service database according to a service database SQL script, wherein the method comprises the following steps: and determining the configuration result of the configured system environment variables, the access directory of the front-end management interface source codes and the front-end and back-end communication source codes, the creation result of the log file and the creation result of the service database as the configuration result.
In the embodiment of the application, the Shell script and the determined storage path are automatically deployed, the compressed file of the front-end management system source code demand file stored in the target management server is decompressed, so that the front-end management interface source code, the front-end and back-end communication source code, the service database SQL script, the version management tool and the like contained in the compressed file are accurately stored in the storage path of the target management server, stable configuration and deployment can be performed on the front-end management interface source code, the front-end and back-end communication source code, the service database SQL script and the version management tool contained in the compressed file, the efficiency and the accuracy of configuration and deployment are improved, a user or operation and maintenance personnel are not required to perform complicated configuration, and the process is convenient and efficient.
Optionally, in an embodiment of the present application, before decompressing a source code requirement file of a front-end management system according to an automated deployment Shell script and a storage path, and acquiring a decompressed front-end management interface source code and a front-end and back-end communication source code, the method further includes:
judging whether the root authority of the current user is legal or not;
and if the user is illegal, prompting the user to switch to a root user for installation and quitting.
In the embodiment of the application, by judging whether the root authority of the current user is legal or not, the safety of system configuration and deployment can be effectively improved, and the damage to the system, normal operation and data safety of the image system, caused by the installation of an illegal user can be avoided.
Optionally, in an embodiment of the present application, configuring the system environment variable includes:
placing the decompressed NVM (node. js version management) version management tool into the root directory for operation, configuring the environment variables of Nodejs and pm2 according to the NVM version management tool, and outputting the result of whether the configuration is successful or not. In the embodiment of the present application, the management of the file developed at the front end can be conveniently implemented by configuring the environment variables of the nodjs and pm2 (a nodjs application process manager with a load balancing function) by using the NVM version management tool, so that the load of the configuration process is relatively balanced, and the technology of this installation and configuration is mature, the process is simple, and the ordered installation and configuration of the source code file of the front end management system is further ensured.
Optionally, in an embodiment of the present application, creating an access directory and a log file for the source code of the front-end management interface and the source code of the front-end and back-end communication includes:
detecting whether an access log of a cloud management interface source code and an access directory of an error log exist or not, and if not, creating the access directory of the cloud management interface source code and a source code log file of a fortune management interface;
and detecting whether an access directory of the front-end and back-end communication source codes exists or not, and if not, creating the access directory of the front-end and back-end communication source codes and a source code log file of the transportation management interface.
Optionally, in an implementation manner of the embodiment of the present application, creating a service database according to a service database SQL script includes:
and assigning the connection information of the database, creating a database used by the front-end management interface, and importing a service database SQL script into the database to create the service database.
In the implementation manner of the embodiment of the application, the service database is created through the set SQL script of the service database, so that the difficulty of deploying the service database needed to be used by the front-end management interface is effectively reduced, the process is simple and effective, and the implementation is easy.
Optionally, in an implementation manner of the embodiment of the present application, before creating the service database, it may further be detected whether database software is already installed in the target management server, and if the database is already secured, the database used by the front-end management interface may be created by directly referring to connection information of the assigned database, and the service database SQL script is imported into the installed database to create the service database. The method simplifies the creation process of the service database, improves the configuration efficiency and saves system resources.
In the embodiment of the application, linux has no concept of a disk, and linux is in units of files, unlike windows which has a disk below which a file exists. In the embodiment of the present application, for a linux system, by creating an access directory and a log file, it can be better ensured that a file stored in a target management server is correctly accessed, and both access and modification have traces to follow, so as to further ensure the stability and security of system operation, for example, when a system fails, a transaction failure can be recovered or a system failure can be recovered by using data recorded in the log file, which is not described herein again,
and S104, according to the configuration result, starting front-end management interface service and front-end and back-end message communication service in the target management server, and determining front-end and back-end communication ports.
In the embodiment of the application, after the Shell script is automatically deployed, according to the determined configuration result, namely the result of executing configuration of the front-end management interface source code, the front-end and back-end communication source code, the service database SQL script and the version management tool, the money box management interface service and the front-end and back-end information communication service are further started in the target management server, so that the communication and data transmission between the front-end and back-end services are realized, and meanwhile, the front-end and back-end communication interfaces are determined according to the communication service, so that the stability and the orderliness of the front-end and back-end communication services are ensured.
Optionally, in an embodiment of the present application, the starting, in the target management server, a front-end management interface service and a front-end messaging service according to the configuration result includes:
an "npm start" command executed in a storage folder of the front-end management interface source code to start the front-end management interface service;
and after the front-end management interface service is determined to be started, executing an 'npm start' command in a storage folder of the front-end and back-end communication source codes so as to start the front-end and back-end message communication service.
In an implementation manner of the embodiment of the present application, the npm start command has an effect that a server environment needs to be configured locally by running the npm start command when configuring a project, and the npm start command first installs a series of necessary programs, so that a front-end management interface service corresponding to a configuration number front-end management interface source code file and a front-end and back-end message communication service corresponding to a front-end and back-end message communication source code are started more safely and effectively, so that a service starting process corresponding to a configuration result is more convenient and faster, no operation and maintenance personnel perform cumbersome other configuration operations, and the starting process is safe and reliable.
And S105, generating an access address of the cloud platform front-end management interface service and a cloud platform front-end management interface according to the front-end and back-end communication ports and the actual domain name of the target management server, so as to complete the deployment of the cloud platform front-end management interface in the target management server. For example, the time domain name of the target management server is www.xxx.com, the front-end and back-end communication ports are 5678, and the access address of the generated cloud platform front-end management interface service is: and http:// www.xxx.com:5678, so that the front-end management interface of the cloud platform is displayed on the user side through the access address, and the deployment of the front-end management interface of the cloud platform in the target management server is completed.
The embodiment of the application provides a cloud platform front-end management interface deployment method, which comprises the following steps: storing an automatic deployment Shell script and a front-end management system source code requirement file into a target management server; determining a storage path of a source code requirement file of a front-end management system; according to the storage path, executing an automatic Shell deployment script, configuring a source code requirement file of a front-end management system in a target management server, and determining a configuration result; according to the configuration result, starting a front-end management interface service and a front-end and back-end message communication service in the target management server, and determining a front-end and back-end communication port; and generating an access address of the cloud platform front-end management interface service and a cloud platform front-end management interface according to the front-end and back-end communication ports and the actual domain name of the target management server so as to complete the deployment of the cloud platform front-end management interface in the target management server. According to the deployment method of the cloud platform front-end management interface, deployment work of the cloud computing front-end management interface is conveniently achieved through the Shell script, the steps of manual operation are greatly simplified, the deployment problem caused by unsmooth communication among developers, implementers and operation and maintenance personnel is reduced, and the deployment efficiency is remarkably improved.
Example II,
Based on the cloud platform front-end management interface deployment method according to the first embodiment of the present application, the present application embodiment further provides a cloud platform front-end management interface deployment device 20, where the cloud platform front-end management interface deployment device 20 includes:
the storage module 201 is configured to store an automation deployment Shell script and the source code requirement file of the front-end management system into a target management server;
optionally, in an implementation manner of the embodiment, the source code requirement file of the front-end management system is a compressed file that includes front-end management interface source codes, front-end and back-end communication source codes, a service database SQL script, and a version management tool.
An obtaining module 202, configured to determine a storage path of the source code requirement file of the front-end management system;
a configuration module 203, configured to execute the automated deployment Shell script according to the storage path, configure the source code requirement file of the front-end management system in the target management server, and determine a configuration result;
a starting module 204, configured to start a front-end management interface service and a front-end and back-end message communication service in the target management server according to the configuration result, and determine the front-end and back-end communication ports;
a deployment module 205, configured to generate an access address of the cloud platform front-end management interface service and the cloud platform front-end management interface according to the front-end and back-end communication ports and the actual domain name of the target management server, so as to complete deployment of the cloud platform front-end management interface in the target management server.
Optionally, in an implementation manner of the embodiment of the present application, the configuration module 203 is further configured to decompress the source code requirement file of the front-end management system according to the automatically deployed Shell script and the storage path, and obtain the front-end management interface source code, the front-end and back-end communication source code, the service database SQL script, and the version management tool; configuring system environment variables according to the version management tool, creating an access directory and a log file for the front-end management interface source code and the front-end and back-end communication source codes, and creating a service database according to the SQL script of the service database, wherein the method comprises the following steps: (ii) a And determining the configuration result of the configured system environment variables, the creation results of the access directories and the log files of the front-end management interface source codes and the front-end and back-end communication source codes, and the creation result of the service database as the configuration result.
Optionally, in an embodiment of the present application, the cloud platform front-end management interface deployment apparatus further includes a determining module (not shown in the drawings), where the determining module is configured to determine whether a root authority of a current user is legal; and if the user is illegal, prompting the user to switch to a root user for installation and quitting.
Optionally, in an implementation manner of the embodiment of the present application, the configuration module 203 is further configured to place the NVM version management tool that has been decompressed into a root directory for running, configure environment variables of nodjs and pm2 according to the NVM version management tool, and output a result of whether the configuration is successful.
Optionally, in an implementation manner of the embodiment of the present application, the configuration module 203 is further configured to detect whether an access log of the cloud management interface source code and an access directory of the error log exist, and if the access log of the cloud management interface source code and the access directory of the error log do not exist, create the access directory of the cloud management interface source code and the delivery management interface source code log file;
and detecting whether an access directory of the front-end and back-end communication source codes exists or not, and if not, creating the access directory of the front-end and back-end communication source codes and the source code log file of the operation and management interface.
Optionally, in an implementation manner of the embodiment of the present application, the configuration module 203 is further configured to assign connection information of the database, create a database used by the front-end management interface, and import the service database SQL script into the database to create the service database.
Optionally, in an implementation manner of the embodiment of the present application, the starting module 204 is further configured to execute an "npm start" command in a storage folder of the front-end management interface source code, so as to start the front-end management interface service; and after the front-end management interface service is determined to be started, executing an 'npm start' command in a storage folder of the front-end and back-end communication source codes so as to start the front-end and back-end message communication service.
According to the cloud platform front-end management interface deployment device provided by the embodiment of the application, the storage module is arranged to store the automatic deployment Shell script and the front-end management system source code requirement file into the target management server; the setting and obtaining module determines a storage path of the source code requirement file of the front-end management system; a configuration setting module executes the automatic deployment Shell script according to the storage path, configures the source code requirement file of the front-end management system in the target management server and determines a configuration result; a setting starting module starts a front-end management interface service and a front-end and back-end message communication service in the target management server according to the configuration result, and determines a front-end and back-end communication port; and the setting generation module generates an access address of the cloud platform front-end management interface service and the cloud platform front-end management interface according to the front-end and back-end communication ports and the actual domain name of the target management server so as to complete the deployment of the cloud platform front-end management interface in the target management server. The cloud platform front-end management interface deployment device can conveniently achieve deployment work of the cloud computing front-end management interface through the Shell script, greatly simplify manual operation steps, reduce deployment problems caused by unsmooth communication among developers, implementers and operation and maintenance personnel, and remarkably improve deployment efficiency. And the construction is simple and easy to realize.
Example III,
Based on the cloud platform front-end management interface generation method according to the first embodiment of the present application, an embodiment of the present application further provides a storage medium, where a computer program is stored on the storage medium, and when the processor executes the computer program stored on the storage medium, the method for deploying any cloud platform front-end management interface according to the first embodiment of the present application is implemented, where the method for deploying the cloud platform front-end management interface includes, but is not limited to:
storing an automatic deployment Shell script and the source code requirement file of the front-end management system into a target management server;
determining a storage path of the source code requirement file of the front-end management system;
executing the automatic deployment Shell script according to the storage path, configuring a source code requirement file of the front-end management system in the target management server, and determining a configuration result;
according to the configuration result, starting a front-end management interface service and a front-end and back-end message communication service in the target management server, and determining a front-end and back-end communication port;
and generating an access address of the cloud platform front-end management interface service and the cloud platform front-end management interface according to the front-end and back-end communication ports and the actual domain name of the target management server so as to complete the deployment of the cloud platform front-end management interface in the target management server.
The application has thus described specific embodiments of the present subject matter. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. 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 apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular transactions or implement particular abstract data types. The application may also be practiced in distributed computing environments where transactions are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A cloud platform front-end management interface deployment method is characterized by comprising the following steps:
storing an automatic deployment Shell script and the source code requirement file of the front-end management system into a target management server;
determining a storage path of the source code requirement file of the front-end management system;
executing the automatic deployment Shell script according to the storage path, configuring a source code requirement file of the front-end management system in the target management server, and determining a configuration result;
according to the configuration result, starting a front-end management interface service and a front-end and back-end message communication service in the target management server, and determining a front-end and back-end communication port;
and generating an access address of the cloud platform front-end management interface service and the cloud platform front-end management interface according to the front-end and back-end communication ports and the actual domain name of the target management server so as to complete the deployment of the cloud platform front-end management interface in the target management server.
2. The cloud platform front-end management interface deployment method according to claim 1, wherein the front-end management system source code requirement file is a compressed file containing front-end management interface source codes, front-end and back-end communication source codes, service database SQL scripts, and version management tools.
3. The cloud platform front-end management interface deployment method according to claim 1, wherein executing the automated deployment Shell script according to the storage path, configuring a source code requirement file of the front-end management system in the target management server, and determining a configuration result comprises:
decompressing the source code demand file of the front-end management system according to the automatic deployment Shell script and the storage path, and acquiring the source code of the front-end management interface, the communication source code of the front end and the rear end, the SQL script of the service database and the version management tool;
configuring system environment variables according to the version management tool, creating an access directory and a log file for the front-end management interface source code and the front-end and back-end communication source codes, and creating a service database according to the SQL script of the service database, wherein the method comprises the following steps: (ii) a
And determining the configuration result of the configured system environment variables, the creation results of the access directories and the log files of the front-end management interface source codes and the front-end and back-end communication source codes, and the creation result of the service database as the configuration result.
4. The cloud platform front-end management interface deployment method according to claim 3, wherein before decompressing the front-end management system source code requirement file according to the automated deployment Shell script and the storage path and acquiring the decompressed front-end management interface source code and front-end communication source code, the method further comprises:
judging whether the root authority of the current user is legal or not;
and if the user is illegal, prompting the user to switch to a root user for installation and quitting.
5. The cloud platform front-end management interface deployment method according to claim 4, wherein said configuring system environment variables comprises:
and placing the decompressed NVM version management tool into a root directory for operation, configuring the environment variables of Nodejs and pm2 according to the NVM version management tool, and outputting the result of whether the configuration is successful or not.
6. The cloud platform front-end management interface deployment method according to claim 4, wherein said creating access directories and log files for said front-end management interface source code and front-end communication source code comprises:
detecting whether an access log of the cloud management interface source code and an access directory of an error log exist or not, and if not, creating the access directory of the cloud management interface source code and the fortune management interface source code log file;
and detecting whether an access directory of the front-end and back-end communication source codes exists or not, and if not, creating the access directory of the front-end and back-end communication source codes and the source code log file of the operation and management interface.
7. The cloud platform front-end management interface deployment method according to claim 4, wherein said creating a service database from said service database SQL script comprises:
assigning the connection information of the database, and creating the database used by the front-end management interface;
and importing the SQL script of the service database into the database to create the service database.
8. The frontend management interface deployment method according to claim 2, wherein the starting of frontend management interface services and front-end messaging services in the target management server according to the configuration result comprises:
an "npm start" command executed in a storage folder of the front-end management interface source code to start the front-end management interface service;
and after the front-end management interface service is determined to be started, executing an 'npm start' command in a storage folder of the front-end and back-end communication source codes so as to start the front-end and back-end message communication service.
9. A cloud platform front end management interface deploys device, its characterized in that includes:
the storage module is used for storing the automatic deployment Shell script and the source code requirement file of the front-end management system into a target management server;
the acquisition module is used for determining a storage path of the source code requirement file of the front-end management system;
the configuration module is used for executing the automatic deployment Shell script according to the storage path, configuring a source code requirement file of the front-end management system in the target management server and determining a configuration result;
a starting module, configured to start a front-end management interface service and a front-end and back-end message communication service in the target management server according to the configuration result, and determine the front-end and back-end communication ports;
and the deployment module is used for generating an access address of the cloud platform front-end management interface service and the cloud platform front-end management interface according to the front-end and back-end communication ports and the actual domain name of the target management server so as to complete the deployment of the cloud platform front-end management interface in the target management server.
10. A storage medium having a computer program stored thereon, wherein the processor implements the cloud platform front end management interface deployment method according to any one of claims 1 to 8 when executing the computer program stored on the storage medium.
CN202111338218.4A 2021-11-12 2021-11-12 Cloud platform front-end management interface deployment method and device and storage medium Pending CN113986257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111338218.4A CN113986257A (en) 2021-11-12 2021-11-12 Cloud platform front-end management interface deployment method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111338218.4A CN113986257A (en) 2021-11-12 2021-11-12 Cloud platform front-end management interface deployment method and device and storage medium

Publications (1)

Publication Number Publication Date
CN113986257A true CN113986257A (en) 2022-01-28

Family

ID=79748166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111338218.4A Pending CN113986257A (en) 2021-11-12 2021-11-12 Cloud platform front-end management interface deployment method and device and storage medium

Country Status (1)

Country Link
CN (1) CN113986257A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016158A (en) * 2022-12-02 2023-04-25 广州市玄武无线科技股份有限公司 Hybrid cloud aPaaS platform deployment method, device, equipment and computer storage medium
CN116185997A (en) * 2023-03-10 2023-05-30 上海翔麟马大数据科技有限公司 Database management system supporting comprehensive server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016158A (en) * 2022-12-02 2023-04-25 广州市玄武无线科技股份有限公司 Hybrid cloud aPaaS platform deployment method, device, equipment and computer storage medium
CN116016158B (en) * 2022-12-02 2023-09-26 广州市玄武无线科技股份有限公司 Hybrid cloud aPaaS platform deployment method, device, equipment and computer storage medium
CN116185997A (en) * 2023-03-10 2023-05-30 上海翔麟马大数据科技有限公司 Database management system supporting comprehensive server

Similar Documents

Publication Publication Date Title
CN109976761B (en) Software development kit generation method and device and terminal equipment
KR101645052B1 (en) Debugging pipeline
CN107122289B (en) Method, device and system for system regression testing
CN113986257A (en) Cloud platform front-end management interface deployment method and device and storage medium
CN108762743B (en) Data table operation code generation method and device
US7827548B1 (en) Environment-neutral application build
CN103226485A (en) Code publishing method, machine and system
CN105760168A (en) Automatic code file generation method and system
CN109241026B (en) Data management method, device and system
CN104536744A (en) Method and server for automatically building and deploying codes
CN103914315A (en) Configuration method of drivers
US20190377662A1 (en) Identifying a source file for use in debugging compiled code
WO2017020459A1 (en) Method and apparatus for configuring plugin package for host
CN109766139B (en) Configuration method and device of configuration file
US20170371763A1 (en) Automated globalization enablement on development operations
US20160321069A1 (en) Effective feature location in large legacy systems
CN112506854A (en) Method, device, equipment and medium for storing page template file and generating page
CN111159301A (en) Data creating method, device, equipment and storage medium based on intelligent contract
CN103500109A (en) Method and device for achieving file collection and software package automatic installation
CN107077365B (en) Selectively loading precompiled headers and/or portions thereof
US9606775B2 (en) Developing rich internet application
CN113360379B (en) Program test environment creation method and program test environment creation apparatus
CN116685946A (en) Reloading of updated shared libraries without stopping execution of an application
CN114911541A (en) Configuration information processing method and device, electronic equipment and storage medium
CN114238934A (en) Equipment information acquisition method, device, equipment 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