CN109522038A - A kind of client side upgrading method and device of CS framework - Google Patents

A kind of client side upgrading method and device of CS framework Download PDF

Info

Publication number
CN109522038A
CN109522038A CN201811396027.1A CN201811396027A CN109522038A CN 109522038 A CN109522038 A CN 109522038A CN 201811396027 A CN201811396027 A CN 201811396027A CN 109522038 A CN109522038 A CN 109522038A
Authority
CN
China
Prior art keywords
upgrade
client
complete
server
code
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
CN201811396027.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.)
Lingyun Tianbo Photoelectric Technology Co Ltd
Original Assignee
Lingyun Tianbo Photoelectric 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 Lingyun Tianbo Photoelectric Technology Co Ltd filed Critical Lingyun Tianbo Photoelectric Technology Co Ltd
Priority to CN201811396027.1A priority Critical patent/CN109522038A/en
Publication of CN109522038A publication Critical patent/CN109522038A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

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)
  • Information Transfer Between Computers (AREA)

Abstract

This application provides the client side upgrading methods and device of a kind of CS framework, upgrade file is provided using independent upgrade server for client, the upgrade service of server-side is separated, influence of the upgrade service to regular traffic in server-side is avoided, improves server-side reliability of operation;And upgrade server provides the complete upgrade package of all execution programs and dependent file needed for client is used to upgrade and install, in the case where occurring powering off or upgrading is caused to fail for the factors such as FTP client FTP reports an error, update can be re-started, the case where software is not available is avoided the occurrence of.

Description

