CN108632331A - A kind of installation method and device regarding working application - Google Patents
A kind of installation method and device regarding working application Download PDFInfo
- Publication number
- CN108632331A CN108632331A CN201710752715.6A CN201710752715A CN108632331A CN 108632331 A CN108632331 A CN 108632331A CN 201710752715 A CN201710752715 A CN 201710752715A CN 108632331 A CN108632331 A CN 108632331A
- Authority
- CN
- China
- Prior art keywords
- installation
- working application
- regarding
- script
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
An embodiment of the present invention provides a kind of installation method and device regarding working application, there is installation script, regarding the installation file of working application regarding regarding in networked server for networking, the method includes:Start the installation script;The installation file for regarding working application is installed in networked server described by the installation script;It is described regarding working application in the startup in networked server by the installation script when installing successfully.On the one hand, installation script, which executes, regards the most installation operation of working application, reduces the technical threshold of installation, reduces the frequency that user inputs order, to accelerate the progress of installation, reduces the probability of error, increase and install successful probability;On the other hand, installation file is already present on regarding networked server, without being downloaded from internet, is reduced the communication between internet, is reduced the difficulty of installation.
Description
Technical field
The present invention relates to regarding networking technology field, join more particularly to a kind of installation method regarding working application and a kind of regard
The mounting device of net application.
Background technology
It is the important milestone of network Development depending on networking, is a real-time network depending on networking, can realize current internet
The whole network HD video real-time Transmission that cannot achieve, pushes numerous applications to HD video, high definition is face-to-face.
In the environment of regarding networking, on the one hand, in installation application, configuration service in networked server, need various lives
It enables, technical threshold is high, causes the progress of installation slower, also, is easy error, causes install failure;On the other hand, it is taken depending on networking
Business device with internet communicate relatively complicated, it is more difficult to carry out the service supports such as file download from internet, increase installation
Difficulty.
Invention content
In view of the above problems, it is proposed that the embodiment of the present invention overcoming the above problem or at least partly in order to provide one kind
A kind of installation method regarding working application and a kind of corresponding mounting device regarding working application to solve the above problems.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of installation methods regarding working application, regarding networking
Regard networked server in have installation script, the installation file regarding working application, the method includes:
Start the installation script;
The installation file for regarding working application is installed in networked server described by the installation script;
It is described regarding working application in the startup in networked server by the installation script when installing successfully.
Optionally, described that the installation for regarding working application is installed in networked server described by the installation script
The step of file includes:
By the installation script install preset erection sequence it is described depending on networked server in install and described answered depending on networking
Installation file;
Wherein, sort it is posterior regarding working application rely on sequence it is first regard working application.
Optionally, the installation file is included in the text that other successfully regard working application depending on having been installed in networked server
Part;
It is described described the installation file regarding working application to be installed in the networked server by the installation script
Step includes:
By the installation script, reading is described regarding working application from first specified directory regarding in networked server
Installation file;
By the installation script by the installation file depending on working application be copied to it is described in networked server the
Two specified directories.
Optionally, the installation file includes the installation file of the object relied on regarding working application operation;
It is described described the installation file regarding working application to be installed in the networked server by the installation script
Step includes:
By installation script detection it is described regard whether installed in networked server it is described regarding working application operation dependence
Object;
If having installed the object of the dependence, the version information of the object of the dependence is detected by the installation script is
It is no to meet the requirements;If so, the installation of the object of the dependence is completed, if it is not, then unloading the dependence by the installation script
Object, and the installation file of the object of the dependence is installed;
If the object of the dependence is not configured, the installation file of the object of the dependence is installed by the installation script.
Optionally, described that the installation for regarding working application is installed in networked server described by the installation script
The step of file further includes:
The configuration parameter of regarded working application adaptation is inquired by the installation script;
Configuration prompt information is generated to the configuration parameter by the installation script;
By the installation script when receiving the configuration for the configuration prompt information and determining information, matched using described
The corresponding configuration parameter of determining information is set to configure depending on the Internet services to described.
Optionally, described to start described the step of regarding the Internet services in networked server described by the installation script
Including:
It virtual regarded networked terminals in described create in the networked server by the installation script and carries out described regarding connection
Net enters net operation;
Working application is regarded described in networked terminals startup by virtual the regarding by the installation script.
The embodiment of the invention also discloses a kind of mounting device regarding working application, networked server is being regarded regarding networking
Installation file with installation script, regarding working application, described device include:
Script startup module, for starting the installation script;
Using installation module, for working application to be regarded described in installation in networked server described by the installation script
Installation file;
Application launch module, for when installing successfully, by the installation script it is described depending on networked server in start
It is described to regard working application.
Optionally, the application installation module includes:
Sequence installation submodule regards networked server for installing preset erection sequence by the installation script described
The installation file of working application is regarded described in middle installation;
Wherein, sort it is posterior regarding working application rely on sequence it is first regard working application.
Optionally, the installation file is included in the text that other successfully regard working application depending on having been installed in networked server
Part;
Module is installed in the application:
Installation file reading submodule, for by the installation script from the first specified mesh in the networked server
The installation file for regarding working application is read in record;
Installation file copies submodule, for being copied to the installation file depending on working application by the installation script
Second specified directory in networked server.
Optionally, the installation file includes the installation file of the object relied on regarding working application operation;
Module is installed in the application:
Object detection submodule is relied on, for described depending on whether installing institute in networked server by installation script detection
State the object relied on regarding working application operation;
Version information detection sub-module detects institute if the object for having installed the dependence by the installation script
Whether the version information for stating the object of dependence meets the requirements;If so, installation is complete submodule is called, if it is not, then calling first
It relies on object and submodule is installed;
Installation is complete submodule, the installation of the object for completing the dependence;
First, which relies on object, installs submodule, the object for unloading the dependence by the installation script, and installs institute
State the installation file of the object of dependence;
Second, which relies on object, installs submodule, if the object for the dependence to be not configured, by the installation foot intrinsic safety
Fill the installation file of the object of the dependence.
Optionally, the application installation module includes:
Parameter query submodule is configured, the configuration parameter for inquiring regarded working application adaptation by the installation script;
Prompt message generates submodule, for generating configuration prompt information to the configuration parameter by the installation script;
Application configuration submodule, for by the installation script to receive the configuration for the configuration prompt information true
When determining information, determine that the corresponding configuration parameter of information is configured to described depending on the Internet services using the configuration.
Optionally, the application launch module includes:
Submodule is created depending on networked terminals, for being created virtually in networked server described by the installation script
Depending on entering net operation depending on networking described in networked terminals and progress;
Depending on networked terminals promoter module, for starting institute by the virtual networked terminals that regard by the installation script
It states and regards working application.
The embodiment of the present invention includes following advantages:
In embodiments of the present invention, depending on, with installation script and the installation file for regarding working application, being opened in networked server
Dynamic installation script is installing the installation file regarding working application by installation script in networked server, when installing successfully, by
Installation script is starting in networked server regarding working application, on the one hand, installation script executes most regarding working application
Installation operation reduces the technical threshold of installation, and the frequency for reducing user's input order subtracts to accelerate the progress of installation
The probability to malfunction less increases and installs successful probability;On the other hand, installation file is already present on regarding networked server, is not necessarily to
It is downloaded from internet, reduces the communication between internet, reduce the difficulty of installation.
Description of the drawings
Fig. 1 is a kind of networking schematic diagram regarding networking of one embodiment of the invention;
Fig. 2 is a kind of hardware architecture diagram of node server of one embodiment of the invention;
Fig. 3 is a kind of hardware architecture diagram of access switch of one embodiment of the invention;
Fig. 4 is that a kind of Ethernet association of one embodiment of the invention turns the hardware architecture diagram of gateway;
Fig. 5 is a kind of step flow chart of installation method regarding working application of one embodiment of the invention;
Fig. 6 is a kind of structure diagram of mounting device regarding working application of one embodiment of the invention.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can realize HD video real-time Transmission,
Push numerous the Internet, applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service
Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring
Field live streaming, VOD program requests, TV Mail, individual character recording (PVR), Intranet (manage) channel, intelligent video Broadcast Control, information publication by oneself
All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, word, communication, data, by TV or
Computer realizes that high-definition quality video plays.
To make those skilled in the art more fully understand the embodiment of the present invention, below to being introduced depending on networking:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Network technology innovation depending on networking improves traditional ethernet (Ethernet), potential huge on network to face
Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
Switching), Streaming demands are met using Packet Switching depending on networking technology.Has grouping depending on networking technology
Flexible, the simple and low price exchanged, is provided simultaneously with quality and the safety assurance of circuit switching, it is virtually electric to realize the whole network switch type
The seamless connection of road and data format.
Switching technology (Switching Technology)
Depending on two advantages of asynchronous and packet switch networked using Ethernet, it is scarce under the premise of complete be compatible with to eliminate Ethernet
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal directly carries IP data packets.User data is in network-wide basis
It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can realizes at present mutually
The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous Internet video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform
Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy
Enough include signaling and data transmission.For voice and video business, handled depending on networking and unified video platform Streaming Media
Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and
State-of-the-art real time operating system is used, the programme information in server instruction is mapped to specific hard drive space, media
Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits for typical time to be less than 0.2 second.It optimizes
Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internets ad eundem IP, but
The concurrent flow more than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Structural design depending on networking by servicing independent licence system, equipment and the modes such as user data is completely isolated every time
The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, fire wall generally, has prevented black
The attack of visitor and virus, provide structural carefree secure network to the user.
Service innovative technology (Service Innovation Technology)
Business and transmission are merged by unified video platform, whether single user, private user or a net
The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich
The multimedia video service of rich colorful various forms.Unified video platform is substituted using " menu type " with table schema traditional
Complicated applications program, and can use considerably less code that complicated application can be realized, and realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class
Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes:Node server, access switch, terminal (including various machines
Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases
Even, and Ethernet can be connected.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.
Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes:Metropolitan area server, node switch, node serve
Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end
Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve
Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area
The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat
Platform can be formed regarding networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes depending on the equipment in networking:Server, interchanger (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or
National net, World Wide Web etc.) and access net.
The equipment of 1.2 wherein access mesh portions can be mainly divided into 3 classes:Node server, access switch (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The particular hardware structure of each access network equipment is:
Node server:
As shown in Fig. 2, including mainly Network Interface Module 201, switching engine module 202, CPU module 203, disk array
Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine
Module 202;Switching engine module 202 to the packet come in look into the operation of address table 205, to obtain the navigation information of packet;
And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded if meeting the following conditions:1) port
It is less than to send caching;2) the queue package counting facility is more than zero.Disk array module 204 mainly realizes the control to hard disk, including
The operations such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown)
Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table)
Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, including mainly Network Interface Module (downstream network interface module 301, uplink network interface module
302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould
Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met,
Corresponding flow identifier (stream-id) is then distributed, and enters switching engine module 303, is otherwise abandoned;Uplink network interface mould
The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine
Module 303;Switching engine module 303 to the packet come in look into the operation of address table 306, to obtain the navigation information of packet;
It is gone toward uplink network interface if the packet into switching engine module 303 is downstream network interface, in conjunction with flow identifier
(stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet
Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
It is gone toward uplink network interface if the queue is downstream network interface, meets the following conditions and be forwarded:1)
It is less than that the port sends caching;2) the queue package counting facility is more than zero;3) token that rate control module generates is obtained;
It is gone toward uplink network interface if the queue is not downstream network interface, meets the following conditions and be forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is more than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval
The pack buffer queue that interface is gone toward uplink network interface generates token, to control the code check of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and,
Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, including mainly Network Interface Module (downstream network interface module 401, uplink network interface module
402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan
Storage 407 and MAC add modules 409, MAC removing modules 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined
The ethernet mac DA of measured data packet, ethernet mac SA, Ethernet length or frame type, networking mesh way address is regarded
DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting
Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing modules 410
(2byte), and enter corresponding order caching, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, if there is Bao Ze regarding with networking mesh according to packet
Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway
SA, Ethernet length or frametype, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
Include mainly Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network
Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board includes mainly Network Interface Module, video encoding engine
Module, CPU module;Memory includes mainly Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes:Node server, node switch, metropolitan area server.
Wherein, node switch includes mainly Network Interface Module, switching engine module and CPU module;Metropolitan area server includes mainly
Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
The data packet for accessing net includes mainly following sections:Destination address (DA), source address (SA), reserve bytes,
payload(PDU)、CRC。
As shown in the table, the data packet for accessing net includes mainly following sections:
DA | SA | Reserved | Payload | CRC |
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet
Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address,
Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The parts payload have different length according to the type of different datagrams, are if it is various protocol packages
64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and computational methods follow the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment
2 kinds can be all can exceed that between machine and node server, node switch and node switch, node switch and node server
Connection.But the metropolitan area net address of metropolitan area network equipment is unique, is closed to accurately describe the connection between metropolitan area network equipment
System, introduces parameter in embodiments of the present invention:Label uniquely describes a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification
Change) label definition it is similar, it is assumed that between device A and equipment B there are two connection, then data packet from device A to equipment B just
There are 2 labels, data packet also there are 2 labels from equipment B to device A.Label is divided into label, outgoing label, it is assumed that data packet enters
The label (entering label) of device A is 0x0000, and the label (outgoing label) when this data packet leaves device A may reform into
0x0001.The networking flow of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN)
Distribution is all dominated by metropolitan area server, and node switch, node server are all passive execution, this point with
The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) includes mainly following sections:
DA | SA | Reserved | Label | Payload | CRC |
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its
In, the format of label, which can refer to, such as gives a definition:Label is 32bit, wherein high 16bit retains, only with low 16bit, its position
Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic regarding networking, it is proposed that one of the core concepts of the embodiments of the present invention, it then follows regard the association of networking
View, the required installation file of unified configuration starts installation script, one button installation regards working application.
With reference to Fig. 5, a kind of step flow chart of installation method regarding working application of one embodiment of the invention is shown,
This method can be applied to regard in networking, can specifically include following steps:
Step 501, start the installation script.
In embodiments of the present invention, there is installation script in networked server regarding networking.
In the concrete realization, installation script can be compressed, copy the storage systems such as USB flash disk, mobile hard disk by user, will regard connection
Network server accesses the storage system, and installation script is copied to the catalogue specified in networked server from the storage system
Under decompressed.
Using shell scripts as the example of installation script, it can be named as installer.sh, it will be all kinds of related to installation
Order be placed in advance in into a file, it is convenient disposable to execute.
Step 502, the installation text regarding working application is installed in networked server described by the installation script
Part.
In embodiments of the present invention, in the installation file having in networked server regarding working application regarding networking.
In the concrete realization, user can will regard working application in advance at other regarding the Internet services needed for project and service
It is installed on device, then the object (such as library, environment) that mounted binary file and its operation rely on is packaged together, is generated
Installation file.
Installation file is copied the storage systems such as USB flash disk, mobile hard disk by user, and the storage system will be accessed depending on networked server
System, from installation script is copied in the storage system depending in networked server specify catalogue under decompress, by installation foot
This is installed.
It should be noted that it can be general application to regard working application, as tomcat servers, redis databases,
MySQL database etc., or regard proprietary application of networking, such as regard networking program request application, regard networking multicast application, regard networking
Association turns application, etc..
In one embodiment of the invention, step 502 may include following sub-step:
Sub-step S11, by the installation script install preset erection sequence it is described depending on networked server in institute is installed
State the installation file regarding working application.
Wherein, sort it is posterior regarding working application rely on sequence it is first regard working application.
Other are relied on regarding working application operation depending on working application due to certain, for example, relying on redis regarding networking multicast application
Database operation, etc..
Therefore, in embodiments of the present invention, the erection sequence that can regard working application defined in installation script in advance, makes
Rear installation can be relied on depending on working application formerly install regarding working application and normal operation.
In one embodiment of the invention, installation file is included in other and is successfully regarded depending on having been installed in networked server
The file of working application, for example, binary file.
Then in embodiments of the present invention, step 502 may include following sub-step:
Sub-step S21, read from first specified directory in the networked server by the installation script described in
Depending on the installation file of working application.
The installation file depending on working application is copied to by the installation script and described regards networking clothes by sub-step S22
The second specified directory being engaged in device.
In embodiments of the present invention, in installation script the storage address of predesignated installation file and installation ground
Location.
Therefore, installation file solution is depressed into corresponding first specified directory of the storage address in networked server by user,
So that installation script is at runtime, installation file can be read from the first specified directory according to the address of its record, and copied
In shellfish to corresponding second specified directory of the installation addresses.
Since the installation file is the file after installing successfully, it can directly run, realize the installation of application.
In one embodiment of the invention, installation file includes regarding the installation text for the object that working application operation relies on
Part, then in embodiments of the present invention, step 502 may include following sub-step:
Sub-step S31, it is described described regarding working application depending on whether being installed in networked server by installation script detection
Run the object relied on.
Sub-step S32 is detected the object of the dependence by the installation script if having installed the object of the dependence
Whether version information meets the requirements;If so, sub-step S33 is executed, if it is not, then executing sub-step S34.
Sub-step S33 completes the installation of the object of the dependence.
Sub-step S34, the object of the dependence is unloaded by the installation script, and installs the installation of the object of the dependence
File.
Sub-step S35 is installed the object of the dependence by the installation script if not installing the object of the dependence
Installation file.
In embodiments of the present invention, installation script certain needs to rely on regarding for other object (such as libraries, environment) installing
When working application, the object depending on whether having installed dependence in networked server can be detected automatically.
If having installed the object of dependence depending on networked server, it can further detect whether its version meets the requirements.
If met the requirements, the installation of the object of the dependence is completed.
If undesirable, if version is relatively low, then after unloading the version, satisfactory version is reinstalled.
If not installing the object of dependence depending on networked server, the satisfactory version of object of the dependence can be installed
This.
In one embodiment of the invention, step 502 can also include following sub-step:
Sub-step S41 is inquired the configuration parameter of regarded working application adaptation by the installation script.
Sub-step S42 generates configuration prompt information by the installation script to the configuration parameter.
Sub-step S43, by the installation script when receiving the configuration for the configuration prompt information and determining information,
Determine that the corresponding configuration parameter of information is configured to described depending on the Internet services using the configuration.
In embodiments of the present invention, installation script can inquire the configuration ginseng being adapted to depending on working application needed to configure
Number, such as IP address generate prompt message, are shown to user and select.
User can operate for prompt message, trigger confirmation message, such as " y ", then installation script can be with
According to the corresponding configuration parameter of the confirmation message to being configured depending on networked server.
Step 503, it when installing successfully, is networked in described regard of the startup in networked server by the installation script
Using.
If installed successfully depending on working application, installation script can start this and regard working application, corresponding to provide
Service.
Hereafter, installation script exits, and installation file is then selected to retain or be deleted by user.
In one embodiment of the invention, step 503 may include following sub-step:
Sub-step S51, by the installation script it is described depending on networked server in create it is virtual depending on networked terminals, go forward side by side
Row is described to enter net operation depending on networking.
Sub-step S52 regards working application by virtual the regarding by the installation script described in networked terminals startup.
In embodiments of the present invention, for it is certain it is general regard working application, then can be opened according to general mode
It is dynamic, for example, for redise databases, then it can enter redis roots, execute order " ./redis-server& ", make
Redis databases are run with backstage program mode (PM).
In addition, for it is certain it is proprietary regard working application, then can be started according to the agreement depending on networking.
In one embodiment, then the virtual networked terminals that regard can created in networked server, and according to regarding
The agreement of networking is carried out into net operation, and working application is regarded to start.
For example, for the video conference application regarding networking, if depending on carrying out video conference in networked terminals and internet terminal,
Then created in networked server it is virtual regard networked terminals and virtual internet terminal, actual will regard networked terminals and
Virtual regards networking connection, communication, and actual internet terminal is connect with virtual internet terminal, is communicated, virtual regards
Protocol conversion is carried out between networked terminals and virtual internet terminal, realizes the communication regarding networked terminals and internet terminal.
In embodiments of the present invention, depending on, with installation script and the installation file for regarding working application, being opened in networked server
Dynamic installation script is installing the installation file regarding working application by installation script in networked server, when installing successfully, by
Installation script is starting in networked server regarding working application, on the one hand, installation script executes most regarding working application
Installation operation reduces the technical threshold of installation, and the frequency for reducing user's input order subtracts to accelerate the progress of installation
The probability to malfunction less increases and installs successful probability;On the other hand, installation file is already present on regarding networked server, is not necessarily to
It is downloaded from internet, reduces the communication between internet, reduce the difficulty of installation.
It should be noted that for embodiment of the method, for simple description, therefore it is all expressed as a series of action group
It closes, but those skilled in the art should understand that, the embodiment of the present invention is not limited by the described action sequence, because according to
According to the embodiment of the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
With reference to Fig. 6, a kind of structure diagram of mounting device regarding working application of one embodiment of the invention is shown,
There is installation script, regarding the installation file of working application depending on regarding in networked server for networking, described device includes:
Script startup module 601, for starting the installation script;
Using installation module 602, for networking to be regarded described in installation in networked server described by the installation script
The installation file of application;
Application launch module 603, for when installing successfully, by the installation script it is described depending on networked server in open
It is dynamic described regarding working application.
In one embodiment of the invention, the application installation module 602 includes:
Sequence installation submodule regards networked server for installing preset erection sequence by the installation script described
The installation file of working application is regarded described in middle installation;
Wherein, sort it is posterior regarding working application rely on sequence it is first regard working application.
In one embodiment of the invention, the installation file is included in other depending on having installed success in networked server
The file regarding working application;
Module 602 is installed in the application:
Installation file reading submodule, for by the installation script from the first specified mesh in the networked server
The installation file for regarding working application is read in record;
Installation file copies submodule, for being copied to the installation file depending on working application by the installation script
Second specified directory in networked server.
In one embodiment of the invention, the installation file includes the object relied on regarding working application operation
Installation file;
Module 602 is installed in the application:
Object detection submodule is relied on, for described depending on whether installing institute in networked server by installation script detection
State the object relied on regarding working application operation;
Version information detection sub-module detects institute if the object for having installed the dependence by the installation script
Whether the version information for stating the object of dependence meets the requirements;If so, installation is complete submodule is called, if it is not, then calling first
It relies on object and submodule is installed;
Installation is complete submodule, the installation of the object for completing the dependence;
First, which relies on object, installs submodule, the object for unloading the dependence by the installation script, and installs institute
State the installation file of the object of dependence;
Second, which relies on object, installs submodule, if the object for the dependence to be not configured, by the installation foot intrinsic safety
Fill the installation file of the object of the dependence.
In one embodiment of the invention, the application installation module 602 includes:
Parameter query submodule is configured, the configuration parameter for inquiring regarded working application adaptation by the installation script;
Prompt message generates submodule, for generating configuration prompt information to the configuration parameter by the installation script;
Application configuration submodule, for by the installation script to receive the configuration for the configuration prompt information true
When determining information, determine that the corresponding configuration parameter of information is configured to described depending on the Internet services using the configuration.
In one embodiment of the invention, the application launch module 603 includes:
Submodule is created depending on networked terminals, for being created virtually in networked server described by the installation script
Depending on entering net operation depending on networking described in networked terminals and progress;
Depending on networked terminals promoter module, for starting institute by the virtual networked terminals that regard by the installation script
It states and regards working application.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description
Place illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided
Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments
Capable instruction generates for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The device of specified function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments
In computer-readable memory operate in a specific manner so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows
And/or in one box of block diagram or multiple boxes specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device including the element.
Above to a kind of installation method regarding working application provided by the present invention and a kind of installation dress regarding working application
It sets, is described in detail, principle and implementation of the present invention are described for specific case used herein, above
The explanation of embodiment is merely used to help understand the method and its core concept of the present invention;Meanwhile for the general skill of this field
Art personnel, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this
Description should not be construed as limiting the invention.
Claims (10)
1. a kind of installation method regarding working application, which is characterized in that there is installation foot in networked server regarding networking
This, regarding the installation file of working application, the method includes:
Start the installation script;
The installation file for regarding working application is installed in networked server described by the installation script;
It is described regarding working application in the startup in networked server by the installation script when installing successfully.
2. according to the method described in claim 1, it is characterized in that, described regard networked server by the installation script described
Include depending on the step of installation file of working application described in middle installation:
Preset erection sequence is installed by the installation script and regards working application described in installation in networked server described
Installation file;
Wherein, sort it is posterior regarding working application rely on sequence it is first regard working application.
3. according to the method described in claim 1, it is characterized in that, the installation file is included in other in networked server
The file for successfully regarding working application has been installed;
It is described by the installation script in described the step of installing the installation file for regarding working application in the networked server
Including:
The peace for regarding working application is read from first specified directory regarding in networked server by the installation script
Fill file;
The installation file depending on working application is copied to second finger in networked server by the installation script
Determine catalogue.
4. according to the method described in claim 1, it is characterized in that, the installation file include it is described regard working application operation according to
The installation file of bad object;
It is described by the installation script in described the step of installing the installation file for regarding working application in the networked server
Including:
It is described depending on whether installing the object relied on regarding working application operation in networked server by installation script detection;
If having installed the object of the dependence, whether the version information that the object of the dependence is detected by the installation script accords with
It closes and requires;If so, the installation of the object of the dependence is completed, if it is not, then unloading pair of the dependence by the installation script
As, and the installation file of the object of the dependence is installed;
If the object of the dependence is not configured, the installation file of the object of the dependence is installed by the installation script.
5. according to the method described in Claims 2 or 3 or 4, which is characterized in that described to regard networking described by the installation script
Further include depending on the step of installation file of working application described in being installed in server:
The configuration parameter of regarded working application adaptation is inquired by the installation script;
Configuration prompt information is generated to the configuration parameter by the installation script;
It is true using the configuration by the installation script when receiving the configuration for the configuration prompt information and determining information
Determine the corresponding configuration parameter of information to configure depending on the Internet services to described.
6. method according to claim 1 or 2 or 3 or 4, which is characterized in that described to be regarded described by the installation script
Include depending on the step of the Internet services described in starting in networked server:
It virtual regarded networked terminals in described create in the networked server by the installation script and carries out described regarding networking
Enter net operation;
Working application is regarded described in networked terminals startup by virtual the regarding by the installation script.
7. a kind of mounting device regarding working application, which is characterized in that there is installation foot in networked server regarding networking
Originally, regarding the installation file of working application, described device includes:
Script startup module, for starting the installation script;
Using installation module, for installing the peace for regarding working application in networked server described by the installation script
Fill file;
Application launch module, for when install successfully, by the installation script described in networked server described in startup
Depending on working application.
8. device according to claim 7, which is characterized in that the application installs module and includes:
Sequence installation submodule, for by the installation script install preset erection sequence it is described depending on networked server in pacify
The dress installation file for regarding working application;
Wherein, sort it is posterior regarding working application rely on sequence it is first regard working application.
9. device according to claim 7, which is characterized in that the installation file is included in other in networked server
The file for successfully regarding working application has been installed;
Module is installed in the application:
Installation file reading submodule is used for by the installation script from first specified directory regarding in networked server
Read the installation file for regarding working application;
Installation file copies submodule, described for being copied to the installation file depending on working application by the installation script
Depending on the second specified directory in networked server.
10. device according to claim 7, which is characterized in that the installation file includes that the working application that regards is run
The installation file of the object of dependence;
Module is installed in the application:
Object detection submodule is relied on, for described depending on whether installing described regard in networked server by installation script detection
The object that working application operation relies on;
Version information detection sub-module, if the object for having installed the dependence, by installation script detection it is described according to
Whether the version information of bad object meets the requirements;If so, installation is complete submodule is called, if it is not, then calling first to rely on
Object installs submodule;
Installation is complete submodule, the installation of the object for completing the dependence;
First, which relies on object, installs submodule, the object for unloading the dependence by the installation script, and install it is described according to
The installation file of bad object;
Second, which relies on object, installs submodule, if the object for the dependence to be not configured, institute is installed by the installation script
State the installation file of the object of dependence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710752715.6A CN108632331A (en) | 2017-08-28 | 2017-08-28 | A kind of installation method and device regarding working application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710752715.6A CN108632331A (en) | 2017-08-28 | 2017-08-28 | A kind of installation method and device regarding working application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108632331A true CN108632331A (en) | 2018-10-09 |
Family
ID=63705719
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710752715.6A Pending CN108632331A (en) | 2017-08-28 | 2017-08-28 | A kind of installation method and device regarding working application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108632331A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109640103A (en) * | 2018-11-08 | 2019-04-16 | 视联动力信息技术股份有限公司 | A kind of live streaming throwing screen method and apparatus based on view networking |
CN110287248A (en) * | 2019-05-24 | 2019-09-27 | 视联动力信息技术股份有限公司 | A kind of data read-write method and system |
CN111145420A (en) * | 2020-01-03 | 2020-05-12 | 杭州视联动力技术有限公司 | Remote number calling method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015001535A1 (en) * | 2013-07-04 | 2015-01-08 | Auditmark S.A. | System and method for web application security |
CN106325951A (en) * | 2016-08-30 | 2017-01-11 | 广西电网有限责任公司 | Automatic deployment method for application system supporting multiple databases and multiple middleware types |
CN106331581A (en) * | 2015-07-06 | 2017-01-11 | 北京视联动力国际信息技术有限公司 | Method and device for communication between mobile terminal and video networking terminal |
CN106325954A (en) * | 2016-08-30 | 2017-01-11 | 广西电网有限责任公司 | Oracle and Weblogic combined one-key automatic deployment method |
CN106445498A (en) * | 2016-08-30 | 2017-02-22 | 广西电网有限责任公司 | One-click deployment method of Mysql |
CN106528268A (en) * | 2016-11-07 | 2017-03-22 | 国云科技股份有限公司 | A method for making a software application package for a cloud platform windows system |
CN106843936A (en) * | 2016-12-29 | 2017-06-13 | 北京航天测控技术有限公司 | A kind of method of automatically dispose Web applied environments |
-
2017
- 2017-08-28 CN CN201710752715.6A patent/CN108632331A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015001535A1 (en) * | 2013-07-04 | 2015-01-08 | Auditmark S.A. | System and method for web application security |
CN106331581A (en) * | 2015-07-06 | 2017-01-11 | 北京视联动力国际信息技术有限公司 | Method and device for communication between mobile terminal and video networking terminal |
CN106325951A (en) * | 2016-08-30 | 2017-01-11 | 广西电网有限责任公司 | Automatic deployment method for application system supporting multiple databases and multiple middleware types |
CN106325954A (en) * | 2016-08-30 | 2017-01-11 | 广西电网有限责任公司 | Oracle and Weblogic combined one-key automatic deployment method |
CN106445498A (en) * | 2016-08-30 | 2017-02-22 | 广西电网有限责任公司 | One-click deployment method of Mysql |
CN106528268A (en) * | 2016-11-07 | 2017-03-22 | 国云科技股份有限公司 | A method for making a software application package for a cloud platform windows system |
CN106843936A (en) * | 2016-12-29 | 2017-06-13 | 北京航天测控技术有限公司 | A kind of method of automatically dispose Web applied environments |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109640103A (en) * | 2018-11-08 | 2019-04-16 | 视联动力信息技术股份有限公司 | A kind of live streaming throwing screen method and apparatus based on view networking |
CN110287248A (en) * | 2019-05-24 | 2019-09-27 | 视联动力信息技术股份有限公司 | A kind of data read-write method and system |
CN111145420A (en) * | 2020-01-03 | 2020-05-12 | 杭州视联动力技术有限公司 | Remote number calling method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106301836B (en) | A kind of method of redundancy backup, terminal and view networked system | |
CN108173804A (en) | It is a kind of to access the method for internet and regarding connection cat client by regarding networking | |
CN109960513A (en) | A kind of project dispositions method and view networked system | |
CN108234922B (en) | A kind of recorded broadcast method and device | |
CN108628518A (en) | A kind of Application Program Interface replacing skins method and device | |
CN108880851A (en) | A kind of method and interactive system that configuration updates | |
CN109284265A (en) | A kind of date storage method and system | |
CN108810581A (en) | A kind of update method and device of menu | |
CN109379209A (en) | A kind of upgrade method and device of view networking storage service | |
CN109617956A (en) | A kind of data processing method and device | |
CN109215653A (en) | A kind of method and apparatus of voice operating | |
CN109918104A (en) | A kind of automatic updating system and method | |
CN107959658B (en) | A kind of Web conference method of data synchronization and its system | |
CN108234178A (en) | A kind of method and apparatus for being managed collectively menu file | |
CN110048903A (en) | A kind of association turns gateway status monitoring method and device | |
CN108809922B (en) | A kind of audio fault handling method, conference dispatching end and view networked terminals | |
CN108632331A (en) | A kind of installation method and device regarding working application | |
CN110505077A (en) | A kind of method and apparatus of upgrading | |
CN110032472A (en) | A kind of method for restarting and device of application program | |
CN110287248A (en) | A kind of data read-write method and system | |
CN110134445A (en) | A kind of switching method and apparatus of operating system | |
CN109151061A (en) | A kind of date storage method and device | |
CN110109808A (en) | A kind of method and apparatus of log processing | |
CN109922297A (en) | Call method and device | |
CN110324477A (en) | A kind for the treatment of method and apparatus of address list |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181009 |
|
RJ01 | Rejection of invention patent application after publication |