CN110262821A - A kind of management method of software module, device and server - Google Patents

A kind of management method of software module, device and server Download PDF

Info

Publication number
CN110262821A
CN110262821A CN201910515520.9A CN201910515520A CN110262821A CN 110262821 A CN110262821 A CN 110262821A CN 201910515520 A CN201910515520 A CN 201910515520A CN 110262821 A CN110262821 A CN 110262821A
Authority
CN
China
Prior art keywords
software module
server
intranet
intranet client
software
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
CN201910515520.9A
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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910515520.9A priority Critical patent/CN110262821A/en
Publication of CN110262821A publication Critical patent/CN110262821A/en
Priority to PCT/CN2020/086877 priority patent/WO2020248727A1/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)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to techno-financial (Fintech) technical field more particularly to a kind of management methods of software module, device and server, comprising: first server obtains the downloading request for the first software module that Intranet client is sent;First server has the first software module if it is determined that first server is not stored, then obtains the first software module from second server by outer net, and generate the first software module in the first download address of Intranet and the first version information of the first software module;The inside net client of first server returns to the first version information and the first download address of the first software module, so that version of the Intranet client according to the first software module of first version information checking of the first software module, the first software module is downloaded from first server according to the first download address, realize the quick obtaining of software module, the efficiency of management of software module is improved, and ensure that the demand of Intranet client software test.

Description

A kind of management method of software module, device and server
Technical field
The present invention relates to techno-financial (Fintech) technical field more particularly to a kind of management methods of software module, dress It sets and server.
Background technique
With the development of computer technology, more and more technical applications are in financial field, and traditional financial industry is gradually Change to techno-financial (Fintech), the administrative skill of software module is no exception, but due to the safety of financial industry, reality The requirement of when property, the higher requirement that also technology is proposed.
With the continuous development of Internet technology, IT enterprises have developed miscellaneous application program, to meet people Various demands such as life and work.
It is javascript software module management tool that software module management method common at present, which mainly has NPM, NPM, Official's solution.Although NPM possesses nowadays than more complete javascript software module resource, domestic user is visited It asks that speed is slow, is unfavorable for software development.
In addition, for IT enterprises, after developing a application program, it is also necessary to which it is constantly optimized and risen Grade iteration, therefore, a application program usually has multiple release versions.Before the application issued of a certain version, survey Examination personnel need to obtain existing software module, and need to carry out full the application program of the version for the software module of publication The test in face.But current NPM is not appropriate for surveying applicable software module in management enterprise, safety is not high, is unable to satisfy Manage the demand surveyed in enterprise.
Summary of the invention
The present invention provides management method, device and the server of a kind of software module, to solve software in the prior art The efficiency of management is lower, the not high technical problem of safety.
A kind of management method of software module provided in an embodiment of the present invention, which comprises
First server obtains the downloading request for the first software module that Intranet client is sent;
The first server has first software module if it is determined that the first server is not stored, then passes through outer net Obtain first software module from second server, and generate first software module in the first download address of Intranet and The first version information of first software module;
The first server returns to first version information and the institute of first software module to the Intranet client The first download address is stated, so that the Intranet client is according to the first version information checking of first software module The version of one software module, and after verifying successfully, institute is downloaded from the first server according to first download address State the first software module.
A kind of possible implementation, the downloading that the first server obtains the software module that Intranet client is sent are asked Before asking, further includes:
The first server obtains the inquiry request for first software module that the Intranet client is sent;
The first server is confirmed whether to be stored with first software according to the version information of the software module of storage Module;
The first server returns to the query result of first software module to the Intranet client.
A kind of possible implementation, the method also includes:
The first server obtains the on-the-flier compiler request for first software module that the Intranet client is sent;
The first server obtains first access address of the on-the-flier compiler resource in outer net of first software module;
First access address is mapped as the second access address of Intranet by the first server;
Second access address is back to the Intranet client by the first server, so that the Intranet client Hold the first software module according to the second access address on-the-flier compiler.
A kind of possible implementation, the first server obtain first software from second server by outer net Module, and first software module is generated after the first download address and first version information of Intranet, further includes:
The first server is if it is determined that first software module and the second software module are dependence;
Second software module is then downloaded from the second server by outer net, and generates second software module In the second download address and second edition information of Intranet;
Second download address and second edition information of the first server by the second software module in Intranet are sent to The Intranet client, so that the Intranet client downloads described according to second download address from first server Two software modules.
A kind of possible implementation, the method also includes:
The first server obtains the posting request of the third software module of the Intranet client;
The first server is soft by the third after the third version information checking success of the third software module Part module is stored to the first server, and generates the third software module in the third download address of Intranet, so that Two Intranet clients download the third software module according to the third download address.
A kind of possible implementation, the method also includes:
The first server searches whether first software module updates in outer net;
The first server is if it is determined that it is soft then to download updated described first in the presence of updating for first software module Part module, and update the first version information and first download address of first software module;
The first server sends the update message of first software module to the Intranet client, so that described Intranet client obtains updated first software module according to updated first download address.
A kind of possible implementation, the method also includes:
The first server is if it is determined that the address URL for the resource for needing to call in first software module updates, then Update the address URL for the resource for needing to call in first software module stored in the first server;
The first server notifies the Intranet client, updates the resource for needing to call in first software module The address URL.
Based on same inventive concept, a kind of managing device of software module provided by the invention, comprising:
Transmit-Receive Unit, the downloading request of the first software module for obtaining the transmission of Intranet client;
Processing unit, for if it is determined that the first server is not stored first software module, then passing through outer net Obtain first software module from second server, and generate first software module in the first download address of Intranet and The first version information of first software module;
The Transmit-Receive Unit, for returned to the Intranet client first software module first version information and First download address, so that the Intranet client is according to the first version information checking of first software module The version of first software module, and after verifying successfully, it is downloaded from the first server according to first download address First software module.
A kind of possible implementation, the Transmit-Receive Unit are also used to obtain that the Intranet client sends described the The inquiry request of one software module;
The processing unit is confirmed whether to be stored with described first for the version information according to the software module of storage Software module;
The Transmit-Receive Unit is also used to return the query result of first software module to the Intranet client.
A kind of possible implementation, the Transmit-Receive Unit are also used to obtain that the Intranet client sends described the The on-the-flier compiler of one software module is requested;Obtain first access of the on-the-flier compiler resource in outer net of first software module Location;
The processing unit, for first access address to be mapped as to the second access address of Intranet;
The Transmit-Receive Unit is also used to second access address being back to the Intranet client, so that in described Net client first software module according to the second access address on-the-flier compiler.
A kind of possible implementation, the processing unit are used for if it is determined that first software module and the second software Module is dependence, then downloads second software module from the second server by outer net, and generate described second Second download address and second edition information of the software module in Intranet;Second software module is downloaded the second of Intranet Address and second edition information are sent to the Intranet client, so that the Intranet client is according to second download address Second software module is downloaded from first server.
A kind of possible implementation, the Transmit-Receive Unit are also used to obtain the third software mould of the Intranet client The posting request of block;
The processing unit is also used to after the third version information checking success of the third software module, will be described Third software module is stored to the first server, and generates the third software module in the third download address of Intranet, So that the second Intranet client downloads the third software module according to the third download address.
A kind of possible implementation, the processing unit are also used to whether search first software module in outer net It updates;It is updated if it is determined that first software module exists, then downloads updated first software module, and update The first version information of first software module and first download address;
The Transmit-Receive Unit is also used to send the update message of first software module to the Intranet client, with The Intranet client is set to obtain updated first software module according to updated first download address.
A kind of possible implementation, the processing unit are also used to if it is determined that needing to adjust in first software module The address URL of resource updates, then updates and need to call in first software module stored in the first server Resource the address URL;
The Transmit-Receive Unit is also used to notify the Intranet client, updates and need to call in first software module Resource the address URL.
Based on same inventive concept, a kind of server provided by the invention, comprising:
First server obtains the downloading request for the first software module that Intranet client is sent;
The first server has first software module if it is determined that the first server is not stored, then passes through outer net Obtain first software module from second server, and generate first software module in the first download address of Intranet and The first version information of first software module;
The first server returns to first version information and the institute of first software module to the Intranet client The first download address is stated, so that the Intranet client is according to the first version information checking of first software module The version of one software module, and after verifying successfully, institute is downloaded from the first server according to first download address State the first software module.
A kind of possible implementation, the downloading that the first server obtains the software module that Intranet client is sent are asked Before asking, further includes:
The first server obtains the inquiry request for first software module that the Intranet client is sent;
The first server is confirmed whether to be stored with first software according to the version information of the software module of storage Module;
The first server returns to the query result of first software module to the Intranet client.
A kind of possible implementation, the method also includes:
The first server obtains the on-the-flier compiler request for first software module that the Intranet client is sent;
The first server obtains first access address of the on-the-flier compiler resource in outer net of first software module;
First access address is mapped as the second access address of Intranet by the first server;
Second access address is back to the Intranet client by the first server, so that the Intranet client Hold the first software module according to the second access address on-the-flier compiler.
A kind of possible implementation, the first server obtain first software from second server by outer net Module, and first software module is generated after the first download address and first version information of Intranet, further includes:
The first server is if it is determined that first software module and the second software module are dependence;
Second software module is then downloaded from the second server by outer net, and generates second software module In the second download address and second edition information of Intranet;
Second download address and second edition information of the first server by the second software module in Intranet are sent to The Intranet client, so that the Intranet client downloads described according to second download address from first server Two software modules.
A kind of possible implementation, the method also includes:
The first server obtains the posting request of the third software module of the Intranet client;
The first server is soft by the third after the third version information checking success of the third software module Part module is stored to the first server, and generates the third software module in the third download address of Intranet, so that Two Intranet clients download the third software module according to the third download address.
A kind of possible implementation, the method also includes:
The first server searches whether first software module updates in outer net;
The first server is if it is determined that it is soft then to download updated described first in the presence of updating for first software module Part module, and update the first version information and first download address of first software module;
The first server sends the update message of first software module to the Intranet client, so that described Intranet client obtains updated first software module according to updated first download address.
A kind of possible implementation, the method also includes:
The first server is if it is determined that the address URL for the resource for needing to call in first software module updates, then Update the address URL for the resource for needing to call in first software module stored in the first server;
The first server notifies the Intranet client, updates the resource for needing to call in first software module The address URL.
Based on same inventive concept, a kind of managing device of software module provided by the invention, comprising:
First server obtains the downloading request for the first software module that Intranet client is sent;
The first server has first software module if it is determined that the first server is not stored, then passes through outer net Obtain first software module from second server, and generate first software module in the first download address of Intranet and The first version information of first software module;
The first server returns to first version information and the institute of first software module to the Intranet client The first download address is stated, so that the Intranet client is according to the first version information checking of first software module The version of one software module, and after verifying successfully, institute is downloaded from the first server according to first download address State the first software module.
A kind of possible implementation, the downloading that the first server obtains the software module that Intranet client is sent are asked Before asking, further includes:
The first server obtains the inquiry request for first software module that the Intranet client is sent;
The first server is confirmed whether to be stored with first software according to the version information of the software module of storage Module;
The first server returns to the query result of first software module to the Intranet client.
A kind of possible implementation, the method also includes:
The first server obtains the on-the-flier compiler request for first software module that the Intranet client is sent;
The first server obtains first access address of the on-the-flier compiler resource in outer net of first software module;
First access address is mapped as the second access address of Intranet by the first server;
Second access address is back to the Intranet client by the first server, so that the Intranet client Hold the first software module according to the second access address on-the-flier compiler.
A kind of possible implementation, the first server obtain described first from the second server by outer net Software module, and first software module is generated after the first download address and first version information of Intranet, further includes:
The first server is if it is determined that first software module and the second software module are dependence;
Second software module is then downloaded from the second server by outer net, and generates second software module In the second download address and second edition information of Intranet;
Second download address and second edition information of the first server by the second software module in Intranet are sent to The Intranet client, so that the Intranet client downloads described according to second download address from first server Two software modules.
A kind of possible implementation, the method also includes:
The first server obtains the posting request of the third software module of the Intranet client;
The first server is soft by the third after the third version information checking success of the third software module Part module is stored to the first server, and generates the third software module in the third download address of Intranet, so that Two Intranet clients download the third software module according to the third download address.
A kind of possible implementation, the method also includes:
The first server searches whether first software module updates in outer net;
The first server is if it is determined that it is soft then to download updated described first in the presence of updating for first software module Part module, and update the first version information and first download address of first software module;
The first server sends the update message of first software module to the Intranet client, so that described Intranet client obtains updated first software module according to updated first download address.
A kind of possible implementation, the method also includes:
The first server is if it is determined that the address URL for the resource for needing to call in first software module updates, then Update the address URL for the resource for needing to call in first software module stored in the first server;
The first server notifies the Intranet client, updates the resource for needing to call in first software module The address URL.
Another embodiment of the present invention provides a kind of servers comprising memory and processor, wherein the memory For storing program instruction, the processor is for calling the program instruction stored in the memory, according to the program of acquisition Execute any of the above-described kind of method.
Another embodiment of the present invention provides a kind of computer storage medium, the computer-readable recording medium storage has Computer executable instructions, the computer executable instructions are for making the computer execute any of the above-described kind of method.
In the embodiment of the present invention, after Intranet client determines software module to be downloaded, software mould is sent to first server Block downloading request, first server obtain the corresponding software of software module to be downloaded according to the download address from second server Module, and according to the version information and download address of the corresponding Intranet of software module generation software module.Intranet client receives First server according to software module download request in software module to be downloaded mark return version information and downloading ground Software module is downloaded according to software module in location from first server.In this way, due to first server and Intranet client deployment In same Intranet, first server is connected with second server by outer net, ensure that first server can obtain in advance Software module on second server.Therefore, for software module to be downloaded, Intranet client can be provided according to first server Download address, and then according to the download address successful access and after verifying the software module, downloading should from first server Software module to be downloaded, thus realize software module it is quick-downloading while, ensure that enterprise test when issue software mould The sightless demand of block outer net improves the efficiency of management and safety of software module.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
System architecture diagram Fig. 1 applicable by the management method of software module provided in an embodiment of the present invention;
Fig. 2 is flow diagram corresponding to a kind of management method of software module provided in an embodiment of the present invention;
Fig. 3 is the pseudocode schematic diagram of the management of software module provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the managing device of software module provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into One step it is described in detail, it is clear that described embodiment, only a part of the embodiment of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
The embodiment of the present invention is described in further detail with reference to the accompanying drawings of the specification.
NPM (Node.js package manager): (originally it is mainly used for dedicated for management javascript The relevant software module management of node js is now mainly used for managing the relevant software module of javascript language) pipe of module Science and engineering tool, is made of client and server two parts function.
System architecture diagram Fig. 1 applicable by the management method of software module provided in an embodiment of the present invention, such as Fig. 1 institute Show, in software module management system include first server 101, second server 102, Intranet client 103 (can for installation Have the end PC or the smart phone of software module management program) and relevant project manager 104 and tester 105.The One server can be used Linux system server (such as centos7), and be configured with NODE JS environment.Present invention needs are taking It is engaged in disposing WEB retrieval service and REGISTRY storage service two parts on device.Its software module managed can be soft for node.js Part module;Wherein, first server 101, Intranet client 102 are deployed in Intranet, and second server 102 is deployed in outer net In, first server 101 can be communicated by proxy server with second server 102.Intranet client 103 can pass through Wireless network accesses above-mentioned first server 101, and provides the exhibition of software module to install the terminal user of the Intranet client The service such as show, upload, downloading, installing.Intranet client 103 can obtain second server 102 by first server 101 On resource.
In the embodiment of the present invention, the software module can be mounted on specific bit by the terminal software of developer's computer It sets, computer system includes Windows, Mac, Linux, and terminal software includes but is not limited to cmd, git bash, terminal.It is right For the intelligent terminal of different operating system, the type of installable software module is different, thus, it is being applied When program development, developer need to select matched software module for the type of operating system.
Problem present on foreign countries' NPM resource speed is accessed based on domestic-developed person, the embodiment of the present invention provides a kind of soft Part management method, comprising:
Step 1: first server obtains software module by network proxy server, from NPM REGISTYR server Resource;
Specifically, first server can be warehouse server, for storing the software on NPM REGISTYR server The resource of module;Specific acquisition process can be setting timer, be timed and obtain on NPM REGISTYR server The resource of software module.
Step 2: user installs the order of software module by client executing, so as to be stored in the soft of first server Part module resource is installed in the project of client local.
At home due to first server deployment, client can achieve very when downloading corresponding software module High speed of download promotes download efficiency.
To further increase download efficiency, the memory space of first server is saved, a kind of possible implementation can be with The specified software module that current ranking percentage is forward, is synchronized in first server by proxy server.
Above-described embodiment solves the problems, such as that domestic user accesses official NPM speed, still, the management of above-mentioned software module Scheme all has one: the distribution procedure of software module must rely on outer network environment.In the exploitation of NPM official register Person can obtain the permission of NPM server-side publication self-developed software module, be by executing specified order in NPM Intranet client It can issue, after module publication, other developers can be issued by the corresponding Installing of Command of Intranet client executing Software module.But this form is only applicable in and has issued online production version.For IT enterprises, the internal software used Module is usually all secrecy, in order to guarantee internal software modules safety, the publication of software module and using needing to be confined to Inside corporate intranet, therefore third party's hosted platform is not available it.
Based on the above issues, the proxy server that can provide agency service can be disposed in first server, such as VPN;It is of course also possible to individually be disposed, it is not limited here.It is associated with first server, and modifies proxy server Relevant configured parameter, to complete building for agency service in Intranet.After the completion of agency service is built, first server can pass through it Resource of the proxy server from extraneous acquisition software module.
For example, first server (can be configured with node.js environment, Servers-all journey for the server of centos 7 Sequence is all NODEJS software module, and service is made of WEB and REGISTRY two parts).
Service routine in first server is based on KOA (next generation web framework for Node.js): NODE JS Development Framework carries out secondary development, to adapt to the exploitation demand of NODE JS software module.Specifically, The corresponding resource file of curl command download nodejs can be passed through.Specifically, can be with are as follows: curl-sL https: // rpm.nodesource.com/setup_10.x|sudo bash-.The downloading of yum Installing of Command can be used in first server The resource of software module, specific order can be sudo yum install nodejs.First server can be used The installation of node-version command checksum.
Based on above system framework, as shown in Fig. 2, the embodiment of the present invention provides a kind of management method of software module, packet It includes:
Step 201: first server obtains the downloading request for the first software module that Intranet client is sent;
Step 202: first server has first software module if it is determined that the first server is not stored, then passes through Outer net obtains first software module from the second server, and generates first software module under the first of Intranet The first version information of set address and first software module;
Specifically, can be by the agent functionality for the proxy server that tunnel-agent module is realized, by outer net from institute Second server is stated, by the resource file synchronization of the first software module and is stored into the memory space of first server.
Further, if the first software module has been locally stored in first server determination, 203 are thened follow the steps;
Step 203: first server returns to the first version information of first software module to the Intranet client And first download address;
Step 204: Intranet client first software according to the first version information checking of first software module The version of module, and after verifying successfully, described first is downloaded from the first server according to first download address Software module.
In the embodiment of the present invention, after Intranet client determines software module to be downloaded, software mould is sent to first server Block downloading request, first server obtain the corresponding software of software module to be downloaded according to the download address from second server Module, and according to the version information and download address of the corresponding Intranet of software module generation software module.Intranet client receives First server according to software module download request in software module to be downloaded mark return version information and downloading ground Software module is downloaded according to software module in location from first server.In this way, due to first server and Intranet client deployment In same Intranet, first server is connected with second server by outer net, ensure that first server can obtain in advance Software module on second server.Therefore, for software module to be downloaded, Intranet client can be provided according to first server Download address, and then according to the download address successful access and after verifying the software module, downloading should from first server Software module to be downloaded, thus realize software module it is quick-downloading while, ensure that enterprise test when issue software mould The sightless demand of block outer net.
A kind of possible implementation, the downloading that the first server obtains the software module that Intranet client is sent are asked Before asking, further includes:
The first server obtains the inquiry request for first software module that the Intranet client is sent;
The first server is confirmed whether to be stored with first software according to the version information of the software module of storage Module;
The first server returns to the query result of first software module to the Intranet client.
Specifically, the relevant information of software module and software module may be stored in first server, Intranet Client can obtain all software modules and software module stored in first server by access first server Relevant information etc., and be shown.
In the embodiment of the present invention, the relevant information of software module includes the version information that software module itself has, and Project manager is the Project Management Information of software module addition when issuing the software module.Wherein, version information packet Include the Apply Names of software module, using information such as packet name, version numbers, Project Management Information can be used for tester in success After downloading software module, the specific requirement of test job of the project manager to the software module is known.
Thus, user browses each software module that Intranet client is shown, and therefrom selects the software module to be downloaded.With Afterwards, after Intranet client determines software module to be downloaded, software module download request, the software mould are sent to first server The mark of the software module to be downloaded of user's selection is carried in block downloading request.
For example, query result can be not present for the first software module, also may include the institute of the first software module There is version.
In the case where query result is that the first software module is not present, user can send the first software module manually Downloading request, obtains corresponding software module by first server, can synchronize on demand in this way, saves server storage Pressure.
When the version that query result is the first software module is multiple, can select on demand, the version downloaded as needed This, generates downloading request, so that first server obtains the correspondence version of first software module by second server Resource.
It is, of course, also possible to which first server, which is arranged, actively downloads first software module, and store the first software module Latest edition resource.
Wherein, timer can be set in first server, in the predetermined time, carries out unified downloading, be also possible to according to The downloading request that family is sent is obtained.While downloading resource from second server by outer net, it is also desirable to update first The version information and download address of the software module of the storage of server, to guarantee that it is corresponding soft that user can correctly retrieve Part module.
For the resource for obtaining latest edition, may include:
Step 1: first server searches whether first software module updates in outer net;
Step 2: first server if it is determined that first software module exists updates, then downloads updated described the One software module, and update the first version information and first download address of first software module;
Step 3: first server sends the update message of first software module to the Intranet client, so that The Intranet client obtains updated first software module according to updated first download address.
A kind of possible implementation, Intranet client can check soft when executing corresponding software module every time Whether part module, which needs, upgrades, while Intranet client also can be set default and initiate to check that is updated asks to second server It asks, and the request timed out time is set.The request timed out time can be 3 minutes.
For in the embodiment of the present invention, Intranet client directly transmits the request for checking and updating without normal direction second server, Therefore, cause Intranet client when opening software module, need to wait time-out, based on the above issues, a kind of possible realization Mode updates setting in file in NPM and manually selects update;For example, client~/.config/configstore/ Increase " optOut ": true in update-notifier-npm.json file;Alternatively, directly setting does not automatically update.For example, Machine environment variable: NO_UPDATE_NOTIFIER=1 is set.
In addition, since Intranet client will not frequently upgrade, it is possible to Intranet client be arranged in the set time to One server, which is sent, updates request;Update request can request to update the update of client, or update software mould The update of block is requested, it is not limited here.If it is determined that there is new version, then update message is sent to client, prompts user more Newly, and current check that the time updated is cached in local disk, Intranet client is all not required in other times run Retransmit update request.
For needing to use the module of outer net on-the-flier compiler software resource, such as node-sass module on the local machine Installation, additional resource on-the-flier compiler is needed, and the resource that each platform needs to download is variant, due to first service Device and Intranet client are deployed in after proxy server, institute in the acquisition request for the outer net resource that Intranet client is sent The path of request is outer net address, may be refused to connect by first server.
Based on the above issues, a kind of possible implementation, the method also includes:
Step 1: the on-the-flier compiler that first server obtains first software module that the Intranet client is sent is asked It asks;
Step 2: first server obtains first access of the on-the-flier compiler resource in outer net of first software module Location;
Step 3: first access address is mapped as the second access address of Intranet by first server;
Step 4: second access address is back to the Intranet client by first server, so that the Intranet Client first software module according to the second access address on-the-flier compiler.
In the specific implementation process, a mirror image address can be generated by the first access address, which is interior Net the second accessible access address;A kind of possible implementation, first server store the first access address and second The mapping relations of access address, Intranet client pass through the access request to first server the second access address of transmission;First Server determines the first access address, and then pass through outer net according to the mapping relations of the first access address and the second access address Resource needed for obtaining on-the-flier compiler is sent to first access address.First server is obtained dynamic by the first access address After resource needed for state compiling, resource needed for Xiang Suoshu Intranet client returns to the on-the-flier compiler.
For example, the mirror image resources in being requested by the proxy server transparent transmission on-the-flier compiler in first server, When Intranet client sends on-the-flier compiler request, Intranet client can pass through the second access address of first server generation (agent mirrors) download the resource of corresponding on-the-flier compiler.
For example, the resource win32-x64-64_binding.node of on-the-flier compiler request, original resource request path It is: http://npm.taobao.org/mirrors/node-sass/v4.11.0/win32-x64-64_bi nding.node; This URL request needs to be forwarded to outer net by proxy server, so that corresponding money can be normally accessed in Intranet client Source.
A kind of possible implementation, the first server obtain described first from the second server by outer net Software module, and first software module is generated after the first download address and first version information of Intranet, further includes:
Step 1: first server if it is determined that first software module and the second software module are dependence, is then led to It crosses outer net and downloads second software module from the second server, and generate second software module the second of Intranet Download address and second edition information;
Step 2: second download address and second edition information of the first server by the second software module in Intranet are sent To the Intranet client, so that described in the Intranet client downloaded from first server according to second download address Second software module.
To accelerate installation speed, the dependence of the first software module Yu other software module, root can also be obtained in advance According to the dependence, by the second software module download of dependence to client.It is of course also possible to according to the needs of client, Second software module is obtained after the second download address and second edition information of Intranet, however, it is determined that existing in client Second software module then can choose and not download the second software module, to improve installation effectiveness.The dependence can be preparatory It is arranged, or determined according to the historical record that server downloads software module, it is not limited here.
It is of course also possible to according to the actual conditions of installation, determining the second software module relied on the first software module, into And client notification first server, the second software module are the software module that the first software module relies on.
For example, as shown in figure 3, the first software module relies on the small function that other software module provides, such as software Modules A possibly relies on software module B, software module C, software module D, and therefore, first server during the installation process, determines The dependence of software module A, and according to dependence, download corresponding software module.Specifically, can be in installation software mould When block A, software module B, software module C are determined, then return to software module B, software module C, after installation process, determine The return course of the downloading request terminates.
Due to the replacement of the old and new's resource of second server, for example, the URL link of the first resource in the first software module It is no longer valid, but there is no updating in the second software module, for the resource downloading success for guaranteeing the second software module, Ke Yi URL resource to be updated is replaced with to the URL link of new resource, a kind of possible implementation, the side in synchronizing function Method further include:
Step 1: first server is if it is determined that the address URL for the resource for needing to call in first software module updates, Then update the address URL for the resource for needing to call in first software module stored in the first server;
Step 2: first server notifies the Intranet client, need to call in update first software module The address URL of resource.
For the scene of Intranet client publication software module, a kind of possible implementation, comprising:
The first server obtains the posting request of the third software module of the Intranet client;
The first server is soft by the third after the third version information checking success of the third software module Part module is stored to the first server, and generates the third software module in the third download address of Intranet, so that Two Intranet clients download the third software module according to the third download address.
Specifically, user is by specifying the corresponding Intranet client of Installing of Command, net client passes through login module inside It is logged in and is registered, user holds in needing the module project root being published in row after first server registration Row posting request, the posting request can upload the software module of the types such as Android, iOS, and client can read software mould The information such as the version and name of the package.json of block, and verify relevant test program, after verifying successfully, first service Device can generate the resource for downloading the software module for the software module, and completion is distributed to first server.The other users of Intranet Giving out information for third software module can be got by first server, and it is soft to directly download the installation third Part module.
It should be noted that third software module can by by the name of software module in the domain of Intranet, with distinguish The third software module and the first software module of Intranet publication.
Based on same inventive concept, the embodiment of the present invention also provides a kind of managing device of software module, and Fig. 4 is this hair The bright a kind of structural schematic diagram for implementing to provide, as shown in figure 4, the managing device of the software module includes:
Transmit-Receive Unit 301, the downloading request of the first software module for obtaining the transmission of Intranet client;
Processing unit 302, for if it is determined that the first server is not stored first software module, then by outer Net obtains first software module from the second server, and generates first software module in the first downloading of Intranet The first version information of address and first software module;
Transmit-Receive Unit 301, for returned to the Intranet client first software module first version information and First download address, so that the Intranet client is according to the first version information checking of first software module The version of first software module, and after verifying successfully, it is downloaded from the first server according to first download address First software module.
A kind of possible implementation, Transmit-Receive Unit 301 are also used to obtain the Intranet client is sent described first The inquiry request of software module;
Processing unit 302 is confirmed whether to be stored with described first soft for the version information according to the software module of storage Part module;
Transmit-Receive Unit 301 is also used to return the query result of first software module to the Intranet client.
A kind of possible implementation, Transmit-Receive Unit 301 are also used to obtain the Intranet client is sent described first The on-the-flier compiler of software module is requested;Obtain first access of the on-the-flier compiler resource in outer net of first software module Location;
Processing unit 302, for first access address to be mapped as to the second access address of Intranet;
Transmit-Receive Unit 301 is also used to second access address being back to the Intranet client, so that the Intranet Client first software module according to the second access address on-the-flier compiler.
A kind of possible implementation, processing unit 302 are used for if it is determined that first software module and the second software mould Block is dependence, then downloads second software module from the second server by outer net, and it is soft to generate described second Second download address and second edition information of the part module in Intranet;By second software module on the second downloading ground of Intranet Location and second edition information are sent to the Intranet client so that the Intranet client according to second download address from Second software module is downloaded in first server.
A kind of possible implementation, Transmit-Receive Unit 301 are also used to obtain the third software module of the Intranet client Posting request;
Processing unit 302 is also used to after the third version information checking success of the third software module, by described the Three software modules are stored to the first server, and generate the third software module in the third download address of Intranet, with The second Intranet client is set to download the third software module according to the third download address.
A kind of possible implementation, processing unit 302 are also used to search whether first software module goes out in outer net Now update;It is updated if it is determined that first software module exists, then downloads updated first software module, and update institute State the first version information and first download address of the first software module;
Transmit-Receive Unit 301 is also used to send the update message of first software module to the Intranet client, so that The Intranet client obtains updated first software module according to updated first download address.
A kind of possible implementation, processing unit 302 are also used to if it is determined that needing to call in first software module The address URL of resource update, then update and in first software module stored in the first server need to call The address URL of resource;
Transmit-Receive Unit 301 is also used to notify the Intranet client, needs to call in update first software module The address URL of resource.
Based on identical inventive concept, as shown in figure 5, in the embodiment of the present invention, a kind of structural schematic diagram of server.
The embodiment of the invention provides a kind of servers, wherein the electronic equipment can be server or other computers Device etc., the electronic equipment may include processor 710 (Center Processing Unit, CPU), memory 720, input Equipment 730 and output equipment 740 etc., input equipment 730 may include keyboard, mouse, touch screen etc., and output equipment 740 can be with Including showing equipment, such as liquid crystal display (Liquid Crystal Display, LCD), cathode-ray tube (Cathode Ray Tube, CRT) etc..
Memory 720 may include read-only memory (ROM) and random access memory (RAM), and mention to processor 710 For the program instruction and data stored in memory 720.In embodiments of the present invention, memory 720 can be used for storing above-mentioned The program of the management method of software module in embodiment.
Processor 710 is by the program instruction for calling memory 720 to store, and processor 710 is for the program according to acquisition Instruction execution:
If it is determined that the first server is not stored first software module, then pass through outer net from the second service Device obtains first software module, and generates first software module in the first download address of Intranet and described first soft The first version information of part module;
A kind of possible implementation, processor 710 are also used to the version information of the software module according to storage, confirmation Whether first software module is stored with.
A kind of possible implementation, processor 710 are also used to first access address being mapped as the second of Intranet Access address;
A kind of possible implementation, processor 710 are also used to if it is determined that first software module and the second software mould Block is dependence, then downloads second software module from the second server by outer net, and it is soft to generate described second Second download address and second edition information of the part module in Intranet;By second software module on the second downloading ground of Intranet Location and second edition information are sent to the Intranet client so that the Intranet client according to second download address from Second software module is downloaded in first server.
A kind of possible implementation, processor 710 are also used in the third version information school of the third software module After testing successfully, the third software module is stored to the first server, and generates the third software module in Intranet Third download address so that the second Intranet client downloads the third software module according to the third download address.
A kind of possible implementation, processor 710 are also used to search whether first software module occurs in outer net It updates;It is updated if it is determined that first software module exists, then downloads updated first software module, and described in update The first version information of first software module and first download address.
A kind of possible implementation, processor 710 are also used to if it is determined that in first software module needing to call The address URL of resource updates, then updates the money for needing to call in first software module stored in the first server The address URL in source.
In the embodiment of the present invention, after Intranet client determines software module to be downloaded, software mould is sent to first server Block downloading request, first server obtain the corresponding software of software module to be downloaded according to the download address from second server Module, and according to the version information and download address of the corresponding Intranet of software module generation software module.Intranet client receives First server according to software module download request in software module to be downloaded mark return version information and downloading ground Software module is downloaded according to software module in location from first server.In this way, due to first server and Intranet client deployment In same Intranet, first server is connected with second server by outer net, ensure that first server can obtain in advance Software module on second server.Therefore, for software module to be downloaded, Intranet client can be provided according to first server Download address, and then according to the download address successful access and after verifying the software module, downloading should from first server Software module to be downloaded, thus realize software module it is quick-downloading while, ensure that enterprise test when issue software mould The sightless demand of block outer net.
Based on same inventive concept, the embodiment of the invention provides a kind of computer storage mediums, for being stored as It states and calculates computer program instructions used in equipment, it includes the programs of the management method for executing above-mentioned software module.
The computer storage medium can be any usable medium or data storage device that computer can access, packet Include but be not limited to magnetic storage (such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc.), optical memory (such as CD, DVD, BD, HVD etc.) and semiconductor memory (such as it is ROM, EPROM, EEPROM, nonvolatile memory (NAND FLASH), solid State hard disk (SSD)) etc..
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the meter of computer usable program code that the present invention, which can be used at one or more, The computer journey implemented in calculation machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of sequence product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The function of being specified in present one process of flow chart or more than two one box of process and/or block diagram or more than two boxes Device.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, The manufacture of device is enabled, which realizes in one side of one process of flow chart or more than two processes and/or block diagram The function of being specified in frame or more than two boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one process of flow chart or more than two processes and/or box The step of function of being specified in one box of figure or more than two boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of management method of software module, which is characterized in that the described method includes:
First server obtains the downloading request for the first software module that Intranet client is sent;
The first server has first software module if it is determined that the first server is not stored, then by outer net from the Two servers obtain first software module, and generate first software module in the first download address of Intranet and described The first version information of first software module;
The first server returns to the first version information and described of first software module to the Intranet client One download address, so that the Intranet client is first soft according to the first version information checking of first software module The version of part module, and after verifying successfully, described is downloaded from the first server according to first download address One software module.
2. the method according to claim 1, wherein the first server obtains the soft of Intranet client transmission Before the downloading request of part module, further includes:
The first server obtains the inquiry request for first software module that the Intranet client is sent;
The first server is confirmed whether to be stored with the first software mould according to the version information of the software module of storage Block;
The first server returns to the query result of first software module to the Intranet client.
3. the method according to claim 1, wherein the method also includes:
The first server obtains the on-the-flier compiler request for first software module that the Intranet client is sent;
The first server obtains first access address of the on-the-flier compiler resource in outer net of first software module;
First access address is mapped as the second access address of Intranet by the first server;
Second access address is back to the Intranet client by the first server, so that the Intranet client root According to the first software module described in the second access address on-the-flier compiler.
4. the method according to claim 1, wherein the first server is obtained by outer net from second server Take first software module, and generate first software module Intranet the first download address and first version information it Afterwards, further includes:
The first server is if it is determined that first software module and the second software module are dependence;
Second software module is then downloaded from the second server by outer net, and including generating second software module The second download address and second edition information of net;
Second download address and second edition information of the first server by second software module in Intranet are sent to The Intranet client, so that the Intranet client downloads described according to second download address from first server Two software modules.
5. the method according to claim 1, wherein the method also includes:
The first server obtains the posting request of the third software module of the Intranet client;
The first server is after the third version information checking success of the third software module, by the third software mould Block is stored to the first server, and generates the third software module in the third download address of Intranet, so that in second Net client downloads the third software module according to the third download address.
6. the method according to claim 1, wherein the method also includes:
The first server searches whether first software module updates in outer net;
The first server is if it is determined that first software module then downloads the updated first software mould in the presence of updating Block, and update the first version information and first download address of first software module;
The first server sends the update message of first software module to the Intranet client, so that the Intranet Client obtains updated first software module according to updated first download address.
7. method according to claim 1-6, which is characterized in that the method also includes:
The first server then updates if it is determined that the address URL for the resource for needing to call in first software module updates The address URL for the resource for needing to call in first software module stored in the first server;
The first server notifies the Intranet client, updates the resource for needing to call in first software module The address URL.
8. a kind of managing device of software module, which is characterized in that described device includes:
Transmit-Receive Unit, the downloading request of the first software module for obtaining the transmission of Intranet client;
Processing unit, for if it is determined that the first server is not stored first software module, then by outer net to the Two servers send the downloading request of first software module;First software module is obtained, and it is soft to generate described first Part module is in the first download address of Intranet and the first version information of first software module;
The Transmit-Receive Unit is also used to return first version information and the institute of first software module to the Intranet client The first download address is stated, so that the Intranet client is according to the first version information checking of first software module The version of one software module, and after verifying successfully, institute is downloaded from the first server according to first download address State the first software module.
9. a kind of server characterized by comprising
Memory, for storing program instruction;
Processor, for calling the program instruction stored in the memory, according to acquisition program execute as claim 1 to Method described in any one of 7.
10. a kind of computer storage medium, which is characterized in that the computer-readable recording medium storage has computer executable Instruction, the side that the computer executable instructions are used to that the computer to be made to execute as described in any one of claims 1 to 7 Method.
CN201910515520.9A 2019-06-14 2019-06-14 A kind of management method of software module, device and server Pending CN110262821A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910515520.9A CN110262821A (en) 2019-06-14 2019-06-14 A kind of management method of software module, device and server
PCT/CN2020/086877 WO2020248727A1 (en) 2019-06-14 2020-04-24 Management method and device for software module, and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910515520.9A CN110262821A (en) 2019-06-14 2019-06-14 A kind of management method of software module, device and server

