CN112732292B - Method, system, equipment and readable storage medium for upgrading software - Google Patents
Method, system, equipment and readable storage medium for upgrading software Download PDFInfo
- Publication number
- CN112732292B CN112732292B CN202011623152.9A CN202011623152A CN112732292B CN 112732292 B CN112732292 B CN 112732292B CN 202011623152 A CN202011623152 A CN 202011623152A CN 112732292 B CN112732292 B CN 112732292B
- Authority
- CN
- China
- Prior art keywords
- software
- upgrading
- upgrade
- files
- downloading
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000004590 computer program Methods 0.000 claims description 6
- 238000009434 installation Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 abstract description 14
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000012790 confirmation Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000005336 cracking Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 101100217298 Mus musculus Aspm gene Proteins 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a method for upgrading software, which comprises the following steps: downloading a corresponding software upgrading packet according to the received upgrading request; installing the software upgrading package into a preset folder, and determining newly added files and deleted files in the preset folder; deleting file links of deleted files in the software installation directory, and adding file links pointing to newly added files in a preset folder in the software installation directory; restarting the software to complete the upgrade of the software. According to the method and the device, the files in the software upgrading package exist in the software installation catalog in the form of file links, so that rollback operation can be immediately carried out in the mode of modifying the file links when the software is in a problem, the possibility of downtime of the software is reduced, the situation that a client is out of control and cannot work due to upgrading work is avoided, and the reliability of the software in the upgrading process is greatly improved. The application also provides a system, equipment and readable storage medium for upgrading the software, which have the beneficial effects.
Description
Technical Field
The present invention relates to the field of software upgrading, and in particular, to a method, a system, a device and a readable storage medium for upgrading software.
Background
With the development of network technology, more and more software is not independently operated after being installed, in order to prevent cracking, update software, manage and the like, a centralized management platform is set up, all software instances are used as clients to connect with the management platform, all software instances are managed by the management platform in a unified way, such as a software defined network, a software defined wide area network and the like, and management has a great possibility of modifying programs and data files of the clients, and the unified way is called software upgrading.
However, software upgrading may cause abnormal operation of the software, and further cause the software to run away and not work, so how to improve the reliability of the software in the upgrading process is a technical problem that needs to be solved currently by those skilled in the art.
Disclosure of Invention
The application aims to provide a method, a system, equipment and a readable storage medium for upgrading software, which are used for improving the reliability of the software in the upgrading process.
In order to solve the above technical problems, the present application provides a method for upgrading software, which includes:
downloading a corresponding software upgrading packet according to the received upgrading request;
installing the software upgrading package into a preset folder, and determining newly added files and deleted files in the preset folder;
deleting the file links of the deleted files in the software installation directory, and adding file links pointing to newly added files in the preset folder in the software installation directory;
restarting the software to complete the upgrade of the software.
Optionally, after restarting the software, the method further includes:
judging whether the current version number of the software is received in a first preset time;
if not, executing the software rollback operation;
if yes, judging whether the current version number is consistent with the version number corresponding to the software upgrading packet;
if the software is consistent, the success of the software upgrading is confirmed;
and if the software rollback operation is inconsistent, executing the software rollback operation.
Optionally, the executing the software rollback operation includes:
deleting the file links of the newly added files in the software installation directory, and recovering the file links of the deleted files in the software installation directory.
Optionally, after performing the software rollback operation, the method further includes:
judging whether the current version number of the software is received in a second preset time;
if not, confirming that the software is wrong and reporting to the server;
if yes, judging whether the current version number is consistent with the initial version number of the software;
if the software upgrade is consistent, confirming that the software upgrade fails;
if the software is inconsistent, confirming that the software is wrong and reporting the software to the server.
Optionally, before downloading the corresponding software upgrade package according to the received upgrade request, the method further includes:
and sending a version update checking request to a server so that the server checks whether the software needs to be updated or not, and returning the upgrading request when the software needs to be updated.
Optionally, the downloading the corresponding software upgrade package according to the received upgrade request includes:
acquiring the attribute of the software upgrading package, and determining the downloading starting time and the appointed bandwidth according to the attribute;
and downloading the software upgrade package at the designated bandwidth at the beginning downloading time.
Optionally, after downloading the corresponding software upgrade package according to the received upgrade request, before installing the software upgrade package into the preset folder, the method further includes:
carrying out hash check on the software upgrading packet;
and if the hash check is passed, executing the step of installing the software upgrading package into a preset folder.
The present application also provides a system for software upgrade, the system comprising:
the downloading module is used for downloading the corresponding software upgrading package according to the received upgrading request;
the installation module is used for installing the software upgrading package into a preset folder and determining newly added files and deleted files in the preset folder;
the deleting and adding module is used for deleting the file links of the deleted files in the software installation directory and adding the file links pointing to the newly added files in the preset folder in the software installation directory;
and the restarting module is used for restarting the software to finish the upgrading of the software.
The application also provides a software upgrade apparatus, which includes:
a memory for storing a computer program;
a processor for implementing the steps of the method of software upgrade as claimed in any one of the preceding claims when executing the computer program.
The present application also provides a readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of software upgrade as described in any of the above.
The method for upgrading the software provided by the application comprises the following steps: downloading a corresponding software upgrading packet according to the received upgrading request; installing the software upgrading package into a preset folder, and determining newly added files and deleted files in the preset folder; deleting file links of deleted files in the software installation directory, and adding file links pointing to newly added files in a preset folder in the software installation directory; restarting the software to complete the upgrade of the software.
According to the technical scheme, the software upgrading package is installed in the preset folder, the newly-added files and the deleted files in the preset folder are determined, then the file links of the deleted files in the software installation directory are deleted, the file links pointing to the newly-added files in the preset folder are added in the software installation directory, the files in the software upgrading package exist in the software installation directory in the form of the file links, further rollback operation can be immediately carried out in the mode of modifying the file links when software is in a problem, the possibility of downtime of the software is reduced, the runaway and incapability of the client due to upgrading work are avoided, and the reliability of the software in the upgrading process is greatly improved. The application also provides a system, a device and a readable storage medium for upgrading software, which have the beneficial effects and are not repeated here.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flowchart of a method for upgrading software according to an embodiment of the present application;
FIG. 2 is a flow chart of another method for upgrading software provided in an embodiment of the present application;
FIG. 3 is a block diagram of a system for software upgrade provided in an embodiment of the present application;
fig. 4 is a block diagram of a software upgrading apparatus according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a method, a system, equipment and a readable storage medium for upgrading software, which are used for improving the reliability of the software in the upgrading process.
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Based on the prior art, with the development of network technology, more and more software does not adopt the scheme of independent operation after installation, in order to prevent cracking, software updating, management and other demands, a centralized management platform is set up, all software instances are used as clients to connect with the management platform, and all software instances, such as a software defined network, a software defined wide area network and the like, are managed by the management platform in a unified way, wherein:
the software defined network is a novel network innovation architecture and is an implementation mode of network virtualization. The core technology OpenFlow separates a control surface from a data surface of network equipment, so that flexible control of network flow is realized, a network is more intelligent as a pipeline, a good platform is provided for innovation of a core network and application, and the OpenFlow is generally composed of a management and control platform and N controlled network equipment;
a software defined wide area network is a service formed by applying software defined networking technology to a wide area network scenario, where the service is used to connect to enterprise networks, data centers, internet applications, and cloud services over a wide geographic range. Management has a great potential to modify the client's programs and data files, collectively referred to as software upgrades.
However, the software upgrade may cause abnormal operation of the software, and further cause the software to run away and not work; the present application provides a method of software upgrade to solve the above-mentioned problems.
Referring to fig. 1, fig. 1 is a flowchart of a method for upgrading software according to an embodiment of the present application.
The method specifically comprises the following steps:
s101: downloading a corresponding software upgrading packet according to the received upgrading request;
the upgrade request mentioned herein may be specifically input by a user or may be sent by a server, and in a specific embodiment, before downloading the corresponding software upgrade package according to the received upgrade request, the following steps may be further performed:
and sending a version update checking request to the server so that the server checks whether the software needs to be updated or not and returns an upgrading request when the software needs to be updated.
The version update check request may be sent to the server at regular intervals, or may be sent to the server at preset intervals, which is not particularly limited in this application.
Optionally, to reduce the influence on the normal running of the software in the process of downloading the software upgrade package, the downloading may be further set according to the attribute of the software upgrade package, that is, the downloading of the corresponding software upgrade package according to the received upgrade request may specifically be:
acquiring the attribute of the software upgrading package, and determining the downloading starting time and the appointed bandwidth according to the attribute;
the software upgrade package is downloaded at a specified bandwidth at a start download time.
In a specific embodiment, the attribute of the software upgrade package mentioned herein may further include at least one of a version of the software upgrade package, a resource location, a start upgrade time, a hash value, and a status;
further, the setting of the attribute of the software upgrade package may be implemented by setting a software upgrade package list table, where the software upgrade package list table may specifically be as follows:
in a specific embodiment, after downloading the corresponding software upgrade package according to the received upgrade request, the client upgrade agent may be started, so that the client upgrade agent is responsible for monitoring whether the software can be started successfully, and if the software cannot be started successfully, the client upgrade agent can restart the client software, thereby preventing the problems that the client software is unresponsive and loses control forever.
S102: installing the software upgrading package into a preset folder, and determining newly added files and deleted files in the preset folder;
when the software is upgraded, a plurality of files are usually required to be added and deleted, so that the software needs to recover the deleted files when the software rolls back, the newly added files are deleted, the software rollback speed is low, and the condition of downtime of the software can occur, therefore, in the step, the software upgrading package is installed into a preset folder, and the newly added files and the deleted files in the preset folder are determined, and the aim is to separate the installation position of the software upgrading package from a software installation catalog, so that file links of all files are stored in the software installation catalog, and the software can find the files in the corresponding folder through the file links to call when the files need to be called; when the software is in problem, the rollback operation can be immediately carried out by modifying the file link, so that the possibility of downtime of the software is reduced.
Optionally, to improve the security of the software upgrade, after downloading the corresponding software upgrade package according to the received upgrade request, before installing the software upgrade package into the preset folder, the following steps may be further performed to complete the verification of the software upgrade package:
carrying out hash check on the software upgrading package;
and if the hash check is passed, executing the step of installing the software upgrading package into a preset folder.
The hash check mentioned here may specifically be an MD5 hash check or a SHA1 hash check.
S103: deleting file links of deleted files in the software installation directory, and adding file links pointing to newly added files in a preset folder in the software installation directory;
s104: restarting the software to complete the upgrade of the software.
In a specific embodiment, after the software upgrade is completed, the software upgrade is restarted, and then the current version number of the software is actively notified to the client upgrade agent and the server upgrade management and control center, so as to determine whether the upgrade is successful, and if not, the software rollback operation needs to be performed, that is, after step S104 is performed, the steps shown in fig. 2 may be further performed to determine whether the software rollback is required, which is described below in connection with fig. 2.
Referring to fig. 2, fig. 2 is a flowchart of another method for upgrading software according to an embodiment of the present application.
The method specifically comprises the following steps:
s201: judging whether the current version number of the software is received in a first preset time;
if not, go to step S202; if yes, the process proceeds to step S203.
S202: executing a software rollback operation;
in a specific embodiment, the software rollback operation is performed as mentioned herein, which may specifically be:
deleting the file links of the newly added files in the software installation directory, and recovering the file links of the deleted files in the software installation directory.
S203: judging whether the current version number is consistent with the version number corresponding to the software upgrading packet;
if so, the step S204 is entered; if not, the process returns to step S202.
S204: and confirming that the software upgrade is successful.
Optionally, after executing the software rollback operation, the following steps may be executed to determine whether the software rollback operation is executed successfully:
judging whether the current version number of the software is received in a second preset time;
if not, confirming that the software is wrong and reporting to the server;
if yes, judging whether the current version number is consistent with the initial version number of the software;
if the software upgrade is consistent, confirming that the software upgrade fails;
if the software is inconsistent, confirming that the software is wrong and reporting the software to the server.
Based on the technical scheme, according to the method for upgrading the software, the software upgrading package is installed in the preset folder, the newly-added file and the deleted file in the preset folder are determined, then the file link of the deleted file in the software installation directory is deleted, and the file link pointing to the newly-added file in the preset folder is added in the software installation directory, so that the file in the software upgrading package exists in the software installation directory in the form of the file link, and then rollback operation can be immediately carried out in the mode of modifying the file link when the software is in a problem, the possibility of downtime of the software is reduced, the situation that the client is out of control and cannot work due to upgrading work is avoided, and the reliability of the software in the upgrading process is greatly improved.
Referring to fig. 3, fig. 3 is a block diagram of a system for upgrading software according to an embodiment of the present application.
The system may include:
the downloading module 100 is configured to download a corresponding software upgrade package according to the received upgrade request;
the installation module 200 is used for installing the software upgrade package into a preset folder and determining newly added files and deleted files in the preset folder;
the deletion and addition module 300 is configured to delete a file link of a deleted file in the software installation directory, and add a file link pointing to a newly added file in a preset folder in the software installation directory;
and the restarting module 400 is used for restarting the software to finish the upgrading of the software.
Based on the above embodiments, in a specific embodiment, the system may further include:
the first judging module is used for judging whether the current version number of the software is received in a first preset time;
the first execution module is used for executing the software rollback operation when the current version number of the software is not received within a first preset time;
the second judging module is used for judging whether the current version number is consistent with the version number corresponding to the software upgrading packet or not when the current version number of the software is received in the first preset time;
the first confirmation module is used for confirming that the software is successfully upgraded when the current version number is consistent with the version number corresponding to the software upgrading packet;
and the second execution module is used for executing the software rollback operation when the current version number is inconsistent with the version number corresponding to the software upgrading packet.
On the basis of the above embodiment, in a specific embodiment, the first execution module may include:
and the deleting and recovering sub-module is used for deleting the file links of the newly added files in the software installation catalog and recovering the file links of the deleted files in the software installation catalog.
Based on the above embodiments, in a specific embodiment, the system may further include:
the third judging module is used for judging whether the current version number of the software is received in the second preset time;
the second confirmation module is used for confirming that the software is in error and reporting the server when the current version number of the software is not received in the second preset time;
the fourth judging module is used for judging whether the current version number is consistent with the initial version number of the software or not when the current version number of the software is received in the second preset time;
the third confirmation module is used for confirming that the software upgrade fails when the current version number is consistent with the initial version number of the software;
and the fourth confirmation module is used for confirming that the software is in error and reporting the software to the server when the current version number is inconsistent with the initial version number of the software.
Based on the above embodiments, in a specific embodiment, the system may further include:
and the sending module is used for sending a version update checking request to the server so that the server can check whether the software needs to be updated or not and return an upgrading request when the software needs to be updated.
Based on the above embodiments, in a specific embodiment, the download module 100 may include:
the acquisition sub-module is used for acquiring the attribute of the software upgrading packet and determining the downloading starting time and the appointed bandwidth according to the attribute;
and the downloading sub-module is used for downloading the software upgrade package at the beginning downloading time with the appointed bandwidth.
Based on the above embodiments, in a specific embodiment, the system may further include:
the hash checking module is used for carrying out hash checking on the software upgrading packet;
and the third execution module is used for executing the step of installing the software upgrade package into the preset folder if the hash check is passed.
Since the embodiments of the system portion and the embodiments of the method portion correspond to each other, the embodiments of the system portion refer to the description of the embodiments of the method portion, which is not repeated herein.
Referring to fig. 4, fig. 4 is a block diagram of a software upgrading apparatus according to an embodiment of the present application.
The software upgrade apparatus 500 may vary widely in configuration or performance and may include one or more processors (central processing units, CPU) 522 (e.g., one or more processors) and memory 532, one or more storage media 530 (e.g., one or more mass storage devices) storing applications 542 or data 544. Wherein memory 532 and storage medium 530 may be transitory or persistent. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the apparatus. Still further, the processor 522 may be configured to communicate with a storage medium 530 to execute a series of instruction operations in the storage medium 530 on the software upgrade apparatus 500.
The software upgrade apparatus 500 may also include one or more power supplies 525, one or more wired or wireless network interfaces 550, one or more input/output interfaces 558, and/or one or more operating systems 541, such as Windows ServerTM, mac OS XTM, unixTM, linuxTM, freeBSDTM, etc.
The steps in the method of software upgrade described above with reference to fig. 1 to 2 are implemented by the software upgrade apparatus based on the structure shown in fig. 4.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, apparatuses and modules described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus, device, and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in whole or in part in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a function calling device, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The method, system, device and readable storage medium for software upgrade provided in the present application are described in detail above. Specific examples are set forth herein to illustrate the principles and embodiments of the present application, and the description of the examples above is only intended to assist in understanding the methods of the present application and their core ideas. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
Claims (8)
1. A method of software upgrade, comprising:
downloading a corresponding software upgrading packet according to the received upgrading request;
installing the software upgrading package into a preset folder, and determining newly added files and deleted files in the preset folder;
deleting the file links of the deleted files in the software installation directory, and adding file links pointing to newly added files in the preset folder in the software installation directory;
restarting the software to complete the upgrade of the software;
wherein after restarting the software, further comprising:
judging whether the current version number of the software is received in a first preset time;
if not, executing the software rollback operation;
if yes, judging whether the current version number is consistent with the version number corresponding to the software upgrading packet;
if the software is consistent, the success of the software upgrading is confirmed;
if the software rollback operation is inconsistent, executing the software rollback operation;
correspondingly, the executing the software rollback operation includes:
deleting the file links of the newly added files in the software installation directory, and recovering the file links of the deleted files in the software installation directory.
2. The method of claim 1, further comprising, after performing the software rollback operation:
judging whether the current version number of the software is received in a second preset time;
if not, confirming that the software is wrong and reporting to the server;
if yes, judging whether the current version number is consistent with the initial version number of the software;
if the software upgrade is consistent, confirming that the software upgrade fails;
if the software is inconsistent, confirming that the software is wrong and reporting the software to the server.
3. The method of claim 1, further comprising, prior to downloading the corresponding software upgrade package in accordance with the received upgrade request:
and sending a version update checking request to a server so that the server checks whether the software needs to be updated or not, and returning the upgrading request when the software needs to be updated.
4. The method of claim 1, wherein downloading the corresponding software upgrade package according to the received upgrade request comprises:
acquiring the attribute of the software upgrading package, and determining the downloading starting time and the appointed bandwidth according to the attribute;
and downloading the software upgrade package at the designated bandwidth at the beginning downloading time.
5. The method of claim 1, further comprising, after downloading the corresponding software upgrade package according to the received upgrade request, before installing the software upgrade package into a preset folder:
carrying out hash check on the software upgrading packet;
and if the hash check is passed, executing the step of installing the software upgrading package into a preset folder.
6. A system for software upgrade, comprising:
the downloading module is used for downloading the corresponding software upgrading package according to the received upgrading request;
the installation module is used for installing the software upgrading package into a preset folder and determining newly added files and deleted files in the preset folder;
the deleting and adding module is used for deleting the file links of the deleted files in the software installation directory and adding the file links pointing to the newly added files in the preset folder in the software installation directory;
the restarting module is used for restarting the software to finish the upgrading of the software;
wherein after restarting the software, further comprising:
judging whether the current version number of the software is received in a first preset time;
if not, executing the software rollback operation;
if yes, judging whether the current version number is consistent with the version number corresponding to the software upgrading packet;
if the software is consistent, the success of the software upgrading is confirmed;
if the software rollback operation is inconsistent, executing the software rollback operation;
correspondingly, the executing the software rollback operation includes:
deleting the file links of the newly added files in the software installation directory, and recovering the file links of the deleted files in the software installation directory.
7. A software upgrade apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of software upgrade according to any of claims 1 to 5 when executing said computer program.
8. A readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements the steps of the method of software upgrade according to any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011623152.9A CN112732292B (en) | 2020-12-30 | 2020-12-30 | Method, system, equipment and readable storage medium for upgrading software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011623152.9A CN112732292B (en) | 2020-12-30 | 2020-12-30 | Method, system, equipment and readable storage medium for upgrading software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112732292A CN112732292A (en) | 2021-04-30 |
CN112732292B true CN112732292B (en) | 2024-02-23 |
Family
ID=75609035
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011623152.9A Active CN112732292B (en) | 2020-12-30 | 2020-12-30 | Method, system, equipment and readable storage medium for upgrading software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112732292B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113626053B (en) * | 2021-07-30 | 2023-07-14 | 苏州浪潮智能科技有限公司 | Method, device, equipment and readable medium for online upgrading of Web application |
CN115733874B (en) * | 2021-08-31 | 2024-09-20 | 广东小天才科技有限公司 | Application download processing method, device, equipment and storage medium |
CN115904431B (en) * | 2022-11-09 | 2024-08-20 | 东信和平科技股份有限公司 | Smart card updating method and device, electronic equipment and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101038549A (en) * | 2007-03-28 | 2007-09-19 | 北京启明星辰信息技术有限公司 | A software updating method capable of crossing system |
CN102193805A (en) * | 2010-03-11 | 2011-09-21 | 华为技术有限公司 | Device and method for upgrading software patches |
CN103544030A (en) * | 2013-07-04 | 2014-01-29 | Tcl集团股份有限公司 | Software upgrading method, software upgrading system and intelligent terminal |
CN105373410A (en) * | 2015-12-22 | 2016-03-02 | 京信通信技术(广州)有限公司 | Differential upgrading method and device for base station software |
WO2016086654A1 (en) * | 2014-12-03 | 2016-06-09 | 广州广电运通金融电子股份有限公司 | Remote upgrade method and system for software on self-service terminal, and upgrade package creation method |
CN110825406A (en) * | 2019-10-25 | 2020-02-21 | 深圳市元征科技股份有限公司 | Software upgrading method and related equipment |
-
2020
- 2020-12-30 CN CN202011623152.9A patent/CN112732292B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101038549A (en) * | 2007-03-28 | 2007-09-19 | 北京启明星辰信息技术有限公司 | A software updating method capable of crossing system |
CN102193805A (en) * | 2010-03-11 | 2011-09-21 | 华为技术有限公司 | Device and method for upgrading software patches |
CN103544030A (en) * | 2013-07-04 | 2014-01-29 | Tcl集团股份有限公司 | Software upgrading method, software upgrading system and intelligent terminal |
WO2016086654A1 (en) * | 2014-12-03 | 2016-06-09 | 广州广电运通金融电子股份有限公司 | Remote upgrade method and system for software on self-service terminal, and upgrade package creation method |
CN105373410A (en) * | 2015-12-22 | 2016-03-02 | 京信通信技术(广州)有限公司 | Differential upgrading method and device for base station software |
CN110825406A (en) * | 2019-10-25 | 2020-02-21 | 深圳市元征科技股份有限公司 | Software upgrading method and related equipment |
Non-Patent Citations (2)
Title |
---|
Xiucai Zhao ; Tao Yan ; Yongchen Zhao.Design of Networked ATS's Software Incremental Upgrade.《Proceedings of 2017 4th International Conference on Simulation and Modeling Methodologies, Technologies and Applications (SMTA 2017)》.2017,全文. * |
煤矿管理信息系统客户端软件在线升级技术的设计与实现;牟琦;龚尚福;;工矿自动化(04);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112732292A (en) | 2021-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112732292B (en) | Method, system, equipment and readable storage medium for upgrading software | |
US8074213B1 (en) | Automatic software updates for computer systems in an enterprise environment | |
US9591428B2 (en) | Method, software and apparatus for performing actions on a wireless device using action lists and versioning | |
EP1584007B1 (en) | System to automatically process components on a device | |
CN108696372B (en) | Method and system for keeping system configuration consistency | |
CN109857423B (en) | Program version updating method and device, server and readable storage medium | |
JP2001109726A (en) | Method and system for reconstructing processors in distributed computer system, and storage device | |
CN112882738A (en) | Configuration information updating method and device under micro-service architecture and electronic equipment | |
JP2001117895A (en) | Method and system for judging quorum number in distributed computing system and storage device | |
CN110399152A (en) | A kind of device systems double copies upgrade method and device | |
CN113297031B (en) | Container group protection method and device in container cluster | |
WO2017113611A1 (en) | Method and system for optimizing operation system | |
CN106657433B (en) | Naming method and device for physical network card in multi-network snap ring environment | |
CN107463390B (en) | Software upgrading method and upgrading server | |
CN111857772A (en) | Method and equipment for remote transmission and dynamic loading of terminal edge application program | |
CN115421764A (en) | Method, device, equipment and storage medium for identifying module to be upgraded | |
CN115543429A (en) | Project environment building method, electronic equipment and computer readable storage medium | |
CN112433678B (en) | Network adjusting method, device, equipment and medium for distributed storage system | |
CN111654398B (en) | Configuration updating method and device, computer equipment and readable storage medium | |
CN111324632B (en) | Transparent database session restoration with client-side caching | |
CN115905271B (en) | Virus library updating method and device and multi-engine detection system | |
CN111008035B (en) | Software operation and maintenance method, electronic equipment and storage medium | |
WO2023221002A1 (en) | Ota-based system updating method and apparatus, electronic device, and storage medium | |
CN111104251B (en) | Method, apparatus and computer readable medium for restoring files | |
CN112416380B (en) | Method and device for killing and freezing prevention by application |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |