Implementation method for automatically installing software resources based on cloud platform
Through the front-end and back-end logic and specific scripts provided by SpringBoot and VUE, automatic software resource deployment on the cloud platform is realized, which solves the time-consuming and labor-intensive problem of traditional graphical operation methods, achieves fast and safe software installation and deployment, and simplifies operation. Maintenance management improves work efficiency and resource utilization.
Patent Information
- Application Number
- CN202410602300.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-27
AI Technical Summary
In cloud environment management platforms, the traditional graphical operation method for software resource deployment is time-consuming, laborious, cumbersome and error-prone. Especially when the graphical interface cannot be installed under security restrictions, a fast and automated method is needed to complete the software. Installation, deployment and parameter tuning improve service capabilities and reduce costs.
Use SpringBoot and VUE to provide front and back logic, write operating system-specific scripts, determine the operating system type through a proxy server, use Http to send data for automated deployment, and combine Shell scripts, PowerShell scripts and FTP commands to achieve automated installation, configuration and environment variables Settings, script files are encrypted and recorded, and deployment information is monitored and managed through the cloud platform.
It realizes the automated installation and deployment of software resources on the cloud platform, saves labor costs, simplifies operation and maintenance management, improves work efficiency, and reduces resource waste. It is suitable for one-click installation and deployment of complex business scenarios, and is integrated into the unified resource management and management of the cloud platform. Under monitoring.
Smart Images

Figure CN118550552A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software resource deployment, and in particular to a method for implementing automatic installation of software resources based on a cloud platform. Background Art
[0002] Under Linux, SSH remote operation should be mainly used, using TCP port 22 to establish a connection access; it is a security protocol based on the application layer. After the SSH remote connection is successful, the remote target machine can be operated like a local machine, and Shell scripts can be run through remote operations to interact with bash commands.
[0003] PowerShell remote operation is mainly used under Windows, using the remote management (WinRM) service, which is the Microsoft implementation of the WS-Management protocol, which is a standard protocol based on the Simple Object Access Protocol (SOAP). Use remote operation to run PowerShell scripts and use WMIC commands to interact. WMIC is a command-line tool used to control system management resources (such as processes, services, event logs, etc.) of local or remote computers. It can obtain, query, configure, and manage various resources.
[0004] During the delivery of the cloud environment management platform, not only IaaS resources need to be delivered, but customers also need software resources (Oracle, Was, WebLogic, DB2, ITM) to be delivered together. This requires the cloud platform to package virtual machine resources and software services to provide customers with a better and more convenient service experience.
[0005] If graphical operations are time-consuming, labor-intensive, cumbersome and error-prone, and some servers do not allow the installation of graphical interfaces for security reasons, then it is necessary to use silent installation to perform software installation and deployment, parameter tuning, environment variable settings and other operations to quickly complete automated deployment, improve service capabilities and reduce costs. Summary of the invention
[0006] In order to solve the above technical problems, the present invention provides a method for implementing automatic installation of software resources based on a cloud platform.
[0007] The technical solution of the present invention is:
[0008] A method for implementing automatic installation of software resources based on a cloud platform mainly uses SpringBoot and VUE to provide front-end and back-end logic implementation. For different operating systems and different software resources, scripts for various versions of operating systems are written. The back-end server uses Http to send data to a proxy machine, and the operating system category is determined on the proxy machine.
[0009] Through customized software media templates, the software is automatically installed and deployed in the form of script parameters. After the cloud platform front-end virtual machine is created, it is sent to the cloud platform back-end according to the software installation task strategy. The cloud platform back-end receives the message task, pulls the corresponding script from the automated deployment script server to perform software installation configuration and start the software service. For different operating systems, the corresponding software service of this operating system is installed, and the overall delivery is made by adding software services to the virtual machines in the cloud platform.
[0010] Furthermore,
[0011] The Linux operating system includes the use of Shell scripts and then the use of SSH remote connections to operate remote servers.
[0012] The Windows operating system includes batch processing Bat and PowerShell scripts, which use PowerShell to remotely execute commands to operate remote servers.
[0013] Furthermore,
[0014] Based on the cloud server environment, installation templates, software media, virtual machine instances and configuration of system, network, and storage environment information.
[0015] Write automated deployment scripts based on project requirements, including required software program installation, configuration file parameter optimization, and environment variable setting steps.
[0016] Upload the automated deployment script to the management server through the cloud platform to facilitate unified configuration management of the automated deployment script, and the script file is encrypted during the entire process.
[0017] The script records software installation, deployment, and configuration information and returns it to the cloud platform front-end for display. The software installation, configuration, and startup processes can be viewed through the information.
[0018] Furthermore,
[0019] Script execution steps:
[0020] 1) The proxy server executes the remote operation command by determining the operating system;
[0021] 2) Pull the corresponding script from the script library through the FTP command and parse the parameters;
[0022] 3) Execute the script set in workflow mode, which includes software installation, configuration optimization, environment variables, etc., and record the relevant process;
[0023] 4) If the installation and configuration software is successfully installed, all installation and deployment information will be returned; if the installation and deployment software fails, the failure process will be recorded and the relevant installation and deployment items will be gradually rolled back and uninstalled.
[0024] The beneficial effects of the present invention are
[0025] By using the monitoring capabilities of the cloud platform to supervise the efficiency of its resource usage, it not only saves labor delivery costs, optimizes the difficulty of system management, and avoids waste of resources, but also eliminates the need for application personnel to build infrastructure, simplifies the daily workload of operation and maintenance, and allows users to focus more on their own business development and innovation.
[0026] The present invention uses cloud platform template technology and cooperates with automated execution scripts, so that relevant personnel do not need to repeat work when deploying and installing software resources (Oracle, Was, WebLogic, DB2, ITM), but define templates of different software and different software versions at one time, and write configuration scripts at one time to complete process testing, that is, the software service can be released to the business department for use, which not only greatly reduces the workload of relevant technical personnel, but also constrains the use specifications of the system. The service is integrated into the unified resource management of the cloud platform for management and monitoring, integrated into the self-service application and operation system process approval of the cloud platform system, and realizes the automatic flow to the software (Oracle, Was, WebLogic, DB2, ITM) installation, configuration and delivery service. By combining different software templates, it can be applied to the one-click installation, deployment and delivery of complex business scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 is a schematic diagram of the system architecture of the present invention;
[0028] Figure 2 It is a schematic diagram of the operation flow of the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0030] By using the cloud platform to deliver resources, manual graphical installation and configuration can be reduced, without human intervention, and application personnel do not need to build equipment and facilities, simplifying the daily work of operation, maintenance and management. The entire process is automated through script installation, and the required software tools, configuration parameters, environment variable configuration and other information are deployed quickly and consistently, reducing work complexity and improving work efficiency.
[0031] Based on the technical characteristics of cloud environment management platform delivery and common scenarios of software resource delivery, if the automated deployment and configuration delivery software is incorporated into the cloud platform, a delivery capability that can be used at any time can be formed; unified and standardized constraints can be imposed on the security and availability of software use.
[0032] The present invention provides a method for automatically executing scripts, which can automatically execute scripts on a cloud platform to achieve automated management.
[0033] Architecture design:
[0034] 1. Based on the cloud server environment, installation templates, software media (Oracle, Was, WebLogic, DB2, ITM), virtual machine instances and configuration of system, network, storage and other environmental information;
[0035] 2. Write automated deployment scripts according to project requirements, including required software program installation, configuration file parameter optimization, environment variable settings and other steps. Be able to write automated deployment and installation configuration scripts for various versions of Linux and Windows operating systems;
[0036] 3. Upload the automated deployment script to the management server through the cloud platform to facilitate unified configuration management of the automated deployment script. The script file is encrypted throughout the process to ensure security;
[0037] 4. The cloud platform management page can configure the corresponding operating system, install software, and fill in relevant configuration parameters and other information, and then issue configuration execution script strategy tasks;
[0038] 5. After the cloud platform backend service receives the front-end software configuration task, the program determines on which operating system the software is installed, sends encrypted data to the proxy server via Http, and the proxy server pulls the corresponding configuration script from the automated deployment script server via FTP commands, and installs and configures the corresponding software on the target machine through remote execution operations;
[0039] 6. The script records software installation, deployment, configuration and other information and returns it to the cloud platform front-end for display. Through the information, you can view the entire process of software installation, configuration, startup, etc., and better analyze the software availability;
[0040] Script execution:
[0041] 1) The proxy server executes the remote operation command by determining the operating system;
[0042] 2) Pull the corresponding script from the script library through the FTP command and parse the parameters;
[0043] 3) Execute the script set in workflow mode, which includes software installation, configuration optimization, environment variables, etc., and record the relevant process;
[0044] 4) If the software is successfully installed, all installation and deployment information will be returned; if the software fails to be installed, the failure process will be recorded, and the relevant installation and deployment items will be rolled back and uninstalled step by step;
[0045] The present invention performs installation, configuration, and environment variable setting on complex software, and can facilitate application personnel to quickly, conveniently, and easily operate application software, thereby automating the implementation of software installation and deployment.
[0046] The template for creating a virtual machine integrates the application software media. After the virtual machine is created, the application software is automatically installed and deployed.
[0047] The automation scripts are uploaded to the cloud platform script library for unified management, realizing script automation for the installation and deployment of application software.
[0048] The proxy server uses FTP to pull scripts from the script library, and determines that the Linux operating system is a Shell sh command operation script and parameters; the Windows operating system is a PowerShell wmic command operation script and parameters.
[0049] When executing multiple script sets, the workflow method is used to serialize the scripts and record the entire software process. If an error occurs in a step, you can roll back, delete, and uninstall.
[0050] The entire process of application software installation, deployment and setup is recorded in detail and fed back to the cloud platform page, through which the entire process of automated software installation can be viewed in a timely manner.
[0051] The above description is only a preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, and is not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for implementing automatic installation of software resources based on a cloud platform. It is characterized in that SpringBoot and VUE are used to provide the front-end and back-end logic implementation. Scripts for different versions of operating systems are written for different operating systems and software resources. The back-end server uses Http to send data to a proxy machine, and the operating system category is determined on the proxy machine. Through customized software media templates, the software is automatically installed and deployed in the form of script parameters. After the cloud platform front-end virtual machine is created, it is sent to the cloud platform back-end according to the software installation task strategy. The cloud platform back-end receives the message task, pulls the corresponding script from the automated deployment script server to perform software installation configuration and start the software service. For different operating systems, the corresponding software service of this operating system is installed, and the overall delivery is made by adding software services to the virtual machines in the cloud platform.
2. The method according to claim 1, It is characterized in that The Linux operating system includes the use of Shell scripts and then the use of SSH remote connections to operate remote servers.
3. The method according to claim 1, It is characterized in that The Windows operating system includes batch processing Bat and PowerShell scripts, which use PowerShell to remotely execute commands to operate remote servers.
4. The method according to claim 1, It is characterized in that Based on the cloud server environment, installation templates, software media, virtual machine instances and configuration of system, network, and storage environment information.
5. The method according to claim 4, It is characterized in that Write automated deployment scripts based on project requirements, including required software program installation, configuration file parameter optimization, and environment variable setting steps.
6. The method according to claim 1, It is characterized in that Upload the automated deployment script to the management server through the cloud platform to facilitate unified configuration management of the automated deployment script, and the script file is encrypted during the entire process.
7. The method according to claim 1, It is characterized in that The script records software installation, deployment, and configuration information and returns it to the cloud platform front-end for display. The software installation, configuration, and startup processes can be viewed through the information.
8. The method according to claim 1, It is characterized in that Script execution steps: 1) The proxy server executes the remote operation command by determining the operating system; 2) Pull the corresponding script from the script library through the FTP command and parse the parameters; 3) Execute the script set in workflow mode, which includes software installation, configuration optimization, environment variables, etc., and record the relevant process; 4) If the software is installed and configured successfully, all installation and deployment information will be returned; If the installation and deployment software fails, record the failure process and gradually roll back and uninstall related installation and deployment items.
Citation Information
Cited By
Service deployment method and device based on cloud computing, electronic equipment and storage medium
CN121301031A
