CN113900688A - Software upgrading method, device, server and storage medium - Google Patents

Software upgrading method, device, server and storage medium Download PDF

Info

Publication number
CN113900688A
CN113900688A CN202111181700.1A CN202111181700A CN113900688A CN 113900688 A CN113900688 A CN 113900688A CN 202111181700 A CN202111181700 A CN 202111181700A CN 113900688 A CN113900688 A CN 113900688A
Authority
CN
China
Prior art keywords
software
upgrading
upgrade
offline
package
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
CN202111181700.1A
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.)
Beijing Knownsec Information Technology Co Ltd
Original Assignee
Beijing Knownsec Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Knownsec Information Technology Co Ltd filed Critical Beijing Knownsec Information Technology Co Ltd
Priority to CN202111181700.1A priority Critical patent/CN113900688A/en
Publication of CN113900688A publication Critical patent/CN113900688A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a software upgrading method, a software upgrading device, a server and a storage medium, and relates to the technical field of computers. The method is applied to a server, an upgrading module is arranged in the server, the upgrading module has a preset upgrading process, and the method comprises the following steps: and receiving at least one software offline upgrade package, wherein the software offline upgrade package contains a software upgrade file and software upgrade operation information, and the software upgrade operation information is matched with a preset upgrade process. And the upgrading module controls a preset upgrading process to execute upgrading operation according to the software upgrading operation information in the software offline upgrading package aiming at each software offline upgrading package, and upgrades the software corresponding to the software offline upgrading package. Based on the method, all software can be upgraded in the upgrading module, so that the operation complexity is reduced.

Description