A kind of client side upgrading method and device of CS framework
Technical field
This application involves the program of CS framework upgrading field more particularly to a kind of client side upgrading methods and dress of CS framework It sets.
Background technique
With the fast development of internet and universal, more and more business depend on network technology, and state in a network, Most popular is exactly browser, and browser browsing webpage can be used in user, uploads or down operation etc..Currently, Each enterprise generallys use traditional CS architecture mode.CS framework, i.e. client-side/server-side architecture, server-side mainly provide data, Management, data sharing, data and system maintenance and con current control etc., client-side program mainly complete the specific business of user.
In the prior art, the client upgrading mode in CS framework generallys use client and is directly connected to server-side, under Upgrade patch packet is carried to be upgraded.But a large amount of clients simultaneously update when, will certainly occupy a large amount of bandwidth of server-side and Resource, the regular traffic for influencing other users uses, and in the case where upgrade patch packet install failure, may cause original First installation procedure is not available.
Summary of the invention
This application provides the client side upgrading methods and device of a kind of CS framework, to solve to update simultaneously in a large amount of clients When, a large amount of bandwidth of server-side and resource will certainly be occupied, the regular traffic for influencing other users uses, and is upgrading In the case where service packs install failure, the problem of original installation procedure is not available may cause.
In a first aspect, this application provides a kind of client side upgrading methods of CS framework, which comprises
Upgrade server obtains complete upgrade package and corresponding version number and md5 code, and the complete upgrade package includes client All execution programs and dependent file needed for end upgrading and installation;
The network address of the upgrade server is sent to server-side by the upgrade server;
The server-side utilizes the client log-on message, obtains the current version number of the client;
If the current version number of the client is lower than the version number of the complete upgrade package, server-side is by the liter The network address of grade server and the version number of the complete upgrade package are sent to client;
The client obtains corresponding md5 code from the upgrade server according to the version number of the complete upgrade package;
The client utilizes from the upgrade server and obtains corresponding md5 code and local upgrade file, to described Client is upgraded, and the current version number of the client is replaced with to the version number of the complete upgrade package.
Second aspect, a kind of client update device of CS framework, described device include:
Upgrade server, for obtaining complete upgrade package and corresponding version number and md5 code, the complete upgrade package includes All execution programs and dependent file needed for client upgrading and installation;The network address of the upgrade server is sent to Server-side;
The server-side obtains the current version number of the client for utilizing the client log-on message;
If the current version number of the client is lower than the version number of the complete upgrade package, server-side is by the liter The network address of grade server and the version number of the complete upgrade package are sent to client;
The client obtains corresponding for the version number according to the complete upgrade package from the upgrade server Md5 code;Corresponding md5 code and local upgrade file are obtained using from the upgrade server, the client is risen Grade, and the current version number of the client is replaced with to the version number of the complete upgrade package.
From the above technical scheme, this application provides the client side upgrading methods and device of a kind of CS framework, utilize Independent upgrade server provides upgrade file for client, and the upgrade service of server-side is separated, is avoided in server-side Influence of the upgrade service to regular traffic improves server-side reliability of operation;And upgrade server provides client and is used to The complete upgrade package of all execution programs and dependent file needed for upgrading and installation, is occurring powering off or FTP client FTP reports an error Etc. factors cause upgrading fail in the case where, update can be re-started, avoid the occurrence of the case where software is not available.
Detailed description of the invention
In order to illustrate more clearly of the technical solution of the application, letter will be made to attached drawing needed in the embodiment below Singly introduce, it should be apparent that, for those of ordinary skills, without any creative labor, It is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of an embodiment of the client side upgrading method of CS framework provided by the present application;
Fig. 2 is a kind of flow chart of another embodiment of the client side upgrading method of CS framework provided by the present application;
Fig. 3 is a kind of structural schematic diagram of the client update device of CS framework provided by the present application.
Specific embodiment
In a first aspect, the embodiment of the present application provides a kind of client side upgrading method of CS framework, including such as referring to Fig. 1 Lower step:
Step 11: upgrade server obtains complete upgrade package and corresponding version number and md5 code, the complete upgrade package packet All execution programs and dependent file needed for including client upgrading and installation.
It is stored under complete upgrade package specified directory in upgrade server, when for client upgrading, in local text In the case where not storing the upgrade package in part, it is downloaded from upgrade server.
Step 12: the network address of the upgrade server is sent to server-side by the upgrade server.
Step 13: the server-side utilizes the client log-on message, obtains the current version number of the client.
Current version number refers to the corresponding version number of the version for the application software that client is currently installed on.
Step 14: if the current version number of the client is lower than the version number of the complete upgrade package, server-side The version number of the network address of the upgrade server and the complete upgrade package is sent to client.
Assuming that be " 3.0.0.7 " with the current version number of application system, and the version number of complete upgrade package is " 5.0.0.0 ", current version number are lower than the version number of complete upgrade package, then need this row upgrade procedure of client.
Step 15: the client obtains corresponding according to the version number of the complete upgrade package from the upgrade server Md5 code.
Step 16: the client utilizes from the upgrade server and obtains corresponding md5 code and local upgrade file, The client is upgraded, and the current version number of the client is replaced with to the version number of the complete upgrade package.
From the above technical scheme, this application provides a kind of client side upgrading method of CS framework, utilization is independent Upgrade server provides upgrade file for client, and the upgrade service of server-side is separated, and avoids upgrading clothes in server-side The influence being engaged in regular traffic improves server-side reliability of operation;And upgrade server provide client be used to upgrade and The complete upgrade package of all execution programs and dependent file needed for installation is occurring powering off or the factors such as FTP client FTP reports an error In the case where causing upgrading to fail, update can be re-started, the case where software is not available is avoided the occurrence of.
Referring to fig. 2, another embodiment of the application provides a kind of client side upgrading method of CS framework, including walks as follows It is rapid:
Step 21: upgrade server obtains complete upgrade package and corresponding version number and md5 code, the complete upgrade package packet All execution programs and dependent file needed for including client upgrading and installation.Upgrade server receives the initial of client transmission Version number.
Step 22: the network address of the upgrade server is sent to server-side by the upgrade server.
Step 23: the server-side utilizes the client log-on message, obtains the current version number of the client.
Step 24: if the current version number of the client is lower than the version number of the complete upgrade package, server-side The version number of the network address of the upgrade server and the complete upgrade package is sent to client.
Step 25: the client obtains corresponding according to the version number of the complete upgrade package from the upgrade server Md5 code.
Step 26: if being stored with complete upgrade package in the local upgrade file of the client, and local upgrade file The corresponding md5 code of the complete upgrade package of middle storage is identical as from the corresponding md5 code of upgrade server acquisition, then the client End is upgraded using the complete upgrade package, and the current version number of the client is replaced with the complete upgrade package Version number.
If being stored with complete upgrade package in the local upgrade file in client, and verified by md5 code, guarantees this The complete upgrade package stored in ground upgrade file is identical as the complete upgrade package that upgrade server stores, then directly by local upgrade Complete upgrade package in file is upgraded, without re-downloading.
Step 27: if not being stored with complete upgrade package or the local in the local upgrade file of the client The corresponding md5 code of the complete upgrade package stored in upgrade file is not identical as from the corresponding md5 code of upgrade server acquisition, Then client utilizes the network address of the upgrade server, downloads complete upgrade package by the upgrade server.
Step 28: the corresponding md5 code of complete upgrade package of the logical downloading of the client is verified, if downloading is complete The corresponding md5 code of upgrade package is consistent with from the corresponding md5 code of upgrade server acquisition, then the client is using under described The complete upgrade package carried is upgraded, and the current version number of the client is replaced with to the version of the complete upgrade package Number.
The md5 code for the complete upgrade package downloaded from upgrade server is subjected to school with the md5 code obtained from upgrade server It tests, it is ensured that when two md5 are consistent, just upgraded, it is ensured that the accuracy of upgrade package upgrading.
Second aspect, referring to Fig. 3, this application provides a kind of client update device of CS framework, described device includes:
Upgrade server 31 obtains complete upgrade package and corresponding version number and md5 code for upgrade server, described complete Whole upgrade package includes all execution programs and dependent file needed for client upgrading and installation;By the upgrade server 31 Network address is sent to server-side 32;
The server-side 32 obtains the current version of the client 33 for utilizing 33 log-on message of client Number;
If the current version number of the client 33 is lower than the version number of the complete upgrade package, server-side 32 is by institute The version number of the network address and the complete upgrade package of stating upgrade server 31 is sent to client 33;
The client 33 obtains phase from the upgrade server 31 for the version number according to the complete upgrade package The md5 code answered;Corresponding md5 code and local upgrade file are obtained using from the upgrade server 31, to the client 33 are upgraded, and the current version number of the client is replaced with to the version number of the complete upgrade package.
From the above technical scheme, this application provides a kind of client update device of CS framework, utilization is independent Upgrade server 31 is that client 33 provides upgrade file, and the upgrade service of server-side 32 is separated, server-side 32 is avoided Influence of the middle upgrade service to regular traffic improves 32 reliability of operation of server-side;And upgrade server 31 provides client End 33 is used to upgrade and install the complete upgrade package of required all execution programs and dependent file, is occurring powering off or client 33 systems report an error etc. in the case that factors cause upgrading to fail, and can re-start update, avoid the occurrence of software and be not available The case where.
Further, the client 33, if being also used to be stored with complete upgrade package in local upgrade file, and local The corresponding md5 code of the complete upgrade package stored in upgrade file with to obtain corresponding md5 code from the upgrade server 31 identical, Then upgraded using the complete upgrade package;
If be not stored in local upgrade file in complete upgrade package or the local upgrade file store it is complete The corresponding md5 code of upgrade package with to obtain corresponding md5 code from the upgrade server 31 not identical, then pass through the upgrade service Device 31 downloads complete upgrade package, upgrades to the client 33.
Further, the client 33 is also used to the network address using the upgrade server 31, passes through the liter Grade server 31 downloads complete upgrade package;
The corresponding md5 code of complete upgrade package of logical downloading is verified, if the corresponding md5 code of complete upgrade package of downloading Corresponding md5 code is obtained unanimously with from the upgrade server 31, then the client 33 utilizes the complete upgrading of the downloading Packet is upgraded.
From the above technical scheme, this application provides the client side upgrading methods and device of a kind of CS framework, utilize Independent upgrade server 31 is that client 33 provides upgrade file, and the upgrade service of server-side 32 is separated, avoids taking Influence of the upgrade service to regular traffic in business end 32, improves 32 reliability of operation of server-side;And upgrade server 31 mentions Be used to upgrade and install the complete upgrade package of required all execution programs and dependent file for client 33, power off occurring or 33 system of client reports an error etc. in the case that factors cause upgrading to fail, and can re-start update, avoid the occurrence of software without The case where method uses.