Publications (1)

Publication Number Publication Date
CN110262821A true CN110262821A (en) 2019-09-20

Family

ID=67918276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910515520.9A Pending CN110262821A (en) 2019-06-14 2019-06-14 A kind of management method of software module, device and server

Country Status (2)

Country Link
CN (1) CN110262821A (en)
WO (1) WO2020248727A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857781A (en) * 2020-07-23 2020-10-30 平安普惠企业管理有限公司 Resource updating method and related equipment
WO2020248727A1 (en) * 2019-06-14 2020-12-17 深圳前海微众银行股份有限公司 Management method and device for software module, and server
CN112732283A (en) * 2021-01-21 2021-04-30 深圳市位元领航科技有限公司 Method for realizing client-server mode, client and server
CN114679410A (en) * 2020-12-24 2022-06-28 网神信息技术(北京)股份有限公司 Method and device for reducing occupation of external network resources, electronic equipment and storage medium
CN112732283B (en) * 2021-01-21 2024-06-11 深圳市位元领航科技有限公司 Client-server mode realization method, client and server

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647844B (en) * 2013-12-20 2017-11-07 北京奇安信科技有限公司 A kind of method and device of Intranet Program upgrading
CN109495433B (en) * 2017-09-13 2021-05-14 腾讯科技(深圳)有限公司 Data downloading method and device, storage medium and electronic device
CN107896244B (en) * 2017-11-07 2020-09-29 中国银联股份有限公司 Version file distribution method, client and server
CN108595221B (en) * 2018-04-26 2021-04-06 Oppo广东移动通信有限公司 Plug-in loading method, device, server and storage medium of PaaS platform
CN110262821A (en) * 2019-06-14 2019-09-20 深圳前海微众银行股份有限公司 A kind of management method of software module, device and server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020248727A1 (en) * 2019-06-14 2020-12-17 深圳前海微众银行股份有限公司 Management method and device for software module, and server
CN111857781A (en) * 2020-07-23 2020-10-30 平安普惠企业管理有限公司 Resource updating method and related equipment
CN114679410A (en) * 2020-12-24 2022-06-28 网神信息技术(北京)股份有限公司 Method and device for reducing occupation of external network resources, electronic equipment and storage medium
CN114679410B (en) * 2020-12-24 2024-04-12 奇安信网神信息技术(北京)股份有限公司 Method and device for reducing occupation of external network resources, electronic equipment and storage medium
CN112732283A (en) * 2021-01-21 2021-04-30 深圳市位元领航科技有限公司 Method for realizing client-server mode, client and server
CN112732283B (en) * 2021-01-21 2024-06-11 深圳市位元领航科技有限公司 Client-server mode realization method, client and server

Also Published As

Publication number Publication date
WO2020248727A1 (en) 2020-12-17

Similar Documents

Publication Publication Date Title
RU2673403C2 (en) Website access method, device and website system
US10382291B2 (en) Provisioning framework for binding related cloud services
US9928041B2 (en) Managing a software appliance
US9485134B2 (en) Managing configurations of system management agents in a distributed environment
US8458658B2 (en) Methods and systems for dynamically building a software appliance
US9350610B2 (en) System and method for configuration management service
US8935687B2 (en) Incrementally updating a software appliance
US8924920B2 (en) Providing a software appliance based on a role
KR102204733B1 (en) Method, device, and server for account login
US10225140B2 (en) Portable instance provisioning framework for cloud services
US9792141B1 (en) Configured generation of virtual machine images
CN107896244B (en) Version file distribution method, client and server
CN103713918B (en) software application installation system and method
CN109683826A (en) Expansion method and device for distributed memory system
CN110262821A (en) A kind of management method of software module, device and server
CN112764751B (en) Interface generation method and device, interface request method and device and storage medium
CN111078262B (en) Application thermal restoration method and device
CN109564527A (en) The security configuration of cloud computing node
US20190317736A1 (en) State machine representation of a development environment deployment process
CN109032620A (en) The configuration file generation method and device of application program
CN110727575B (en) Information processing method, system, device and storage medium
CN113282303A (en) Application management method and device based on double-core intelligent electric meter and computer equipment
JP2021086604A (en) Method and apparatus for processing service of abnormal server
CN108287792B (en) Method and apparatus for outputting information
US20240152356A1 (en) Automated developer configuration tool

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