CN102063319A - Software updating method - Google Patents
Software updating method Download PDFInfo
- Publication number
- CN102063319A CN102063319A CN2010106144357A CN201010614435A CN102063319A CN 102063319 A CN102063319 A CN 102063319A CN 2010106144357 A CN2010106144357 A CN 2010106144357A CN 201010614435 A CN201010614435 A CN 201010614435A CN 102063319 A CN102063319 A CN 102063319A
- Authority
- CN
- China
- Prior art keywords
- software
- state
- configuration file
- updated
- updating
- 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
Links
Images
Abstract
The invention discloses a software updating method which comprises the steps of: remotely logging a server appliance after software is started, and realizing that a software issuing file is updated and a configuring file is updated; setting the state of a remote updating mark of the configuring file to be an updating state, and storing the updating state; storing the original environment variable main record region to an environment variable duplicate record region; storing updated software description information to an environment variable main record region; after a host computer is restarted, correcting the state of the remote updating mark of the configuring file to be the already trial state before the updated software is loaded; and if the updated software can be normally started, clearing the remote updating mark of the configuring file, ending the software updating; and if the updated software cannot be normally started, restarting the host computer again, starting the software by using the configured film duplicated in the environment variable duplicate record region, clearing the remote updating mark of the configuring file, operating according to the software before being updated, and neglecting the software updating process. The invention avoids the phenomenon that the software cannot be started after updated.
Description
Technical field
The present invention relates to the updating computer software technical field, particularly a kind of Oftware updating method.
Background technology
Existing software issue employing method: new-type by copy during update software new software.Restart the new software of system and be loaded, in order to realize the purpose of software upgrading.In the time of practical application equipment, in most cases sign in to main frame by Telnet, web form.Because the demand of updating file, renewal configuration all is to issue long-range, in case because situations such as startup file version, configuration file format unification cause main frame not start, Long-distance Control mechanism actual effect, even can cause the network accident.
Summary of the invention
(1) technical matters that will solve
The technical problem to be solved in the present invention is: update software how, so that the software that upgrades avoids and can't start, even cause the situation of network accident.
(2) technical scheme
For solving the problems of the technologies described above, the invention provides a kind of Oftware updating method, may further comprise the steps:
S1: be remotely logged into server apparatus behind the software startup, realize the renewal of described software file publishing and the renewal of configuration file;
S2: the state that configuration file remote update sign is set is a update mode, and preserves this state;
S3: preserve original environmental variance master record zone to environmental variance duplicated record zone.The descriptor of preserving the software that upgrades arrives environmental variance master record zone, and puts the state that software has upgraded;
S4: after restarting main frame, the state of revising configuration file remote update sign before loading the software that upgrades is for attempting state;
S5: if the software that upgrades can normally start, then remove configuration file remote update sign, software upgrading finishes, otherwise execution in step S6;
S6: restart main frame once more, if query configuration file remote update sign has been attempted state before loading the software that upgrades, if attempted state, then the configuration file of environment for use variable backup zone backup starts software, remove configuration file remote update sign, according to the running software before upgrading, ignore the software upgrading process.
Wherein, the state of the configuration file remote update sign among the described step S2 is kept in flash or the internal memory.
Wherein, but described software is the software on the Telnet equipment.
Wherein, described software is firewall software.
(3) beneficial effect
The present invention can not start in new configuration under the situation of update software by software arrangements back mechanism and fallback mechanism, utilizes original configuration to start software, has avoided the situation that appearance can't start after the software upgrading.
Description of drawings
Fig. 1 is a kind of Oftware updating method process flow diagram of the embodiment of the invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used to illustrate the present invention, but are not used for limiting the scope of the invention.
To upgrade firewall software is that embodiment illustrates the present invention, as shown in Figure 1, comprising:
Step S101 is remotely logged into firewall box, lands or remote command line lands by web, realizes the renewal of the big bag of firewall software and the change of configuration file.
Step S102, the state that configuration file remote update sign is set in the configuration file that upgrades is a update mode, and preserves this state.
Step S103 preserves original environmental variance master record zone to environmental variance duplicated record zone, and the descriptor (title, path) of promptly preserving the firewall software before upgrading is to environmental variance duplicated record zone.The descriptor (title, path) of preserving the firewall software that upgrades arrives environmental variance master record zone, and puts the state that software has upgraded.
Step S104, restart firewall box after, the state of revising configuration file remote update sign before the firewall software that load to upgrade is for attempting state.
Step S105, whether the firewall software that judge to upgrade normally starts, if can, execution in step S106 then, otherwise, execution in step S107.
Step S106 removes configuration file remote update sign, and firewall software upgrades and finishes.
Step S107, if can't update software, Dongle gives a warning, firewall box is restarted, before loading the firewall software that upgrades, and query configuration file remote update sign, for attempting state, just do not reattempt, directly the software of use before the configuration file of environmental variance backup zone backup starts renewal is removed configuration file remote update sign.According to the running software before new, ignore this renewal process.
Can find out according to the foregoing description, when the firewall software security update, equipment at the user scene uses up-to-date version host software, may be owing to the reason of version match, the software that causes upgrading can not use, and occurs not matching or occurs hanging under the dead situation, restarts by hardware watchdog, realize recovering original configuration file, use original main frame software packaging.Avoid because software upgrading causes the network accident.Loss is dropped to minimum.
Above embodiment only is used to illustrate the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; under the situation that does not break away from the spirit and scope of the present invention; can also make various variations and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (4)
1. an Oftware updating method is characterized in that, may further comprise the steps:
S1: be remotely logged into server apparatus behind the software startup, realize the renewal of described software file publishing and the renewal of configuration file;
S2: the state that configuration file remote update sign is set is a update mode, and preserves this state;
S3: preserve original environmental variance master record zone to environmental variance duplicated record zone, the descriptor of preserving the software that upgrades arrives environmental variance master record zone, and puts the state that software has upgraded;
S4: after restarting main frame, the state of revising configuration file remote update sign before loading the software that upgrades is for attempting state;
S5: if the software that upgrades can normally start, then remove configuration file remote update sign, software upgrading finishes, otherwise execution in step S6;
S6: restart main frame once more, if query configuration file remote update sign has been attempted state before loading the software that upgrades, if attempted state, then the configuration file of environment for use variable backup zone backup starts software, remove configuration file remote update sign, according to the running software before upgrading, ignore the software upgrading process.
2. Oftware updating method as claimed in claim 1 is characterized in that, the state of the configuration file remote update sign among the described step S2 is kept in flash or the internal memory.
3. Oftware updating method as claimed in claim 1 or 2 is characterized in that, but described software is the software on the Telnet equipment.
4. Oftware updating method as claimed in claim 3 is characterized in that, described software is firewall software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010106144357A CN102063319A (en) | 2010-12-30 | 2010-12-30 | Software updating method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010106144357A CN102063319A (en) | 2010-12-30 | 2010-12-30 | Software updating method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102063319A true CN102063319A (en) | 2011-05-18 |
Family
ID=43998606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010106144357A Pending CN102063319A (en) | 2010-12-30 | 2010-12-30 | Software updating method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102063319A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103678035A (en) * | 2013-11-11 | 2014-03-26 | 广东鼎燊科技有限公司 | Method for recovering dynamic backup of environmental variable in embedded device |
CN104793947A (en) * | 2015-04-27 | 2015-07-22 | 柳州市网中网络策划中心 | Universal method for developing automatically-updated client software |
CN104820591A (en) * | 2015-04-27 | 2015-08-05 | 柳州市网中网络策划中心 | Universal development method for autonomously upgraded software |
CN114285657A (en) * | 2021-12-28 | 2022-04-05 | 中国工商银行股份有限公司 | Firewall security policy change verification method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5909581A (en) * | 1995-12-30 | 1999-06-01 | Samsung Electronics Co., Ltd. | Automatic software updating method |
CN1858702A (en) * | 2005-07-22 | 2006-11-08 | 上海华为技术有限公司 | Upgrading method for one-chip computer |
CN101078993A (en) * | 2007-03-13 | 2007-11-28 | 中兴通讯股份有限公司 | Method for on-line upgrading of edition in terminal product without interrupting the operation |
CN101436138A (en) * | 2007-11-16 | 2009-05-20 | 苏州科达通信技术发展有限公司 | Control device and control method for software upgrade and dynamic rolling back |
-
2010
- 2010-12-30 CN CN2010106144357A patent/CN102063319A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5909581A (en) * | 1995-12-30 | 1999-06-01 | Samsung Electronics Co., Ltd. | Automatic software updating method |
CN1858702A (en) * | 2005-07-22 | 2006-11-08 | 上海华为技术有限公司 | Upgrading method for one-chip computer |
CN101078993A (en) * | 2007-03-13 | 2007-11-28 | 中兴通讯股份有限公司 | Method for on-line upgrading of edition in terminal product without interrupting the operation |
CN101436138A (en) * | 2007-11-16 | 2009-05-20 | 苏州科达通信技术发展有限公司 | Control device and control method for software upgrade and dynamic rolling back |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103678035A (en) * | 2013-11-11 | 2014-03-26 | 广东鼎燊科技有限公司 | Method for recovering dynamic backup of environmental variable in embedded device |
CN104793947A (en) * | 2015-04-27 | 2015-07-22 | 柳州市网中网络策划中心 | Universal method for developing automatically-updated client software |
CN104820591A (en) * | 2015-04-27 | 2015-08-05 | 柳州市网中网络策划中心 | Universal development method for autonomously upgraded software |
CN114285657A (en) * | 2021-12-28 | 2022-04-05 | 中国工商银行股份有限公司 | Firewall security policy change verification method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103488498A (en) | Computer booting method and computer | |
EP3147782A1 (en) | Method and device for upgrading software | |
CN101697133A (en) | Software upgrading method, software upgrading system and client | |
CN101188516B (en) | A highly reliable and self-adapted remote update method for network device software system | |
WO2013078951A1 (en) | Method and system for upgrading software | |
CN107608705A (en) | A kind of wireless WIFI video equipments and its firmware upgrade method | |
CN101719073A (en) | Intelligent client-based on-demand downloading realization method | |
CN102521289B (en) | File synchronization method, device and system | |
CN104951308B (en) | The management optimization mode and device of Docker Registry | |
CN102609281A (en) | Distributed software patch updating method and distributed software patch updating system | |
US8972964B2 (en) | Dynamic firmware updating system for use in translated computing environments | |
CN102063319A (en) | Software updating method | |
CN104636159B (en) | The method and apparatus that software in virtual machine is upgraded | |
CN106020884A (en) | Network camera system online update method | |
CN104731675A (en) | Intelligent redundancy backup method for BIOS in server system | |
CN102591683A (en) | Updating method and updating system for embedded operation system | |
CN104918114A (en) | Method and device for upgrading operation system | |
CN112100005A (en) | Redis copy set implementation method and device | |
CN102541595A (en) | Method and device for upgrading intelligent device and intelligent device | |
CN104657158A (en) | Method and device for processing business in business system | |
WO2016090231A1 (en) | System and method for applying an update to a device system via a system snapshot | |
CN102163152A (en) | Software upgrading method and device thereof for embedded terminal device | |
US20120324279A1 (en) | Method and Apparatus of Backing up Subversion Repository | |
JP5135979B2 (en) | Program management system | |
CN103713911B (en) | A kind of single version upgrade method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110518 |