Claims (6)

1. a kind of client side upgrading method of CS framework, which is characterized in that the described method includes:
Upgrade server obtains complete upgrade package and corresponding version number and md5 code, the complete upgrade package include client liter All execution programs and dependent file needed for grade and installation;
The network address of the upgrade server is sent to server-side by the upgrade server;
The server-side utilizes the client log-on message, obtains the current version number of the client;
If the current version number of the client is lower than the version number of the complete upgrade package, server-side takes the upgrading The network address of device of being engaged in and the version number of the complete upgrade package are sent to client;
The client obtains corresponding md5 code from the upgrade server according to the version number of the complete upgrade package;
The client utilizes from the upgrade server and obtains corresponding md5 code and local upgrade file, to the client End is upgraded, and the current version number of the client is replaced with to the version number of the complete upgrade package.
2. the method as described in claim 1, which is characterized in that the client is utilized to be obtained accordingly from the upgrade server Md5 code and local upgrade file, to the client carry out upgrading include:
If being stored with complete upgrade package in the local upgrade file of the client, and stored in local upgrade file complete The corresponding md5 code of upgrade package is identical as from the corresponding md5 code of upgrade server acquisition, then the client is using described complete Whole upgrade package is upgraded;
It is deposited if be not stored in the local upgrade file of the client in complete upgrade package or the local upgrade file The corresponding md5 code of complete upgrade package of storage is not identical as from the corresponding md5 code of upgrade server acquisition, then the client Complete upgrade package is downloaded by the upgrade server, the client is upgraded.
3. method according to claim 2, which is characterized in that the client rises by the way that upgrade server downloading is complete Grade packet, carrying out upgrading to the client includes:
The client utilizes the network address of the upgrade server, downloads complete upgrade package by the upgrade server;
The corresponding md5 code of complete upgrade package of the logical downloading of the client is verified, if the complete upgrade package of downloading is corresponding Md5 code it is consistent with from the corresponding md5 code of upgrade server acquisition, then the client utilizes the complete liter of the downloading Grade packet is upgraded.
4. a kind of client update device of CS framework, which is characterized in that described device includes:
Upgrade server obtains complete upgrade package and corresponding version number and md5 code, the complete upgrading for upgrade server Packet includes all execution programs and dependent file needed for client upgrades and installs;By the network address of the upgrade server It is sent to server-side;
The server-side obtains the current version number of the client for utilizing the client log-on message;
If the current version number of the client is lower than the version number of the complete upgrade package, server-side takes the upgrading The network address of device of being engaged in and the version number of the complete upgrade package are sent to client;
The client obtains corresponding md5 from the upgrade server for the version number according to the complete upgrade package Code;Corresponding md5 code and local upgrade file are obtained using from the upgrade server, the client is upgraded, And the current version number of the client is replaced with to the version number of the complete upgrade package.
5. device as claimed in claim 4, which is characterized in that
The client if being also used to be stored with complete upgrade package in local upgrade file, and stores in local upgrade file The corresponding md5 code of complete upgrade package it is identical as from the corresponding md5 code of upgrade server acquisition, then utilize the complete liter Grade packet is upgraded;
If not being stored with the complete upgrading stored in complete upgrade package or the local upgrade file in local upgrade file It is not identical as from the corresponding md5 code of upgrade server acquisition to wrap corresponding md5 code, then is downloaded by the upgrade server Complete upgrade package upgrades the client.
6. device as claimed in claim 5, which is characterized in that
The client is also used to the network address using the upgrade server, is downloaded by the upgrade server complete Upgrade package;
The corresponding md5 code of complete upgrade package of logical downloading is verified, if the corresponding md5 code of complete upgrade package of downloading and from The upgrade server obtains corresponding md5 code unanimously, then the client is risen using the complete upgrade package of the downloading Grade.
CN201811396027.1A 2018-11-22 2018-11-22 A kind of client side upgrading method and device of CS framework Pending CN109522038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811396027.1A CN109522038A (en) 2018-11-22 2018-11-22 A kind of client side upgrading method and device of CS framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811396027.1A CN109522038A (en) 2018-11-22 2018-11-22 A kind of client side upgrading method and device of CS framework

Publications (1)

Publication Number Publication Date
CN109522038A true CN109522038A (en) 2019-03-26

Family

ID=65778449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811396027.1A Pending CN109522038A (en) 2018-11-22 2018-11-22 A kind of client side upgrading method and device of CS framework

Country Status (1)

Country Link
CN (1) CN109522038A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716741A (en) * 2019-09-26 2020-01-21 杭州安恒信息技术股份有限公司 Software product automatic inspection method based on script

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060427A (en) * 2006-04-19 2007-10-24 华为技术有限公司 A system and method for realizing the remote software updating
US20160162285A1 (en) * 2011-01-19 2016-06-09 International Business Machines Corporation Updating software
CN107016280A (en) * 2017-03-31 2017-08-04 武汉票据交易中心有限公司 The upgrade method and system of a kind of client application
CN108509211A (en) * 2018-02-07 2018-09-07 深圳壹账通智能科技有限公司 Application program updating method, apparatus, mobile terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060427A (en) * 2006-04-19 2007-10-24 华为技术有限公司 A system and method for realizing the remote software updating
US20160162285A1 (en) * 2011-01-19 2016-06-09 International Business Machines Corporation Updating software
CN107016280A (en) * 2017-03-31 2017-08-04 武汉票据交易中心有限公司 The upgrade method and system of a kind of client application
CN108509211A (en) * 2018-02-07 2018-09-07 深圳壹账通智能科技有限公司 Application program updating method, apparatus, mobile terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716741A (en) * 2019-09-26 2020-01-21 杭州安恒信息技术股份有限公司 Software product automatic inspection method based on script
CN110716741B (en) * 2019-09-26 2023-08-08 杭州安恒信息技术股份有限公司 Script-based software product automatic inspection method