Software upgrading method, device, server and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a software upgrading method, a software upgrading device, a server and a storage medium.
Background
In the past years, Software-as-a-Service (SaaS) products are becoming widespread at a rapid pace, but private local deployment is still irreplaceable for large enterprises and organizations that place importance on data security and require customized integration.
Privatized local deployment installs software directly in servers within the intranet and typically does not have access to the software provider's online upgrade services. When the software needs to be updated, the off-line updating mode can be adopted. Nowadays, after obtaining a software offline upgrade package, a system administrator accesses an upgrade entry of each software on an intranet, and executes an upgrade operation of the corresponding software on a corresponding software upgrade interface. During upgrading, a system administrator needs to pay attention to the upgrading progress in real time and execute the next operation according to the upgrading prompt. In practical application, a general system administrator needs to simultaneously execute upgrading operations of a plurality of software, so that the system administrator needs to switch to check and operate back and forth on different upgrading interfaces, and the operation complexity of the system administrator is greatly increased.
Disclosure of Invention
The invention aims to provide a method, a device, a server and a storage medium for software offline upgrade, which can uniformly realize the upgrade management of each software based on an upgrade module without frequently switching and checking in different interfaces and files so as to reduce the complexity of upgrade operation.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a software upgrading method, which is applied to a server, where an upgrade module is built in the server, and the upgrade module has a predetermined upgrade process, and the method includes:
receiving at least one software offline upgrade package, wherein the software offline upgrade package contains a software upgrade file and software upgrade operation information, and the software upgrade operation information is matched with the preset upgrade process;
and the upgrading module controls the preset upgrading process to execute upgrading operation according to the software upgrading operation information in the software offline upgrading package aiming at each software offline upgrading package, and upgrades the software corresponding to the software offline upgrading package.
In one implementation manner, the controlling, by the upgrade module, the predetermined upgrade process to execute the upgrade operation according to the software upgrade operation information in each software offline upgrade package, and upgrading the software corresponding to the software offline upgrade package includes:
executing security scanning operation on the software offline upgrade package;
after the security scanning is passed, performing decompression operation on the software offline upgrade package to obtain a software upgrade file and software upgrade operation information;
and controlling the preset upgrading process to execute upgrading operation according to the software upgrading operation information in the software offline upgrading package, and upgrading the software corresponding to the software offline upgrading package.
In one implementation manner, after the security scan passes, according to software upgrading operation information in the software offline upgrading package, controlling the predetermined upgrading process to execute upgrading operation, and upgrading software corresponding to the software offline upgrading package, includes:
searching corresponding target software according to the software upgrading file, and executing software backup operation on the target software to obtain software backup data;
after the software backup operation is successfully executed, executing installation operation on the target software according to the software upgrading file;
judging whether the installation operation is successfully executed, if so, clearing the software backup data;
if not, restoring the target software to the state before upgrading according to the software backup data.
In one implementation, the predetermined upgrade flow includes at least one stage, and the software upgrade operation information includes specific operation information executed in the stage;
controlling the preset upgrading process to execute upgrading operation according to the software upgrading operation information in the software offline upgrading package, wherein the upgrading operation comprises the following steps:
when each stage in the preset upgrading flow is executed, specific operation information corresponding to the stage is found out based on the software upgrading operation information, the specific operation information is called, and specific operation of the stage is executed.
In one implementation, the method further comprises:
if any one of the safety scanning, the decompression and the upgrading operation fails to be executed, the software upgrading operation is ended, and the upgrading information is recorded in a unified audit log;
if the upgrading operation is successful, the software upgrading operation is finished, and the upgrading information is recorded in a unified audit log.
In one implementation manner, each stage in the predetermined upgrade flow has a corresponding shell script, which is used to call specific operation information corresponding to the stage.
In a second aspect, an embodiment of the present invention provides a software upgrading apparatus, which is applied to a server, where an upgrade module is built in the server, the upgrade module has a predetermined upgrade process, and the software upgrading apparatus includes:
the receiving module is used for receiving at least one software offline upgrade package, wherein the software offline upgrade package contains a software upgrade file and software upgrade operation information, and the software upgrade operation information is matched with the preset upgrade process;
and the processing module is used for sending the received software offline upgrade packages to the upgrade module so as to carry out software upgrade operation, and based on the upgrade module, aiming at each software offline upgrade package, according to the software upgrade operation information in the software offline upgrade package, the processing module controls a preset upgrade flow in the upgrade module to execute upgrade operation so as to upgrade the software corresponding to the software offline upgrade package.
In one implementation, the processing module is configured to upgrade software by:
executing security scanning operation on the software offline upgrade package;
after the security scanning is passed, performing decompression operation on the software offline upgrade package to obtain a software upgrade file and software upgrade operation information;
and controlling the preset upgrading process to execute upgrading operation according to the software upgrading operation information in the software offline upgrading package, and upgrading the software corresponding to the software offline upgrading package.
In a third aspect, an embodiment of the present invention provides a server, including: a memory, a processor and a program stored on the memory and executable on the processor, the program when executed by the processor implementing the method according to the first aspect as described above.
In a fourth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, the computer program, when executed by a processor, performing the steps of the method according to the first aspect.
The beneficial effects of the embodiment of the invention include, for example:
the upgrading module with the preset upgrading process is arranged in the server, the preset upgrading process is controlled to execute upgrading operation according to the software upgrading operation information in each software offline upgrading packet, all the software is upgraded according to the preset upgrading process in the upgrading module, automatic and unified upgrading of each software is realized based on the upgrading module, and therefore the operation complexity of a system administrator is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a software upgrading method according to an embodiment of the present invention;
fig. 3 is a second schematic flowchart of a software upgrading method according to an embodiment of the present invention;
fig. 4 is a third schematic flowchart of a software upgrading method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a software upgrading method according to the prior art;
FIG. 6 is a flowchart illustrating a software upgrading method according to an embodiment of the present invention;
fig. 7 is a schematic diagram of functional modules of a software upgrading apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, 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 with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
The embodiment provides a server for realizing software upgrading. The server may have a data interface capable of communicating with an external system to obtain the software offline upgrade package. The server may further have a component capable of Processing the software offline upgrade package, for example, a Central Processing Unit (CPU), so as to execute the software upgrade method provided in this embodiment.
In one possible implementation, the server may be a server capable of communicating with the user terminal. The server can obtain the instruction of a system administrator and realize software upgrading according to the instruction of the system administrator.
Fig. 1 is a schematic structural diagram of a server 100 according to an embodiment of the present invention. The server 100 includes a software upgrade apparatus 110, a memory 120, a processor 130, and a communication unit 140.
The memory 120, processor 130, and communication unit 140 are electrically connected to each other directly or indirectly to enable data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The software upgrading apparatus 110 includes at least one software functional module which can be stored in the memory 120 in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of the server 100. The processor 130 is used for executing executable modules stored in the memory 120, such as software functional modules and computer programs included in the software upgrading device 110. The software upgrading method is implemented when the computer-executable instructions in the software upgrading device 110 are executed by a processor.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 120 is used for storing a program, and the processor 130 executes the program after receiving the execution instruction. The communication unit 140 is used for transceiving data through a network.
The processor 130 may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
At present, for a locally deployed server, different software offline upgrade packages need to be upgraded on respective corresponding upgrade interfaces. On one hand, because the upgrading logic of the software is not unified in the industry, and on the other hand, because the design ideas of software providers are different when developing the software, the logic of the later software upgrading is different, so that when a system administrator needs to simultaneously execute upgrading on a plurality of software, the operation complexity is greatly increased.
Based on the above situation, the software upgrading method provided in the embodiment of the present invention specifies an upgrading process, so that the software with different processing logics executes the upgrading operation according to the predetermined upgrading process, and thus the upgrading operation of all the software can be executed on the upgrading interface provided by the upgrading module, thereby simplifying the operation of the system administrator. Fig. 2 is a schematic flow diagram of a software upgrading method according to an embodiment of the present invention, which is applied to a server, where an upgrade module is built in the server, and the upgrade module has a predetermined upgrade flow, as shown in fig. 2, the method includes S101 and S102.
S101, receiving at least one software offline upgrade package.
The software offline upgrade package comprises a software upgrade file and software upgrade operation information, and the software upgrade operation information is matched with a preset upgrade process.
S102, the upgrading module controls a preset upgrading process to execute upgrading operation according to the software upgrading operation information in each software offline upgrading package, and upgrades the software corresponding to the software offline upgrading package.
In one implementation, the server receives at least one software offline upgrade package, and sends the received software offline upgrade package to an upgrade module inside the server to perform uniform upgrade processing. The software off-line upgrading package comprises a software upgrading file and software upgrading operation information, and the software upgrading operation information is matched with a preset upgrading process in the upgrading module. And the upgrading module controls a preset upgrading process to execute upgrading operation according to the software upgrading operation information in the software offline upgrading package aiming at each software offline upgrading package, and upgrades the software corresponding to the software offline upgrading package.
Therefore, the software upgrading is performed according to the preset flow, wherein the specific implementation steps can be provided by the software upgrading operation information in the software offline upgrading package, so that the software can be upgraded on the upgrading interface provided by the upgrading module, a system administrator does not need to frequently switch the upgrading interface to perform the next upgrading operation of the corresponding software, and the operation of the system administrator on the software upgrading is simplified.
Based on the scheme, after the software offline upgrade package is obtained, the upgrade module automatically controls and executes the upgrade operation of the corresponding software, and a system administrator does not need to perform other operations, so that the system administrator does not need to have professional knowledge of the corresponding software upgrade, meanwhile, the condition of misoperation of the system administrator is avoided, and the reliability of the software upgrade is ensured.
In one implementation mode, the software offline upgrade package can be uploaded by an administrator or can be accessed to a software provider official network by an extranet at regular time, when a new version is found, the software offline upgrade package is downloaded, and after the downloading is completed, the software offline upgrade package is sent to a server.
For convenience of subsequent understanding, the upgrade module in this embodiment may be a virtual structure in the server, such as a software program, and its specific function is implemented by hardware devices in the server, and the upgrade module is provided with an upgrade interface for a system administrator to perform upgrade operations, that is, for the system administrator, the upgrade operations are all completed on the upgrade interface.
Since the security of the server is very important for large enterprises and units that place importance on data security, operations such as security scanning can be performed on received files to ensure the security of the server. Fig. 3 is a second schematic flow chart of a software upgrading method according to an embodiment of the present invention, in which an upgrade module controls a predetermined upgrade flow to execute upgrade operation according to software upgrade operation information in each software offline upgrade package, and upgrades software corresponding to the software offline upgrade package, including:
s201, the upgrading module executes security scanning operation on the software offline upgrading package;
s202, after the security scanning is passed, performing decompression operation on the software offline upgrade package to obtain a software upgrade file and software upgrade operation information;
s203, according to the software upgrading operation information in the software offline upgrading package, controlling a preset upgrading process to execute upgrading operation, and upgrading the software corresponding to the software offline upgrading package.
In step S201, in order to prevent the offline software upgrade package from carrying a virus file, which may cause a crash of the enterprise server, in one implementation manner, the upgrade module is required to perform a security scanning operation on the received offline software upgrade package, wherein for simple operation, the offline software upgrade package may be safely scanned by third-party antivirus software to detect whether the offline software upgrade package carries a virus file. For enterprises with special requirements, the security scanning operation can also be executed by adopting targeted written antivirus programs. Therefore, the security of the system server is greatly ensured.
In step S202, in an implementation manner, after the software offline upgrade package is safely scanned, a decompression operation is performed on the software offline upgrade package to obtain a software upgrade file and software upgrade operation information. When the decompression operation is executed, because some software providers can encrypt the software offline upgrade package, the decompression operation is accompanied by a decryption operation, and after a system administrator inputs a decompression password, the upgrade module automatically executes the decompression and decryption operations.
The software upgrading file is used for replacing an original file of the software in a system corresponding to the software upgrading file when the software is upgraded and installed, so that the software is upgraded. The software upgrade operation information is used to control the specific operation of a predetermined upgrade flow stage.
Therefore, the system automatically executes the operation of the flow by integrating the safe scanning, the decompression and the decryption operation into a whole, the upgrading efficiency is improved, and the complicated operation of a system administrator is reduced.
Fig. 4 is a third schematic flow chart of a software upgrading method according to an embodiment of the present invention, in which software is upgraded on a unified upgrade interface by the method, and as shown in fig. 4, after a security scan is passed, according to software upgrading operation information in the software offline upgrade package, a predetermined upgrade flow is controlled to execute upgrading operation, and software corresponding to the software offline upgrade package is upgraded, including:
s301, searching corresponding target software according to the software upgrading file, and executing software backup operation on the target software to obtain software backup data;
s302, after the software backup operation is successfully executed, the target software is installed according to the software upgrading file;
s303, judging whether the installation operation is successfully executed, if so, executing a step S304, otherwise, executing a step S305;
s304, restoring the target software to a state before upgrading according to the software backup data;
s305, clearing the software backup data.
In an implementation manner, the predetermined upgrade flow is the above steps S301 to S305, where the predetermined upgrade flow is only an abstract logic, each step corresponds to a stage, and the execution of the specific implementation step corresponding to each stage needs to be controlled according to the software upgrade information obtained by decompression. The software upgrading information can be provided by a software developer and upgrading operation information matched with a preset upgrading process, and can also be written by a system administrator and provided with the software upgrading operation information.
Because the upgrade flow is specified, the specific implementation steps can be written by a software provider or a system administrator, so that the processing logic of various kinds of software can be adapted.
Each stage is provided with a corresponding shell script and is used for searching and calling software upgrading operation information corresponding to the stage, and specific operation is executed according to the software upgrading operation information so as to complete the function of the stage. The shell script is adopted, programs of any language can be called, namely, the language of the software upgrading operation information is not limited, and the development cost of a software provider can be reduced as much as possible.
In step S301, when an upgrade failure occurs, the software may be restored to a state before the upgrade, and in one implementation, the software is backed up before formal installation. The preset upgrade flow only sets the stage as software backup, and as to which contents need to be backed up specifically, the determination needs to be performed according to the software upgrade information corresponding to the stage. For example: the software A is updated and upgraded conventionally, so that the software upgrading information can be the backup of the execution file; software B may involve some data update, so the software upgrade information may be a backup of executable files and databases; software C may be added with some content, so that the software upgrade information may need to backup executable files, create some new directories, and modify some system configurations to accommodate the new version functionality. Therefore, different software upgrading contents cause different backup contents, and specific operation needs to be called according to software upgrading operation information corresponding to the backup stage so as to complete the operation of the software backup stage.
After the software backup is completed, according to the predetermined upgrade procedure, the installation operation needs to be performed on the software, i.e., step S302. In one implementation, the installation operation may include replacement of an execution file, that is, an original file in the software is replaced with a corresponding software upgrade file, or there may be a case of multiple reboots of the server. The execution files to be replaced, the replacement sequence of the files and the restart time are determined, and specific operation is called according to software upgrading operation information corresponding to the installation phase so as to complete the operation of the installation phase.
Because the software offline package version provided by the software provider is not correct, the software offline package lacks part of the file, and the like, so that the execution of the installation operation fails, it needs to be determined whether the execution of the installation operation succeeds, that is, step S303, in an implementation manner, when the stage of step S302 is, for example: and errors occur in file replacement, server restart, configuration modification and the like, namely the execution of the installation operation fails.
Since the original file and the original data are updated and replaced in step S302, when it is determined that the installation operation fails, the data of the software needs to be restored to the state before the upgrade, so that even if the upgrade fails, the normal use of the software is not affected, and the normal upgrade can be performed after a correct software offline upgrade package is obtained subsequently.
When the installation operation is judged to be successful, in one implementation mode, the operation of clearing the software backup data can be executed, and after the software upgrading operation is finished, the software offline upgrade package, the decompressed software upgrade file and the software upgrading operation information are deleted, so that the situation that the software upgrade file and the software upgrading operation information are used by mistake when the software is upgraded next time is avoided.
After the upgrade operation is completed, the upgrade information may be recorded in a unified audit log to facilitate subsequent operations by a system administrator, the method further comprising:
s401, if any one of the security scanning, the decompression and the upgrading operation fails to be executed, ending the software upgrading operation, and recording the upgrading information in a unified audit log; if the upgrading operation is successful, the software upgrading operation is finished, and the upgrading information is recorded in a unified audit log.
In one implementation, no matter the software upgrade is successful or the software upgrade is failed, such as any one of the execution failures of the security scanning operation, the decompression operation, the decryption operation, the software backup operation and the installation operation in the preset upgrade flow, the subsequent operation is not executed any more, the software upgrade operation is ended, and the upgrade information is recorded in the unified audit log. The upgrade information may include information such as version, time, result, and error reason of the upgrade, and may be set according to actual requirements.
Therefore, the upgrading information of all the software is put together, so that the subsequent administrator can conveniently manage the software, and the condition of all the software is directly known.
To facilitate understanding of the embodiments of the present invention, the following description will illustrate implementation principles and advantages of the embodiments of the present invention by way of comparative examples.
For example: the software offline upgrade package a and the software offline upgrade package b are provided, wherein a and b come from different software providers, and the upgrade logic is different. Fig. 5 is a flowchart illustrating a software upgrading method in the prior art, and as shown in fig. 5, in the prior art, after a and b are obtained by a system administrator, an upgrade entry corresponding to a and an upgrade entry corresponding to b are found, and in an upgrade interface corresponding to a, upgrading of software a is realized according to an upgrade logic of software a; and B, upgrading the software B according to the upgrading logic of the software B on the upgrading interface corresponding to the B.
Fig. 6 is a flowchart illustrating a software upgrading method according to an embodiment of the present invention, and as shown in fig. 6, in the present invention, after obtaining a software offline upgrade package a, a system administrator sends the package to an upgrade interface entry provided by an upgrade module of a server, and the upgrade module obtains software upgrade operation information according to decompression and executes an upgrade operation on software a according to a flow predetermined by the upgrade module. The preset upgrading process includes four stages of software backup, installation, backup data removal and recovery to a state without upgrading, and the software a calls specific operation information in the software upgrading operation information corresponding to the software backup stage in the software backup stage to complete specific operations in the software backup stage, for example: file backup, database backup, etc. Similarly, other phases also call specific operation information in the software upgrade operation information corresponding to the phase to complete the specific operation of the phase. Similarly, the software B also executes the upgrading operation like the software A according to the preset upgrading flow in the upgrading module. Therefore, the software A and the software B can realize the upgrading of the corresponding software on the upgrading interface provided by the upgrading module.
It should be noted that fig. 5 and 6 are simplified flows for convenience of explanation, and do not limit the embodiments of the present invention.
Fig. 7 is a schematic diagram of functional modules of a software upgrading apparatus according to an embodiment of the present invention, the basic principle and the technical effect of the apparatus are the same as those of the corresponding method embodiment, and for brief description, the corresponding contents in the method embodiment may be referred to for parts not mentioned in this embodiment. As shown in fig. 7, the apparatus includes a receiving module 210, a processing module 220, and an upgrading module 230.
The receiving module 210 is configured to receive a software offline upgrade package that is sent to a server after being uploaded by a system administrator or downloaded by an extranet.
And the processing module 220 is configured to send the received software offline upgrade package to an upgrade interface provided by the upgrade module.
The upgrading module 230 is configured to control, for each received software offline upgrade package, a predetermined upgrade flow in the upgrading module 230 to execute upgrade operations according to the software upgrade operation information of the software offline upgrade package, and upgrade software corresponding to the software offline upgrade package.
In one implementation mode, a preset upgrading process is arranged in the upgrading module, software upgraded by the upgrading module is upgraded according to the preset upgrading process, and the preset upgrading process comprises four stages of software backup, installation, software backup data clearing and software backup data recovery to a state before upgrading. After receiving the software offline upgrade package, the upgrade module performs security scanning, decompression and decryption operations on the software upgrade package to obtain a software upgrade file and software upgrade operation information. Calling software upgrading operation information corresponding to a specific stage in a preset upgrading process through a shell script based on the software upgrading operation information, and executing the operation of the specific stage of the preset upgrading process; and using the software upgrading file in an installation stage in a preset upgrading process so as to replace the execution file.
In one implementation, the upgrade module is further configured to determine whether the predetermined upgrade procedure and the decompression and security scan operations are successfully executed, and control subsequent steps according to a determination result. And after the upgrading operation is finished, recording the upgrading information in a unified audit log.
In one implementation, the present application further provides a server, comprising: memory, a processor and a program stored on the memory and executable on the processor, which program, when executed by the processor, carries out the steps of the above-mentioned method embodiments.
In one implementation, the present application further provides a storage medium having a computer program stored thereon, which when executed by a processor performs the steps of the above method embodiment.
To sum up, embodiments of the present invention provide a software upgrading method, apparatus, server, and storage medium, which enable all software to be upgraded according to a predetermined upgrade flow in an upgrade module, and implement automatic and unified upgrade of each software based on the upgrade module, so that system management does not need to have professional knowledge related to software upgrade, and operation complexity of a system administrator is reduced.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A software upgrading method is applied to a server, an upgrading module is arranged in the server, and the upgrading module has a preset upgrading process, and the method comprises the following steps:
receiving at least one software offline upgrade package, wherein the software offline upgrade package contains a software upgrade file and software upgrade operation information, and the software upgrade operation information is matched with the preset upgrade process;
and the upgrading module controls the preset upgrading process to execute upgrading operation according to the software upgrading operation information in the software offline upgrading package aiming at each software offline upgrading package, and upgrades the software corresponding to the software offline upgrading package.
2. The method according to claim 1, wherein the upgrading module controls the predetermined upgrading process to execute upgrading operation according to software upgrading operation information in each software offline upgrading package, and upgrades the software corresponding to the software offline upgrading package, including:
executing security scanning operation on the software offline upgrade package;
after the security scanning is passed, performing decompression operation on the software offline upgrade package to obtain a software upgrade file and software upgrade operation information;
and controlling the preset upgrading process to execute upgrading operation according to the software upgrading operation information in the software offline upgrading package, and upgrading the software corresponding to the software offline upgrading package.
3. The method of claim 2, wherein controlling the predetermined upgrade process to execute the upgrade operation according to the software upgrade operation information in the software offline upgrade package to upgrade the software corresponding to the software offline upgrade package comprises:
searching corresponding target software according to the software upgrading file, and executing software backup operation on the target software to obtain software backup data;
after the software backup operation is successfully executed, executing installation operation on the target software according to the software upgrading file;
judging whether the installation operation is successfully executed, if so, clearing the software backup data;
if not, restoring the target software to the state before upgrading according to the software backup data.
4. The method of claim 1, wherein the predetermined upgrade flow includes at least one stage, and the software upgrade operation information includes specific operation information performed at the stage;
controlling the preset upgrading process to execute upgrading operation according to the software upgrading operation information in the software offline upgrading package, wherein the upgrading operation comprises the following steps:
when each stage in the preset upgrading flow is executed, specific operation information corresponding to the stage is found out based on the software upgrading operation information, the specific operation information is called, and specific operation of the stage is executed.
5. The method of claim 2, further comprising:
if any one of the safety scanning, the decompression and the upgrading operation fails to be executed, the software upgrading operation is ended, and the upgrading information is recorded in a unified audit log;
if the upgrading operation is successful, the software upgrading operation is finished, and the upgrading information is recorded in a unified audit log.
6. The method according to claim 4, wherein each stage in the predetermined upgrade flow has a corresponding shell script for calling specific operation information corresponding to the stage.
7. A software upgrading device is applied to a server, an upgrading module is arranged in the server, the upgrading module has a preset upgrading process, and the software upgrading device comprises:
the receiving module is used for receiving at least one software offline upgrade package, wherein the software offline upgrade package contains a software upgrade file and software upgrade operation information, and the software upgrade operation information is matched with the preset upgrade process;
and the processing module is used for sending the received software offline upgrade packages to the upgrade module so as to carry out software upgrade operation, and based on the upgrade module, aiming at each software offline upgrade package, according to the software upgrade operation information in the software offline upgrade package, the processing module controls a preset upgrade flow in the upgrade module to execute upgrade operation so as to upgrade the software corresponding to the software offline upgrade package.
8. The apparatus of claim 7, wherein the processing module is configured to upgrade software by:
executing security scanning operation on the software offline upgrade package;
after the security scanning is passed, performing decompression operation on the software offline upgrade package to obtain a software upgrade file and software upgrade operation information;
and controlling the preset upgrading process to execute upgrading operation according to the software upgrading operation information in the software offline upgrading package, and upgrading the software corresponding to the software offline upgrading package.
9. A server, comprising: memory, processor and program stored on the memory and executable on the processor, which when executed by the processor implements the method of any one of claims 1 to 6.
10. A storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202111181700.1A 2021-10-11 2021-10-11 Software upgrading method, device, server and storage medium Pending CN113900688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111181700.1A CN113900688A (en) 2021-10-11 2021-10-11 Software upgrading method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111181700.1A CN113900688A (en) 2021-10-11 2021-10-11 Software upgrading method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN113900688A true CN113900688A (en) 2022-01-07

