Background technology
Cloud computing (cloud computing) is a kind of new paragon of use shared resource, changes traditional whole make
Pattern with local physical resource.User is only needed to by network connection to cloud computation data center, propose to calculating, storage,
The requirement description of the resources such as network, cloud computation data center will be described according to demand to be carried out scheduling of resource and distributes actual thing
Manage resource user's application is run, meet user's request.With the development of information technology, cloud computing progressively becomes the development of industry
Focus, the cloud computation data center platform of domestic and international all big enterprises also start to come into operation one after another.
One big important feature of cloud computing, be by network technology will be distributed over the server of various places data center, storage,
The network equipment gathers collaborative work by management software, common externally offer service.In view of cloud computing have data volume big,
The features such as Regional Distribution is wide, physical equipment is many, software category complexity is various, way to manage is complicated loaded down with trivial details, cloud computing operating system
(cloud OS) generally needs a set of powerful, good cross-region, software storage solution that is cost-effective, being easy to management.
Wherein, with the development of technology, new software constantly puts into application, and old software continuous are upgraded, and makes cloud OS deployment, updates the need of software
Ask very urgent.
Software storage is exactly to deposit among cloud storage, and the installation/user for software therefrom selects needs or suitable
Software, be downloaded, install or upgrade.
General plug-in server is responsible for the software management of OpenWrt equipment in actual applications, including software installation and soft
Part is upgraded.Software is published to plug-in server by software publisher, is communicated by proprietary protocol between server and equipment.
In server side, the software of issue typically can be containing storehouse be relied on, and opkg solves to rely on storehouse by configuration file
Problem.That is, having a configuration file in software storage, configuration file describes the information of all softwares, including
Some dependences of software.In equipment side, the configuration file on server is first obtained by opkg order, according to configuration file
To carry out the installation and upgrade of software.Opkg is a software package management system based on the lightweight of ipkg, is mainly used in embedding
Embedded system (OpenWrt/ embedded Linux).OpenWrt equipment is downloaded and installs from software storage by opkg instrument
OpenWrt software kit.
Chinese Patent Application No. is CN201610303832.X, and the disclosure of the invention is a kind of based on Openwrt router
The method of Portal certification, including:Step one, disposes Wifidog agreement on Openwrt router, realizes user and accesses number
According to interception, the function that keeps of redirection and presence;Step 2, using Openwrt system support uhttpd service and
Lua Script Programming, sets up local authentication server, realizes the authentication function of user;Step 3, by relevant configuration, will
Wifidog agreement and local authentication server are associated, and realize the function of local authentication.The present invention on Openwrt router,
Uhttpd and Lua based on lightweight sets up local authentication server, it is ensured that the realization of network access authentication function, while with less
Load takes the normal operation for ensureing router other functions;In LAN, user passes through clear after router in connection, directly
Network access authentication can just be realized by device of looking at, it is not necessary to install extra Authentication Client.
Chinese Patent Application No. is CN201510804963.1, and the invention is related to a kind of wireless based on embedded OpenWrt
The Cloud Server data access method of router technology, solve compared with prior art there is no locally literary for wireless router
Part carries out throwing in the defect with download technology.The present invention is comprised the following steps:Deployment cloud application server, cloud file server and
Cloud database server;Embedded OpenWrt wireless router sends successful connection to local storage medium and verifies file;Embedded
Formula OpenWrt wireless router judges whether to access Web files passe and download service platform first;Embedded OpenWrt nothing
Line router accesses operation;Timing more new job;User accesses the html page.It is locally stored next that the present invention quotes wireless router
The file download storage of internet is carried out, is effectively reduced traditional file and directly throws in needed for download technology in the webserver and account for
Situation with huge resource..
Existing plug-in server typically all safeguarded by device layout and manager, does not have conflict between software, because
For only needing to safeguard a configuration file.
If by plug-in server opening to third party, third party can be issued on the server for the soft of equipment application
Part, then the management of existing software kit there is some problems, such as, conflict between third-party rights management, software,
Whether configuration file needs rewriting etc..
Content of the invention
Present invention is generally directed in the OpenWrt software storage of open platform, how to solve to be come by third party developer
Carry out software dependence, a series of problem such as software authority, software conflict that maintenance management software kit is brought.The present invention is directed to
The plug-in server of this open platform, proposes a kind of improved opkg software package management method, and the method is in A server side pair
Software publisher carries out rights management, the configuration file of all software sources is integrated in order in B device side, so as to solve by
Software conflict and Dependence Problem produced by multiple publishers.The present invention is achieved by the following technical solutions:
A kind of open software warehouse management method, methods described comprise the steps:
S100:Rights management is carried out at the software storage end, the corresponding software is distributed to according to the authority
In the catalogue of assignment of allocation;
S200:Configuration file end provides the dependence of the corresponding software;
S300:The calls tool of embedded OS calls the configuration file and the corresponding software.
Further, described open software warehouse management method, in the catalogue of the assignment of allocation, storage is described soft
Part is for installing software or upgrading software.
Further, described open software warehouse management method, the embedded OS are Linux, Windows
Embedded, VxWorks or OpenWrt.
Further, described open software warehouse management method, the calls tool are one for Opkg, the Opkg
Software package management system based on the lightweight of ipkg.
Further, described open software warehouse management method, the calls tool pass through the configuration file:
It was found that the software has software conflict, then tagged to the corresponding software, the label is for described soft
Prompting reference when part actually occurs installation or upgrades;
It was found that the software has specific dependency relation, then install and rely on bag.
Present invention also offers a kind of open software warehouse management system, including storing the server of the software storage
The network equipment serviced with the needs software storage,
The server, for providing mutually the configuration file of the not catalogue of Share Permissions and storage for common query;
The catalogue of assignment of allocation, for storing the software for obtaining corresponding authority;
The configuration file, for providing the dependence of each corresponding software;
The network equipment of embedded OS is mounted with, the configuration file and access are called by calls tool
The software of corresponding authority.
Further, described open software warehouse management system, in the catalogue of the assignment of allocation, storage is described soft
Part is for installing software or upgrading software.
Further, described open software warehouse management system, the embedded OS are Linux, Windows
Embedded, VxWorks or OpenWrt.
Further, described open software warehouse management system, the calls tool are one for Opkg, the Opkg
Software package management system based on the lightweight of ipkg.
Further, described open software warehouse management system, the calls tool pass through the configuration file:
It was found that the software has software conflict, then tagged to the corresponding software, the label is for described soft
Prompting reference when part actually occurs installation or upgrades;
It was found that the software has specific dependency relation, then install and rely on bag.
The present invention one of at least has the advantages that:
1. instant invention overcomes originally in the OpenWrt software storage of open platform, how to solve to be developed by third party
Person is carrying out the software dependence, a series of problem such as software authority, software conflict brought by maintenance management software kit.
2. plug-in server of the present invention is changed from privately owned to open platform.
3. the present invention greatly improves opkg software kit management process, solves the problems, such as that multi-party software source conflicts.
4. compared with existing framework, it is an advantage of the current invention that:Privately owned platform is abandoned, open platform development is turned to, is allowed more
Many third party software publishers participate in, and lift the range of application of OpenWrt equipment.
5th, the open software warehouse management method based on OpenWrt framework that the present invention is provided, reliability are high, while holding
Line efficiency is high, applied range.
6th, the problem that software kit of settling a dispute by the parties concerned themselves is relied on, conflicts by the network equipment (OpenWrt equipment), is conducive to whole layout
System develops to open platform.
Specific embodiment
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for technology description is had to be briefly described, it should be apparent that, below explanation and accompanying drawing are for the present invention
Be exemplary, and be understood not to limit the present invention.Numerous details are following description described to facilitate to this
Sensible solution.However, in some instances, details that know or routine is not simultaneously specified, the requirement succinct to meet specification.
In one typical computing hardware configuration of the application, client/terminal, the network equipment and trusted party all include one
Individual or multiple processor (CPU), input/output interface, network interface and internal memory.
Client, mobile terminal or the network equipment in the present invention includes processor, processes containing single core processor or multinuclear
Device.Processor is alternatively referred to as one or more microprocessors, CPU (CPU) etc..More specifically, processor can be
Complicated instruction set calculates (CISC) microprocessor, Jing Ke Cao Neng (RISC) microprocessor, very long instruction word (VLIW)
Microprocessor, the processor of other instruction set is realized, or realize the processor of instruction set combination.Processor can be also one or many
Individual application specific processor, such as special IC (ASIC), field programmable gate array (FPGA), digital signal processor
(DSP), network processing unit, graphic process unit, network processing unit, communication processor, cipher processor, coprocessor, embedded
Processor or be capable of process instruction any other type logical block.Processor is used for executing the behaviour discussed by the present invention
Make the instruction with step.
Client, mobile terminal or the network equipment in the present invention includes memory, for storing big data, it may include one
Individual or multiple volatile storage devices, such as random access memory (RAM), dynamic ram (DRAM), synchronous dram (SDRAM), quiet
State RAM (SRAM) or other kinds of storage device.Memory can be stored including being executed by processor or any other equipment
The information of command sequence.For example, several operation systems, device driver, firmware (for example, input and output fundamental system or
) and/or the executable code of application program and/or data can be loaded in memory and by computing device BIOS.
The operating system of client, mobile terminal or the network equipment in the present invention can be any kind of operating system,
Windows, Windows Phone of such as Microsoft, Apple IOS, the Android of Google, and Linux,
Unix operating system or other real-time or embedded OS VxWorks etc..
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for technology description is had to be briefly described, it should be apparent that, below explanation and accompanying drawing are for the present invention
Be exemplary, and be understood not to limit the present invention.Numerous details are following description described to facilitate to this
Sensible solution.However, in some instances, details that know or routine is not simultaneously specified, the requirement succinct to meet specification.This
The concrete flow-control equipment of invention and control method are referring to following embodiments:
First embodiment
If Fig. 1 is shown in first embodiment of the invention schematic flow sheet:
A kind of open software warehouse management method, methods described comprise the steps:
S100:Rights management is carried out at the software storage end, the corresponding software is distributed to according to the authority
In the catalogue of assignment of allocation;
S200:Configuration file end provides the dependence of the corresponding software;
S300:The calls tool of embedded OS calls the configuration file and the corresponding software.
Preferably, described open software warehouse management method, in the catalogue of the assignment of allocation, storage is described soft
Part is for installing software or upgrading software.
Preferably, described open software warehouse management method, the embedded OS are Linux, Windows
Embedded, VxWorks or OpenWrt.
Preferably, described open software warehouse management method, the calls tool are one for Opkg, the Opkg
Software package management system based on the lightweight of ipkg.
Preferably, described open software warehouse management method, the calls tool pass through the configuration file:
It was found that the software has software conflict, then tagged to the corresponding software, the label is for described soft
Prompting reference when part actually occurs installation or upgrades;
It was found that the software has specific dependency relation, then install and rely on bag.
Present invention also offers a kind of open software warehouse management system, such as Fig. 2 is first embodiment of the invention framework
Shown in schematic diagram:Including storing the server of the software storage and needing the network equipment of the software storage service,
The server, for providing mutually the configuration file of the not catalogue of Share Permissions and storage for common query;
The catalogue of assignment of allocation, for storing the software for obtaining corresponding authority;
The configuration file, for providing the dependence of each corresponding software;
The network equipment of embedded OS is mounted with, the configuration file and access are called by calls tool
The software of corresponding authority.
Preferably, described open software warehouse management system, in the catalogue of the assignment of allocation, storage is described soft
Part is for installing software or upgrading software.
Preferably, described open software warehouse management system, the embedded OS are Linux, Windows
Embedded, VxWorks or OpenWrt.
Preferably, described open software warehouse management system, the calls tool are one for Opkg, the Opkg
Software package management system based on the lightweight of ipkg.
Preferably, described open software warehouse management system, the calls tool pass through the configuration file:
It was found that the software has software conflict, then tagged to the corresponding software, the label is for described soft
Prompting reference when part actually occurs installation or upgrades;
It was found that the software has specific dependency relation, then install and rely on bag.
Second embodiment
On the basis of embodiment one,
Server side operation flow process is as follows:
B1000:Third party user logs in plug-in server after authentication;
B2000:Plug-in server specifies which to issue the private directory of software according to authentication;
B3000:Third party user's upload software in the private directory;
B4000:Third party user illustrates conflict relationship or the dependence of upload software in (public) configuration file.
The operating process at network equipment end is as follows:
R1000:The network equipment calls opkg instrument, obtains the network address of server;
R2000:The network equipment sends request to server, and obtains the configuration file that the third party of server end issues;
R3000:The network equipment parses configuration file, finds software conflict, then stamps the label of corresponding publisher;
R4000:The network equipment parses configuration file, finds there is dependence between software, then install and rely on bag;
R5000:Whether the software installed by network equipment inspection carries the label of software publisher?Have then by relevant information
Feed back in mounting strategy.
3rd embodiment
The present embodiment is managed towards the software of OpenWrt embedded device, and software server is no longer tieed up by apparatus manager
Shield, but updating maintenance is come by numerous third party software publishers, the network architecture is as shown in Fig. 2 framework schematic diagram.
The present invention relates to plug-in server and OpenWrt embedded device.In plug-in server side, it is third party software
Publisher carries out rights management, and each third party software publisher can only issue in the catalogue having permission and update software, mutually
Do not disturb, in catalogue will comprising third party software configuration file, it is ensured that oneself issue software in solve all of according to
Bad relation.
In OpenWrt embedded device side, opkg first obtains the configuration file of plug-in server when updating software, i.e., each
Third party issues the configuration file under catalogue, if finding software conflict, stamps third-party tag.Certain is soft in installation for equipment
During part, determined the software of one party is installed according to tag.
The present invention is described from plug-in server and equipment side:
As shown in Fig. 3 third embodiment of the invention server end (side) schematic flow sheet, the flow process of plug-in server side is said
Bright.
(1) software version issued by third party's login service device.
(2) server carries out third-party authentication.
(3) server is according to purview certification, it is intended that third party software version issues catalogue.
As shown in Fig. 4 3rd embodiment equipment end (side) schematic flow sheet, the process description of OpenWrt equipment side.
1. equipment executes opkg install or opkg update order and carries out software installation or upgrading.
2. equipment obtains plug-in server address according to opkg configuration file, and sends inquiry request to server.
3. server sends, to equipment, the configuration file that all third parties issue.
4. equipment parses configuration file, if finding to have identical software kit to be issued by different third parties, by software kit
Stamp corresponding publisher tag.
5. equipment analysis software package informatin, if there is dependence between software, installing and relying on bag.
6. check whether the software that installs carries publisher tag, if having, feeding back to application layer carries out mounting strategy selection.
7. by software installation to equipment.
By above flow process, software kit of settling a dispute by the parties concerned themselves is relied on by OpenWrt equipment, the problem of conflict, is conducive to whole cloth
Office system develops to open platform.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie
In the case of spirit or essential attributes without departing substantially from the present invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power
Profit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by falling
Change is included in the present invention.Any reference in claim should not be considered as and limit involved claim.This
Outward, it is clear that " including ", a word was not excluded for other units or step, and odd number is not excluded for plural number.In device claim, statement is multiple
Unit or device can also be realized by software or hardware by a unit or device.The first, the second grade word is used for table
Show title, and be not offered as any specific order.