Similar Documents

Publication Publication Date Title
US9485134B2 (en) Managing configurations of system management agents in a distributed environment
CN105389222B (en) A kind of methods, devices and systems of dynamic call native interface
US9519654B2 (en) Method, device, processing center and system for desktop synchronization
CN102427481B (en) System for managing cloud computing service and cloud computing management method
CN102855152B (en) The method and system of resource file in upgrade applications
CN102355500B (en) Service push method and device
CN102571940B (en) Application program remote installation system, method, intelligent terminal, application server
CN102662705B (en) System and method for upgrading system environment of computer cluster
US20090193407A1 (en) Methods and Systems for Automatic Patch Creation for Client Updates
EP1635257A2 (en) System method and medium for configuring client computers to operate disconnected from a server computer while using a master instance of the operating system
US8490077B2 (en) Runtime versioning and distribution of dynamic web-elements
CN108089913B (en) Virtual machine deployment method of super-fusion system
CN106911729A (en) A kind of operating system remote installation method suitable for domestic processor
CN102945175A (en) Terminal software online upgrading system and method based on cloud computing environment
CN100421072C (en) Method for realizing software updating
CN103678319A (en) Resource file updating method, device and system and server
CN102833350A (en) Processing method and processing device of WebApp updating
CN103176809B (en) Application upgrade method and system
CN106201577B (en) A kind of method and device updating Lua file
CN104077131A (en) Component deployment system and method
CN101968741A (en) Method, server and system for data update
CN105279436B (en) Oftware updating method and system
CN104038520A (en) Multi-version distributed resource management method and multi-version distributed resource management system
CN102497436B (en) Networked file storing method and system based on HTTP (Hyper Text Transport Protocol)
CN111158752A (en) SAAS multi-version control system and use method thereof

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190326