Family

ID=79191335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111181700.1A Pending CN113900688A (en) 2021-10-11 2021-10-11 Software upgrading method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN113900688A (en)

Similar Documents

Publication Publication Date Title
US6553490B1 (en) Computer system including local computer with capability to automatically update operating system or application program from network server
CN109828772B (en) Thermal update method, operating system, terminal device, and storage medium
EP2482187A1 (en) Software upgrading method, software upgrading system and client
CN107220074B (en) Method and device for accessing and upgrading supporting layer software function
CN113032032B (en) System management method and device, computing equipment and readable storage medium
WO2018024198A1 (en) Application upgrade method and system for set-top box, and set-top box
KR20170067826A (en) Updating of firmware
CN114115984A (en) Server firmware upgrading method, storage device and terminal
CN112732285B (en) Upgrading method and device suitable for cloud computing linux operating system and electronic equipment
US10102008B2 (en) Managed boot process system
CN111090546A (en) Method, device and equipment for restarting operating system and readable storage medium
CN117130672A (en) Server start flow control method, system, terminal and storage medium
CN111782236A (en) System software upgrading method and device, storage medium and all-in-one machine equipment
CN113900688A (en) Software upgrading method, device, server and storage medium
CN114095498B (en) Cluster environment deployment method, system, computer equipment and storage medium
Cisco Chapter 3: Installing the Cisco Media Gateway Controller Software Release 7.4
CN109428936B (en) APP upgrading method, device, system, electronic equipment and storage medium
CN114153503A (en) BIOS control method, device and medium
CN112925549A (en) System application upgrading system based on android frame
CN112527371B (en) Boot loader upgrading method and device, electronic equipment and storage medium
CN112579113A (en) Application program upgrading method and device, storage medium and terminal
CN114610415B (en) Program starting method, system, storage medium and electronic equipment
CN117234606B (en) BIOS configuration data synchronization method and device
CN117472785B (en) Openstack test method and system under Linux system
US20230205512A1 (en) System updating method and electronic apparatus

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